Skip to main content

static_sites

Creates, updates, deletes, gets or lists a static_sites resource.

Overview

Namestatic_sites
TypeResource
Idazure.app_service.static_sites

Fields

NameDatatypeDescription
idtextResource Id.
nametextResource Name.
allow_config_file_updatestextfield from the properties object
branchtextfield from the properties object
build_propertiestextfield from the properties object
content_distribution_endpointtextfield from the properties object
custom_domainstextfield from the properties object
database_connectionstextfield from the properties object
default_hostnametextfield from the properties object
enterprise_grade_cdn_statustextfield from the properties object
identitytextManaged service identity.
key_vault_reference_identitytextfield from the properties object
kindtextKind of resource.
linked_backendstextfield from the properties object
locationtextResource Location.
private_endpoint_connectionstextfield from the properties object
providertextfield from the properties object
public_network_accesstextfield from the properties object
repository_tokentextfield from the properties object
repository_urltextfield from the properties object
resourceGroupNametextfield from the properties object
skutextDescription of a SKU for a scalable resource.
staging_environment_policytextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
template_propertiestextfield from the properties object
typetextResource type.
user_provided_function_appstextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTname, resourceGroupName, subscriptionIdDescription for Gets the details of a static site.
listSELECTsubscriptionIdDescription for Get all Static Sites for a subscription.
create_or_updateINSERTname, resourceGroupName, subscriptionIdDescription for Creates a new static site in an existing resource group, or updates an existing static site.
deleteDELETEname, resourceGroupName, subscriptionIdDescription for Deletes a static site.
updateUPDATEname, resourceGroupName, subscriptionIdDescription for Creates a new static site in an existing resource group, or updates an existing static site.
approve_or_reject_private_endpoint_connectionEXECname, privateEndpointConnectionName, resourceGroupName, subscriptionIdDescription for Approves or rejects a private endpoint connection
detach_static_siteEXECname, resourceGroupName, subscriptionIdDescription for Detaches a static site.
detach_user_provided_function_app_from_static_siteEXECfunctionAppName, name, resourceGroupName, subscriptionIdDescription for Detach the user provided function app from the static site
detach_user_provided_function_app_from_static_site_buildEXECenvironmentName, functionAppName, name, resourceGroupName, subscriptionIdDescription for Detach the user provided function app from the static site build
link_backendEXEClinkedBackendName, name, resourceGroupName, subscriptionId
link_backend_to_buildEXECenvironmentName, linkedBackendName, name, resourceGroupName, subscriptionId
preview_workflowEXEClocation, subscriptionIdDescription for Generates a preview workflow file for the static site
register_user_provided_function_app_with_static_siteEXECfunctionAppName, name, resourceGroupName, subscriptionIdDescription for Register a user provided function app with a static site
register_user_provided_function_app_with_static_site_buildEXECenvironmentName, functionAppName, name, resourceGroupName, subscriptionIdDescription for Register a user provided function app with a static site build
reset_static_site_api_keyEXECname, resourceGroupName, subscriptionIdDescription for Resets the api key for an existing static site.
unlink_backendEXEClinkedBackendName, name, resourceGroupName, subscriptionId
unlink_backend_from_buildEXECenvironmentName, linkedBackendName, name, resourceGroupName, subscriptionId
validate_backendEXEClinkedBackendName, name, resourceGroupName, subscriptionId
validate_backend_for_buildEXECenvironmentName, linkedBackendName, name, resourceGroupName, subscriptionId
validate_custom_domain_can_be_added_to_static_siteEXECdomainName, name, resourceGroupName, subscriptionIdDescription for Validates a particular custom domain can be added to a static site.

SELECT examples

Description for Get all Static Sites for a subscription.

SELECT
id,
name,
allow_config_file_updates,
branch,
build_properties,
content_distribution_endpoint,
custom_domains,
database_connections,
default_hostname,
enterprise_grade_cdn_status,
identity,
key_vault_reference_identity,
kind,
linked_backends,
location,
private_endpoint_connections,
provider,
public_network_access,
repository_token,
repository_url,
resourceGroupName,
sku,
staging_environment_policy,
subscriptionId,
tags,
template_properties,
type,
user_provided_function_apps
FROM azure.app_service.vw_static_sites
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new static_sites resource.

/*+ create */
INSERT INTO azure.app_service.static_sites (
name,
resourceGroupName,
subscriptionId,
kind,
location,
tags,
properties,
sku,
identity
)
SELECT
'{{ name }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ kind }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ sku }}',
'{{ identity }}'
;

UPDATE example

Updates a static_sites resource.

/*+ update */
UPDATE azure.app_service.static_sites
SET
kind = '{{ kind }}',
properties = '{{ properties }}'
WHERE
name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified static_sites resource.

/*+ delete */
DELETE FROM azure.app_service.static_sites
WHERE name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';