Microsoft.Web staticSites/basicAuth 2022-09-01
Bicep resource definition
The staticSites/basicAuth resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Web/staticSites/basicAuth resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Web/staticSites/basicAuth@2022-09-01' = {
name: 'default'
kind: 'string'
parent: resourceSymbolicName
properties: {
applicableEnvironmentsMode: 'string'
environments: [
'string'
]
password: 'string'
secretUrl: 'string'
}
}
Property values
staticSites/basicAuth
Name | Description | Value |
---|---|---|
name | The resource name See how to set names and types for child resources in Bicep. |
'default' |
kind | Kind of resource. | string |
parent | In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource. For more information, see Child resource outside parent resource. |
Symbolic name for resource of type: staticSites |
properties | StaticSiteBasicAuthPropertiesARMResource resource specific properties | StaticSiteBasicAuthPropertiesARMResourceProperties |
StaticSiteBasicAuthPropertiesARMResourceProperties
Name | Description | Value |
---|---|---|
applicableEnvironmentsMode | State indicating if basic auth is enabled and for what environments it is active. | string (required) |
environments | The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments. | string[] |
password | The password for basic auth. | string |
secretUrl | Url to the secret in Key Vault. | string |
ARM template resource definition
The staticSites/basicAuth resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Web/staticSites/basicAuth resource, add the following JSON to your template.
{
"type": "Microsoft.Web/staticSites/basicAuth",
"apiVersion": "2022-09-01",
"name": "default",
"kind": "string",
"properties": {
"applicableEnvironmentsMode": "string",
"environments": [ "string" ],
"password": "string",
"secretUrl": "string"
}
}
Property values
staticSites/basicAuth
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Web/staticSites/basicAuth' |
apiVersion | The resource api version | '2022-09-01' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
'default' |
kind | Kind of resource. | string |
properties | StaticSiteBasicAuthPropertiesARMResource resource specific properties | StaticSiteBasicAuthPropertiesARMResourceProperties |
StaticSiteBasicAuthPropertiesARMResourceProperties
Name | Description | Value |
---|---|---|
applicableEnvironmentsMode | State indicating if basic auth is enabled and for what environments it is active. | string (required) |
environments | The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments. | string[] |
password | The password for basic auth. | string |
secretUrl | Url to the secret in Key Vault. | string |
Terraform (AzAPI provider) resource definition
The staticSites/basicAuth resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Web/staticSites/basicAuth resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Web/staticSites/basicAuth@2022-09-01"
name = "default"
parent_id = "string"
body = jsonencode({
properties = {
applicableEnvironmentsMode = "string"
environments = [
"string"
]
password = "string"
secretUrl = "string"
}
kind = "string"
})
}
Property values
staticSites/basicAuth
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.Web/staticSites/basicAuth@2022-09-01" |
name | The resource name | "default" |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: staticSites |
kind | Kind of resource. | string |
properties | StaticSiteBasicAuthPropertiesARMResource resource specific properties | StaticSiteBasicAuthPropertiesARMResourceProperties |
StaticSiteBasicAuthPropertiesARMResourceProperties
Name | Description | Value |
---|---|---|
applicableEnvironmentsMode | State indicating if basic auth is enabled and for what environments it is active. | string (required) |
environments | The list of enabled environments for Basic Auth if ApplicableEnvironmentsMode is set to SpecifiedEnvironments. | string[] |
password | The password for basic auth. | string |
secretUrl | Url to the secret in Key Vault. | string |