Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The cloudServiceSlots resource type can be deployed with operations that target:
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@2023-11-01' = {
scope: resourceSymbolicName or scope
name: 'swap'
properties: {
slotType: 'string'
}
}
Property Values
Microsoft.Network/cloudServiceSlots
Name | Description | Value |
---|---|---|
name | The resource name | 'swap' (required) |
properties | Swap resource properties | SwapResourceProperties |
scope | Use when creating a resource at a scope that is different than the deployment scope. | Set this property to the symbolic name of a resource to apply the extension resource. |
SwapResourceProperties
Name | Description | Value |
---|---|---|
slotType | Specifies slot info on a cloud service | 'Production' 'Staging' |
ARM template resource definition
The cloudServiceSlots resource type can be deployed with operations that target:
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": "2023-11-01",
"name": "string",
"properties": {
"slotType": "string"
}
}
Property Values
Microsoft.Network/cloudServiceSlots
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2023-11-01' |
name | The resource name | 'swap' (required) |
properties | Swap resource properties | SwapResourceProperties |
type | The resource type | 'Microsoft.Network/cloudServiceSlots' |
SwapResourceProperties
Name | Description | Value |
---|---|---|
slotType | Specifies slot info on a cloud service | 'Production' 'Staging' |
Usage Examples
Terraform (AzAPI provider) resource definition
The cloudServiceSlots resource type can be deployed with operations that target:
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@2023-11-01"
name = "string"
parent_id = "string"
body = {
properties = {
slotType = "string"
}
}
}
Property Values
Microsoft.Network/cloudServiceSlots
Name | Description | Value |
---|---|---|
name | The resource name | 'swap' (required) |
parent_id | The ID of the resource to apply this extension resource to. | string (required) |
properties | Swap resource properties | SwapResourceProperties |
type | The resource type | "Microsoft.Network/cloudServiceSlots@2023-11-01" |
SwapResourceProperties
Name | Description | Value |
---|---|---|
slotType | Specifies slot info on a cloud service | 'Production' 'Staging' |