Virtual Private Gateway will not deploy

James Wilding 0 Reputation points
2025-08-06T19:25:23.94+00:00

I get this:

The client with object id '0bb675e8-5669-4fe4-840e-a57b880795ab' does not have authorization to perform action 'Microsoft.Network/publicIPAddresses/join/action' over scope '/subscriptions/b86c36ba-fe4d-4e83-ba06-dfe45541efc2/resourceGroups/westandberry/providers/Microsoft.Network/publicIPAddresses/VPNIP' or the scope is invalid. For details on the required permissions, please visit 'https://aka.ms/vngwroles'. If access was recently granted, please refresh your credentials. (Code: LinkedAccessCheckFailed)


But I am root admin on the domain.

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
{count} votes

1 answer

Sort by: Most helpful
  1. G Sree Vidya 4,005 Reputation points Microsoft External Staff Moderator
    2025-08-06T21:12:02.8833333+00:00

    Hi James Wilding

    You're encountering an authorization issue when trying to deploy your Virtual Private Gateway.

    The error message indicates that your account doesn't have the necessary permissions to perform the action: Microsoft.Network/publicIPAddresses/join/action on the specified resource.

    means that the identity (user or service principal) is missing specific permissions on the Public IP resource or its resource group.

    Please ensure that your account has one of the following roles assigned:

    • Network Contributor
    • Contributor (broader access)
    • Virtual Network Contributor (if working with VNet-related resources)

    You can assign the role via Azure Portal:

    Azure Portal → Resource Group or Resource → Access Control (IAM) → Add Role Assignment

    Or via PowerShell:

    New-AzRoleAssignment -ObjectId "0bb675e8-5669-4fe4-840e-a57b880795ab" `
    -RoleDefinitionName "Network Contributor" `
    -Scope "/subscriptions/b86c36ba-fe4d-4e83-ba06-dfe45542efc2/resourceGroups/westandberry"
    

    Please refer this Microsoft document to know about VPN Roles https://docs.azure.cn/en-us/vpn-gateway/roles-permissions


    I hope this helps! If these answers your query, do click the "Upvote" of which might be beneficial to other community members reading this thread.

    If the above is unclear or you are unsure about something, please add a comment below.

    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.