azure-resource-manager

'Microsoft.Web/sites/config' azureStorageAccounts fails due to 500 InternalError

只谈情不闲聊 提交于 2021-01-01 11:06:53
问题 I have the following resource in a template: { "type": "Microsoft.Web/sites/config", "apiVersion": "2018-11-01", "name": "[concat(parameters('appservice_name'), '/web')]", "location": "East US", "dependsOn": [ "[resourceId('Microsoft.Web/sites', parameters('appservice_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]", "[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccounts_name'), 'default',

'Microsoft.Web/sites/config' azureStorageAccounts fails due to 500 InternalError

匆匆过客 提交于 2021-01-01 11:01:40
问题 I have the following resource in a template: { "type": "Microsoft.Web/sites/config", "apiVersion": "2018-11-01", "name": "[concat(parameters('appservice_name'), '/web')]", "location": "East US", "dependsOn": [ "[resourceId('Microsoft.Web/sites', parameters('appservice_name'))]", "[resourceId('Microsoft.Storage/storageAccounts', parameters('storageAccounts_name'))]", "[resourceId('Microsoft.Storage/storageAccounts/blobServices/containers', parameters('storageAccounts_name'), 'default',

The template function 'reference' is not expected at this location

萝らか妹 提交于 2020-12-15 06:36:48
问题 I'm trying to execute a script in my template using Microsoft.Resources/deploymentScripts, but also I'm trying to declare de user assigned identity in the same template { "type": "Microsoft.ManagedIdentity/userAssignedIdentities", "name": "scriptIdentity", "apiVersion": "2018-11-30", "location": "[resourceGroup().location]" }, { "type": "Microsoft.Resources/deploymentScripts", "apiVersion": "2019-10-01-preview", "name": "updateAppServiceConfigMountPointScript", "dependsOn": [ "[resourceId(

How to assign an application role to a managed identity in the ARM template

拟墨画扇 提交于 2020-12-15 06:18:01
问题 I have the following scenario. My application registration defines a set of application roles I dynamically deploy a scaleset with a System assigned managed identity via ARM template During the deployment i want to assign that identity to one of the specific application role defined above I update my deployment template with the following resource { "type": "Microsoft.Authorization/roleAssignments", "apiVersion": "2017-09-01", "name": "<random Guid>", "dependsOn": [ "[concat('Microsoft

How to assign an application role to a managed identity in the ARM template

时间秒杀一切 提交于 2020-12-15 06:17:23
问题 I have the following scenario. My application registration defines a set of application roles I dynamically deploy a scaleset with a System assigned managed identity via ARM template During the deployment i want to assign that identity to one of the specific application role defined above I update my deployment template with the following resource { "type": "Microsoft.Authorization/roleAssignments", "apiVersion": "2017-09-01", "name": "<random Guid>", "dependsOn": [ "[concat('Microsoft

Azure ARM Template - Using virtualMachines/extensions with CopyIndex

删除回忆录丶 提交于 2020-11-29 10:51:01
问题 I managed to deploy this script without any problems, but I am trying to provision the VMs with a bash script using the virtualMachines/extensions. Do you have any suggestions on how to use the copyIndex in this section? I tried in several ways but I had no luck and the script fails to deploy with syntax errors. This is the script I am trying to repurpose: https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-copy-index-loops. Any assistance is appreciated. Thank you. This is

Azure ARM Template - Using virtualMachines/extensions with CopyIndex

左心房为你撑大大i 提交于 2020-11-29 10:50:44
问题 I managed to deploy this script without any problems, but I am trying to provision the VMs with a bash script using the virtualMachines/extensions. Do you have any suggestions on how to use the copyIndex in this section? I tried in several ways but I had no luck and the script fails to deploy with syntax errors. This is the script I am trying to repurpose: https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-copy-index-loops. Any assistance is appreciated. Thank you. This is

Azure ARM Template - Using virtualMachines/extensions with CopyIndex

跟風遠走 提交于 2020-11-29 10:50:23
问题 I managed to deploy this script without any problems, but I am trying to provision the VMs with a bash script using the virtualMachines/extensions. Do you have any suggestions on how to use the copyIndex in this section? I tried in several ways but I had no luck and the script fails to deploy with syntax errors. This is the script I am trying to repurpose: https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-copy-index-loops. Any assistance is appreciated. Thank you. This is

Deleting all resources in an Azure Resource Group with age more than x days

拥有回忆 提交于 2020-11-29 09:47:07
问题 I attempted to "expand" creationTime on a resource in a resource group (python api) so I could find it's age and if > max_age_days I would have deleted the resource within the resource group. But creationTime doesn't seem to be available on resources. Is there another way to delete resources within a resource group based on their age ? Creation Date and Created By are probably the most basic requirements of resource management. 回答1: Azure stores a createdTime and changedTime property on all