What Azure Role or Permission is required to Modify IP configurations on Network Adapters

Pace James MTII-GF 1 Reputation point
2021-09-16T11:53:38.853+00:00

When using the Network Contributor role in Azure, I am unable to modify/edit an existing IP configuration on a Network Interface. When using Contributor, it works fine. Network Contributor is assigned on the resource group and is being inherited on the Network Interface.

132732-image.png

What I am trying to achieve: With least privileges possible, I want to allow a user to switch the Private IP address setting between Dynamic or Static.

I am trying to avoid having to give Contributor access to the entire resource group. I am happy to create a Custom Role, but am unable to determine which Permissions to add to allow this capability. Does anyone know?

Error when attempting to Edit an existing configuration:

132763-image.png

Incidentally, when attempting to Add a configuration, I am also unable to with Network Contributor, and receive this error message:

Error when attempting to Add:
132756-image.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,070 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
982 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. TravisCragg-MSFT 5,696 Reputation points Microsoft Employee Moderator
    2021-09-17T02:27:50.387+00:00

    This was a fun one!

    although the documentation states that just contributor permissions are needed on the NIC to make changes, to change the private IP address between dynamic and static, you will also need contributor permissions on the VNET as well. I tested this with read permissions on the VNET but got a permissions error (like this should have given).

    giving contributor permissions to a VNET to those who should not have it is not a great situation, why do you want users to have permissions to change the private ip allocation type?

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.