You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My image template has a "Shell" type customization option that downloads a script from Azure Blob Storage. For rapid PoC purposes I allowed anonymous access to container (but didn't allow anonymous enumeration). Then I ran the following command:
(Unauthorized) Not authorized to access the resource: https://***.blob.core.windows.net/***/install-software.sh. Please check the user assigned identity has the correct permissions. For more details, go to https://aka.ms/azvmimagebuilderts.
If I grant the user-assigned identity Storage Blob Data Reader permissions to the container, it starts working.
I think it doesn't make sense it requires RBAC permissions if anonymous access is already allowed. I tested that I was able to anonymously access the script file using my browser in incognito.
The text was updated successfully, but these errors were encountered:
My image template has a "Shell" type customization option that downloads a script from Azure Blob Storage. For rapid PoC purposes I allowed anonymous access to container (but didn't allow anonymous enumeration). Then I ran the following command:
az resource create --resource-group rg-images --properties @image-builder-template.json --is-full-object --resource-type Microsoft.VirtualMachineImages/imageTemplates --name MyImage
But it gives me an error:
If I grant the user-assigned identity Storage Blob Data Reader permissions to the container, it starts working.
I think it doesn't make sense it requires RBAC permissions if anonymous access is already allowed. I tested that I was able to anonymously access the script file using my browser in incognito.
The text was updated successfully, but these errors were encountered: