Microsoft.Network cloudServiceSlots 2022-11-01
Bicep resource definition
The cloudServiceSlots resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in Bicep.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/cloudServiceSlots resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Network/cloudServiceSlots@2022-11-01' = {
name: 'swap'
scope: resourceSymbolicName
properties: {
slotType: 'string'
}
}
Property values
cloudServiceSlots
Name | Description | Value |
---|---|---|
name | The resource name | 'swap' |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For Bicep, set this property to the symbolic name of the resource to apply the extension resource. |
properties | Swap resource properties | SwapResourceProperties |
SwapResourceProperties
Name | Description | Value |
---|---|---|
slotType | Specifies slot info on a cloud service | 'Production' 'Staging' |
ARM template resource definition
The cloudServiceSlots resource type is an extension resource, which means you can apply it to another resource.
Use the scope
property on this resource to set the scope for this resource. See Set scope on extension resources in ARM templates.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/cloudServiceSlots resource, add the following JSON to your template.
{
"type": "Microsoft.Network/cloudServiceSlots",
"apiVersion": "2022-11-01",
"name": "swap",
"scope": "string",
"properties": {
"slotType": "string"
}
}
Property values
cloudServiceSlots
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Network/cloudServiceSlots' |
apiVersion | The resource api version | '2022-11-01' |
name | The resource name | 'swap' |
scope | Use when creating an extension resource at a scope that is different than the deployment scope. | Target resource For JSON, set the value to the full name of the resource to apply the extension resource to. |
properties | Swap resource properties | SwapResourceProperties |
SwapResourceProperties
Name | Description | Value |
---|---|---|
slotType | Specifies slot info on a cloud service | 'Production' 'Staging' |
Terraform (AzAPI provider) resource definition
The cloudServiceSlots resource type is an extension resource, which means you can apply it to another resource.
Use the parent_id
property on this resource to set the scope for this resource.
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Network/cloudServiceSlots resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Network/cloudServiceSlots@2022-11-01"
name = "swap"
parent_id = "string"
body = jsonencode({
properties = {
slotType = "string"
}
})
}
Property values
cloudServiceSlots
Name | Description | Value |
---|---|---|
type | The resource type | "Microsoft.Network/cloudServiceSlots@2022-11-01" |
name | The resource name | "swap" |
parent_id | The ID of the resource to apply this extension resource to. | string (required) |
properties | Swap resource properties | SwapResourceProperties |
SwapResourceProperties
Name | Description | Value |
---|---|---|
slotType | Specifies slot info on a cloud service | "Production" "Staging" |