Azure / Azure/azvmimagebuilder

aibRoleImageCreation.json

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
PowerShell
Stars
111
Forks
69
PR merge metrics
No merged PRs in 30d

Description

When trying to update the customr role az cli the assignable scope is changed to below code as shown
"**/subscriptions//resourceGroups**/"

aibRoleImageCreation.json

````
sed -i -e "s//$subscriptionID/g" aibRoleImageCreation.json
sed -i -e "s//$aibResourceGroup/g" aibRoleImageCreation.json
sed -i -e "s/Azure Image Builder Service Image Creation Role/$aibResourceGroup/g" aibRoleImageCreation.json
``` `

`_```
{
"Name": "",
"IsCustom": true,
"Description": "Image Builder access to create resources for the image build, you should delete or split out as appropriate",
"Actions": [
"Microsoft.Compute/galleries/read",
"Microsoft.Compute/galleries/images/read",
"Microsoft.Compute/galleries/images/versions/read",
"Microsoft.Compute/galleries/images/versions/write",

"Microsoft.Compute/images/write",
"Microsoft.Compute/images/read",
"Microsoft.Compute/images/delete"
],
"NotActions": [

],
"AssignableScopes": [
"/subscriptions//resourceGroups/"
]
}
```_ `

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.