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 sites/extensions 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/sites/extensions resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Web/sites/extensions@2024-11-01' = {
name: 'string'
// For remaining properties, see microsoft.web/sites/extensions objects
}
microsoft.web/sites/extensions objects
Set the name property to specify the type of object.
For MSDeploy, use:
{
kind: 'string'
name: 'MSDeploy'
properties: {
appOffline: bool
connectionString: 'string'
dbType: 'string'
packageUri: 'string'
setParameters: {
{customized property}: 'string'
}
setParametersXmlFileUri: 'string'
skipAppData: bool
}
}
For onedeploy, use:
{
name: 'onedeploy'
}
Property Values
Microsoft.Web/sites/extensions
Name | Description | Value |
---|---|---|
kind | Kind of resource. | string |
name | The resource name | 'MSDeploy' (required) |
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: sites |
properties | Core resource properties | MSDeployCoreOrMSDeployStatusProperties |
Microsoft.Web/sites/extensions
Name | Description | Value |
---|---|---|
name | The resource name | 'onedeploy' (required) |
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: sites |
microsoft.web/sites/extensions
Name | Description | Value |
---|---|---|
name | Set to 'MSDeploy' for type Microsoft.Web/sites/extensions. Set to 'onedeploy' for type Microsoft.Web/sites/extensions. | 'MSDeploy' 'onedeploy' (required) |
MSDeployCoreOrMSDeployStatusProperties
Name | Description | Value |
---|---|---|
appOffline | Sets the AppOffline rule while the MSDeploy operation executes. Setting is <code>false</code> by default. |
bool |
connectionString | SQL Connection String | string |
dbType | Database Type | string |
packageUri | Package URI | string |
setParameters | MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. | MSDeployCoreSetParameters |
setParametersXmlFileUri | URI of MSDeploy Parameters file. Must not be set if SetParameters is used. | string |
skipAppData | Controls whether the MSDeploy operation skips the App_Data directory. If set to <code>true</code>, the existing App_Data directory on the destination will not be deleted, and any App_Data directory in the source will be ignored. Setting is <code>false</code> by default. |
bool |
MSDeployCoreSetParameters
Name | Description | Value |
---|
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
Bicep File | Description |
---|---|
Moesif API Analytics and Monetization | The template will log API calls from Azure API Management to Moesif API analytics and monetization platform |
ARM template resource definition
The sites/extensions 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/sites/extensions resource, add the following JSON to your template.
{
"name": "string"
// For remaining properties, see microsoft.web/sites/extensions objects
}
microsoft.web/sites/extensions objects
Set the name property to specify the type of object.
For MSDeploy, use:
{
"kind": "string",
"name": "MSDeploy",
"properties": {
"appOffline": "bool",
"connectionString": "string",
"dbType": "string",
"packageUri": "string",
"setParameters": {
"{customized property}": "string"
},
"setParametersXmlFileUri": "string",
"skipAppData": "bool"
}
}
For onedeploy, use:
{
"name": "onedeploy"
}
Property Values
Microsoft.Web/sites/extensions
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-11-01' |
kind | Kind of resource. | string |
name | The resource name | 'MSDeploy' (required) |
properties | Core resource properties | MSDeployCoreOrMSDeployStatusProperties |
type | The resource type | 'Microsoft.Web/sites/extensions' |
Microsoft.Web/sites/extensions
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-11-01' |
name | The resource name | 'onedeploy' (required) |
type | The resource type | 'Microsoft.Web/sites/extensions' |
microsoft.web/sites/extensions
Name | Description | Value |
---|---|---|
name | Set to 'MSDeploy' for type Microsoft.Web/sites/extensions. Set to 'onedeploy' for type Microsoft.Web/sites/extensions. | 'MSDeploy' 'onedeploy' (required) |
MSDeployCoreOrMSDeployStatusProperties
Name | Description | Value |
---|---|---|
appOffline | Sets the AppOffline rule while the MSDeploy operation executes. Setting is <code>false</code> by default. |
bool |
connectionString | SQL Connection String | string |
dbType | Database Type | string |
packageUri | Package URI | string |
setParameters | MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. | MSDeployCoreSetParameters |
setParametersXmlFileUri | URI of MSDeploy Parameters file. Must not be set if SetParameters is used. | string |
skipAppData | Controls whether the MSDeploy operation skips the App_Data directory. If set to <code>true</code>, the existing App_Data directory on the destination will not be deleted, and any App_Data directory in the source will be ignored. Setting is <code>false</code> by default. |
bool |
MSDeployCoreSetParameters
Name | Description | Value |
---|
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
Template | Description |
---|---|
Azure Function App Hosted on Dedicated Plan |
This template provisions a function app on a dedicated hosting plan, meaning it will be run and billed just like any App Service site. |
Azure Function App Hosted on Premium Plan |
This template provisions a function app on a Premium plan. |
Azure Function App Hosted on Windows Consumption Plan |
This template provisions a function app on a Windows Consumption plan, which is a dynamic hosting plan. The app runs on demand and you're billed per execution, with no standing resource committment. |
Function App on Linux Consumption Plan with Remote Build |
This template provisions a function app on a Linux Consumption plan and perform remote build during code deployment. The app runs on demand and you're billed per execution, with no standing resource committment. |
Moesif API Analytics and Monetization |
The template will log API calls from Azure API Management to Moesif API analytics and monetization platform |
Terraform (AzAPI provider) resource definition
The sites/extensions 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/sites/extensions resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
name = "string"
// For remaining properties, see microsoft.web/sites/extensions objects
}
microsoft.web/sites/extensions objects
Set the name property to specify the type of object.
For MSDeploy, use:
{
kind = "string"
name = "MSDeploy"
properties = {
appOffline = bool
connectionString = "string"
dbType = "string"
packageUri = "string"
setParameters = {
{customized property} = "string"
}
setParametersXmlFileUri = "string"
skipAppData = bool
}
}
For onedeploy, use:
{
name = "onedeploy"
}
Property Values
Microsoft.Web/sites/extensions
Name | Description | Value |
---|---|---|
kind | Kind of resource. | string |
name | The resource name | 'MSDeploy' (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: sites |
properties | Core resource properties | MSDeployCoreOrMSDeployStatusProperties |
type | The resource type | "Microsoft.Web/sites/extensions@2024-11-01" |
Microsoft.Web/sites/extensions
Name | Description | Value |
---|---|---|
name | The resource name | 'onedeploy' (required) |
parent_id | The ID of the resource that is the parent for this resource. | ID for resource of type: sites |
type | The resource type | "Microsoft.Web/sites/extensions@2024-11-01" |
microsoft.web/sites/extensions
Name | Description | Value |
---|---|---|
name | Set to 'MSDeploy' for type Microsoft.Web/sites/extensions. Set to 'onedeploy' for type Microsoft.Web/sites/extensions. | 'MSDeploy' 'onedeploy' (required) |
MSDeployCoreOrMSDeployStatusProperties
Name | Description | Value |
---|---|---|
appOffline | Sets the AppOffline rule while the MSDeploy operation executes. Setting is <code>false</code> by default. |
bool |
connectionString | SQL Connection String | string |
dbType | Database Type | string |
packageUri | Package URI | string |
setParameters | MSDeploy Parameters. Must not be set if SetParametersXmlFileUri is used. | MSDeployCoreSetParameters |
setParametersXmlFileUri | URI of MSDeploy Parameters file. Must not be set if SetParameters is used. | string |
skipAppData | Controls whether the MSDeploy operation skips the App_Data directory. If set to <code>true</code>, the existing App_Data directory on the destination will not be deleted, and any App_Data directory in the source will be ignored. Setting is <code>false</code> by default. |
bool |
MSDeployCoreSetParameters
Name | Description | Value |
---|