Network contributor

Manchukonda Kranthi Kumar 131 Reputation points
2023-05-20T10:48:35.91+00:00

If I assign a user with the network contributor role on a load balancer,will he able to add backend vms on to the load balancer with no other additional permissions assigned to that user?

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,775 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 50,096 Reputation points Microsoft Employee Moderator
    2023-05-22T15:49:31.9333333+00:00

    Hello @Manchukonda Kranthi Kumar ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    I understand that you would like to know if you assign a user with the network contributor role on a load balancer, will he be able to add backend VMs on to the load balancer with no other additional assigned permissions.

    No, assigning a user with the "Network Contributor" role on a load balancer in Azure does not grant them the ability to add backend virtual machines (VMs) to the load balancer.

    The "Network Contributor" role provides permissions to manage network resources such as virtual networks, subnets, network interfaces, and IP addresses. While it does grant certain permissions related to load balancers, such as managing load balancing rules and probes, it does not provide the necessary permissions to add or modify backend VMs associated with the load balancer.

    enter image description here

    To add backend VMs to a load balancer, the user would require additional permissions, specifically the "Virtual Machine Contributor" role or higher. The "Virtual Machine Contributor" role grants the necessary permissions to manage virtual machines, including the ability to add, modify, and delete VMs.

    enter image description here

    Therefore, to allow a user to add backend VMs to a load balancer, you would need to assign them the "Virtual Machine Contributor" role or a role that includes it, such as the "Contributor" or "Owner" roles.

    The "Contributor" role provides full access to all resources, including the ability to create, read, update, and delete resources but does not grant permissions to manage access control.

    enter image description here

    In addition to the "Contributor" role, you can create a custom role with specific permissions to add a backend pool to a load balancer. The custom role should have the following permissions:

    • Microsoft.Network/loadBalancers/backendAddressPools/read
    • Microsoft.Network/loadBalancers/backendAddressPools/write
    • Microsoft.Network/loadBalancers/backendAddressPools/delete
    • Microsoft.Network/loadBalancers/backendAddressPools/join/action

    These permissions allow the user or role to read, create, delete, and modify backend address pools within the Azure Load Balancer.

    enter image description here

    Please note that granting permissions at a granular level is recommended to follow the principle of least privilege. You should carefully consider the specific permissions required and avoid assigning excessive permissions that are not necessary for the task at hand.

    Refer: https://learn.microsoft.com/en-us/azure/role-based-access-control/resource-provider-operations#microsoftnetwork

    https://learn.microsoft.com/en-us/azure/active-directory/roles/custom-create

    Kindly let us know if the above helps or you need further assistance on this issue.


    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    10 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.