arm-template

Azure ARM Role Assignment different Resource Group

你说的曾经没有我的故事 提交于 2020-12-12 11:42:06
问题 I'm trying to create an ARM template that has a VM, I want the VM to have AcrPull role assignment to a Container Registry that is in a different resource group. I'm setting the scope property to the ID of the ACR (i got this from https://resources.azure.com). { "apiVersion": "2017-09-01", "type": "Microsoft.Authorization/roleAssignments", "name": "[guid(resourceGroup().id, 'stuff')]", "properties": { "roleDefinitionId": "[variables(parameters('builtInRoleType'))]", "principalId": "[reference

Apply Azure RBAC to a resource using ARM

谁说我不能喝 提交于 2020-12-08 05:44:30
问题 Is there a way to apply RBAC rules at the resource level via ARM? I was able to follow this Microsoft guide to add a user/role at the resource group level, but not at the resource. In particular, I am trying to add a new reader role to AppInsights via ARM. However, when I adjust the scope, the template just fails with this error: "error": { "code": "InvalidCreateRoleAssignmentRequest", "message": "The request to create role assignment '{guid}' is not valid. Role assignment scope '

Apply Azure RBAC to a resource using ARM

时光怂恿深爱的人放手 提交于 2020-12-08 05:44:24
问题 Is there a way to apply RBAC rules at the resource level via ARM? I was able to follow this Microsoft guide to add a user/role at the resource group level, but not at the resource. In particular, I am trying to add a new reader role to AppInsights via ARM. However, when I adjust the scope, the template just fails with this error: "error": { "code": "InvalidCreateRoleAssignmentRequest", "message": "The request to create role assignment '{guid}' is not valid. Role assignment scope '

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