{"action":"created","issue":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/21258","repository_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs","labels_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/21258/labels{/name}","comments_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/21258/comments","events_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/21258/events","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/21258","id":394028063,"node_id":"MDU6SXNzdWUzOTQwMjgwNjM=","number":21258,"title":"Fill a dictionary using copy?","user":{"login":"ig-sinicyn","id":11225241,"node_id":"MDQ6VXNlcjExMjI1MjQx","avatar_url":"https://avatars3.githubusercontent.com/u/11225241?v=4","gravatar_id":"","url":"https://api.github.com/users/ig-sinicyn","html_url":"https://github.com/ig-sinicyn","followers_url":"https://api.github.com/users/ig-sinicyn/followers","following_url":"https://api.github.com/users/ig-sinicyn/following{/other_user}","gists_url":"https://api.github.com/users/ig-sinicyn/gists{/gist_id}","starred_url":"https://api.github.com/users/ig-sinicyn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ig-sinicyn/subscriptions","organizations_url":"https://api.github.com/users/ig-sinicyn/orgs","repos_url":"https://api.github.com/users/ig-sinicyn/repos","events_url":"https://api.github.com/users/ig-sinicyn/events{/privacy}","received_events_url":"https://api.github.com/users/ig-sinicyn/received_events","type":"User","site_admin":false},"labels":[{"id":646560635,"node_id":"MDU6TGFiZWw2NDY1NjA2MzU=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/azure-resource-manager/svc","name":"azure-resource-manager/svc","color":"a050f0","default":false},{"id":836703193,"node_id":"MDU6TGFiZWw4MzY3MDMxOTM=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/cxp","name":"cxp","color":"bf1394","default":false},{"id":853283851,"node_id":"MDU6TGFiZWw4NTMyODM4NTE=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/product-question","name":"product-question","color":"43e08a","default":false},{"id":836702742,"node_id":"MDU6TGFiZWw4MzY3MDI3NDI=","url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/labels/triaged","name":"triaged","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":{"login":"jakaruna-MSFT","id":43405697,"node_id":"MDQ6VXNlcjQzNDA1Njk3","avatar_url":"https://avatars2.githubusercontent.com/u/43405697?v=4","gravatar_id":"","url":"https://api.github.com/users/jakaruna-MSFT","html_url":"https://github.com/jakaruna-MSFT","followers_url":"https://api.github.com/users/jakaruna-MSFT/followers","following_url":"https://api.github.com/users/jakaruna-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/jakaruna-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jakaruna-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakaruna-MSFT/subscriptions","organizations_url":"https://api.github.com/users/jakaruna-MSFT/orgs","repos_url":"https://api.github.com/users/jakaruna-MSFT/repos","events_url":"https://api.github.com/users/jakaruna-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jakaruna-MSFT/received_events","type":"User","site_admin":false},"assignees":[{"login":"jakaruna-MSFT","id":43405697,"node_id":"MDQ6VXNlcjQzNDA1Njk3","avatar_url":"https://avatars2.githubusercontent.com/u/43405697?v=4","gravatar_id":"","url":"https://api.github.com/users/jakaruna-MSFT","html_url":"https://github.com/jakaruna-MSFT","followers_url":"https://api.github.com/users/jakaruna-MSFT/followers","following_url":"https://api.github.com/users/jakaruna-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/jakaruna-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/jakaruna-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakaruna-MSFT/subscriptions","organizations_url":"https://api.github.com/users/jakaruna-MSFT/orgs","repos_url":"https://api.github.com/users/jakaruna-MSFT/repos","events_url":"https://api.github.com/users/jakaruna-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/jakaruna-MSFT/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-12-25T14:48:42Z","updated_at":"2018-12-25T18:02:57Z","closed_at":null,"author_association":"NONE","body":"I'm trying to assign multiple managed identities to the VMSS.\r\nProperties file:\r\n```\r\n\t\"vmss\": {\r\n\t\t\"name\": \"testVMSS\",\r\n\t\t\"vmssImage\": \"Datacenter-Core-1809-with-Containers-smalldisk\",\r\n\t\t...\r\n\t\t\"userAssignedIdentity\": \"/subscriptions/.../identity1\",\r\n\t\t\"userAssignedIdentities\": [\r\n\t\t\t\"/subscriptions/.../identity1\",\r\n\t\t\t\"/subscriptions/.../identity2\"\r\n\t\t]\r\n\t}\t\r\n```\r\nTemplate for single managed identity (works fine):\r\n```\r\n{\r\n\t\"type\": \"Microsoft.Compute/virtualMachineScaleSets\",\r\n\t\"name\": \"[variables('vmss').name]\",\r\n\t...\r\n\t\"identity\": {\r\n\t\t\"type\": \"UserAssigned\",\r\n\t\t\"userAssignedIdentities\": {\r\n\t\t\t\"[variables('vmss').userAssignedIdentity]\": {}\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nThe question is, how to pass multiple userAssignedIdentities into template? The doc states that the `copy` works only with array of properties.\r\n\r\n---\r\n#### Document Details\r\n\r\n⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*\r\n\r\n* ID: 7e71b5b6-0a86-b261-4fb3-e31ca6a12ec3\r\n* Version Independent ID: ab404f2d-5eb8-4e7e-fc37-ad785dcf852f\r\n* Content: [Deploy multiple instances of Azure resources](https://docs.microsoft.com/en-us/azure/azure-resource-manager/resource-group-create-multiple)\r\n* Content Source: [articles/azure-resource-manager/resource-group-create-multiple.md](https://github.com/Microsoft/azure-docs/blob/master/articles/azure-resource-manager/resource-group-create-multiple.md)\r\n* Service: **azure-resource-manager**\r\n* GitHub Login: @tfitzmac\r\n* Microsoft Alias: **tomfitz**"},"comment":{"url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/comments/449865916","html_url":"https://github.com/MicrosoftDocs/azure-docs/issues/21258#issuecomment-449865916","issue_url":"https://api.github.com/repos/MicrosoftDocs/azure-docs/issues/21258","id":449865916,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTg2NTkxNg==","user":{"login":"MarileeTurscak-MSFT","id":13383753,"node_id":"MDQ6VXNlcjEzMzgzNzUz","avatar_url":"https://avatars3.githubusercontent.com/u/13383753?v=4","gravatar_id":"","url":"https://api.github.com/users/MarileeTurscak-MSFT","html_url":"https://github.com/MarileeTurscak-MSFT","followers_url":"https://api.github.com/users/MarileeTurscak-MSFT/followers","following_url":"https://api.github.com/users/MarileeTurscak-MSFT/following{/other_user}","gists_url":"https://api.github.com/users/MarileeTurscak-MSFT/gists{/gist_id}","starred_url":"https://api.github.com/users/MarileeTurscak-MSFT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarileeTurscak-MSFT/subscriptions","organizations_url":"https://api.github.com/users/MarileeTurscak-MSFT/orgs","repos_url":"https://api.github.com/users/MarileeTurscak-MSFT/repos","events_url":"https://api.github.com/users/MarileeTurscak-MSFT/events{/privacy}","received_events_url":"https://api.github.com/users/MarileeTurscak-MSFT/received_events","type":"User","site_admin":false},"created_at":"2018-12-25T18:02:57Z","updated_at":"2018-12-25T18:02:57Z","author_association":"CONTRIBUTOR","body":"@ig-sinicyn \r\nThanks for your feedback! We will investigate and update as appropriate."}}
{"actor":{"display_login":"MarileeTurscak-MSFT"}}