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.