Sathya
Sathya

Reputation: 25

What Rbac action/permission would allow Azure App Service Network Access Restrictions

Which Rbac action would allow Azure App Service Network --> Access Restrictions ? We dont want every user to have auth to set/unset ip-rules using 'Networking --- Access Restrictions' for app-services.

Upvotes: 2

Views: 921

Answers (1)

suziki
suziki

Reputation: 14103

I have tried to change the network access and I can get the action information from the brower.

enter image description here

So the action should between this:

enter image description here

You can use a custom role,

 $role = Get-AzRoleDefinition -Name "Virtual Machine Contributor"

 $role.Id =$null

 $role.Name = "testcustombowman"

 $role.Description = "111111111111111111111111111111111111111111111"

 $role.Actions.RemoveRange(0,$role.Actions.Count)

 $role.Actions.add("Microsoft.Web/sites/config/Read")

 $role.AssignableScopes.Clear()

 $role.AssignableScopes.Add("/subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx")

 New-AzRoleDefinition -Role $role

Have a look of this Offcial doc, and this.

But I still recommend you to use a simple way, directly give the relevant people only Read permissions.

It is highly recommended that you use the simple method, add role assignment -> Select Reader -> Select User

As you can see, the relevant users are unable to operate the settings you said in my case.

enter image description here

Upvotes: 1

Related Questions