Azure / Azure/arm-template-whatif
Microsoft.Web/sites
- Dominant language
- HTML
- Stars
- 101
- Forks
- 21
- Avg merge
- 3h 35m
- Merged PRs (30d)
- 1
Description
## Describe the noise
**Resource type**
Microsoft.Web
**apiVersion**
2019-08-01
**Client**
PowerShell
**Relevant ARM Template code (we only need the resource object for the above `resourceType` and `apiVersion`, but if it's easier you can include the entire template**
Complete template sample is available [here](https://github.com/Azure/azure-quickstart-templates/blob/master/101-function-premium-vnet-integration/azuredeploy.json)
```
{
"type": "Microsoft.Web/sites",
"apiVersion": "2019-08-01",
"name": "[variables('functionAppName')]",
"location": "[parameters('location')]",
"tags": "[union(variables('additional_tags'),resourceGroup().tags)]",
"dependsOn": [
"[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]",
"[resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName'))]"
],
"kind": "functionapp",
"properties": {
"serverFarmId": "[resourceId('Microsoft.Web/serverfarms', variables('hostingPlanName'))]",
"siteConfig": {
"appSettings": [
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "[reference(variables('appInsightsResourceId'), '2018-05-01-preview').instrumentationKey]"
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "[concat('InstrumentationKey=', reference(variables('appInsightsResourceId'), '2018-05-01-preview').instrumentationKey)]"
},
{
"name": "AzureWebJobsStorage",
"value": "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'), ';EndpointSuffix=', environment().suffixes.storage, ';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')), '2019-06-01').keys[0].value,';')]"
},
{
"name": "FUNCTIONS_EXTENSION_VERSION",
"value": "~3"
},
{
"name": "FUNCTIONS_WORKER_RUNTIME",
"value": "[variables('functionWorkerRuntime')]"
},
{
"name": "WEBSITE_NODE_DEFAULT_VERSION",
"value": "~12"
}
]
}
}
```
**Expected response**
I expected no noise since the template has not been modified since the resources were deployed
**Current (noisy) response**
```
+ properties.siteConfig.appSettings: [
0:
name: "APPINSIGHTS_INSTRUMENTATIONKEY"
value: "[reference(variables('appInsightsResourceId'), '2018-05-01-preview').instrumentationKey]"
1:
name: "APPLICATIONINSIGHTS_CONNECTION_STRING"
value: "[concat('InstrumentationKey=', reference(variables('appInsightsResourceId'), '2018-05-01-preview').instrumentationKey)]"
2:
name: "AzureWebJobsStorage"
value: "[concat('DefaultEndpointsProtocol=https;AccountName=',variables('storageAccountName'), ';EndpointSuffix=', environment().suffixes.storage, ';AccountKey=',listkeys(resourceId('Microsoft.Storage/storageAccounts', variables('storageAccountName')),
'2019-06-01').keys[0].value,';')]"
3:
name: "FUNCTIONS_EXTENSION_VERSION"
value: "~3"
4:
name: "FUNCTIONS_WORKER_RUNTIME"
value: "node"
5:
name: "WEBSITE_NODE_DEFAULT_VERSION"
value: "~12"
]
+ properties.siteConfig.http20Enabled: true
+ properties.siteConfig.localMySqlEnabled: false
+ properties.siteConfig.netFrameworkVersion: "v4.6"
```
**Additional context**
Thank you for this feature, I was a fan of Terraform so I really appreciate the work done here.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.