Gateway authentication failed for 'Microsoft.Network' creating a private endpoint

FERNANDO LEAL CARMONA 20 Reputation points
2024-06-17T08:44:36.4466667+00:00

Morning,

I have been problems creating a private endpoint in my Visual Studio Subscription. The error is the following:

{
    "status": "Failed",
    "error": {
        "code": "GatewayAuthenticationFailed",
        "message": "Gateway authentication failed for 'Microsoft.Network'. Diagnostic information: timestamp '20240617T084118Z', tracking id '12d5b68a-4c90-40d5-a486-04931212838b', request correlation id 'b65a97fe-9c34-422d-8376-dfda23b91f74'."
    }
}

Could you help me with this issue?.

Error1

Regards.

Azure Private Link
Azure Private Link
An Azure service that provides private connectivity from a virtual network to Azure platform as a service, customer-owned, or Microsoft partner services.
492 questions
0 comments No comments
{count} votes

Accepted answer
  1. Deepanshukatara-6769 7,905 Reputation points
    2024-06-17T10:28:13.5566667+00:00

    Hi, Welcome to MS Q&A

    The error message "GatewayAuthenticationFailed" indicates that there was a problem with authenticating your request to create a private endpoint in Azure. Here are some steps to troubleshoot and resolve this issue:

    1. Verify Your Subscription and Permissions
    • Ensure that your Visual Studio subscription has the necessary permissions to create a private endpoint.
    • Verify that your subscription is active and in good standing.
    • Check if you have the required role (such as Owner or Contributor) assigned to your account for the specific resource group and subscription.
    1. Review Azure Policy and Network Security Groups (NSGs)
    • Check if there are any Azure policies or Network Security Groups (NSGs) that might be blocking the creation of the private endpoint.
    • Navigate to Azure Policy in the Azure portal and review any policies that might affect network resources.
    1. Ensure Resource Provider is Registered
    • Verify that the required resource provider (Microsoft.Network) is registered in your subscription:
      1. Go to the Azure portal.
        1. Navigate to "Subscriptions".
          1. Select your subscription.
            1. Under "Settings", select "Resource providers".
              1. Ensure Microsoft.Network is registered. If not, register it.
    1. Double Check Network Configuration
    • Ensure that your virtual network (VNet) and subnet configurations are correct.
    • Verify that there is no overlap or misconfiguration in the subnet settings. The error message "GatewayAuthenticationFailed" indicates that there was a problem with authenticating your request to create a private endpoint in Azure.

    NOTE: Most likely it seems 3rd point you may not have network as registered provider

    Kindly check and let us know , if any further questions

    Please accept answer if it helps

    Thanks

    Deepanshu


1 additional answer

Sort by: Most helpful
  1. FERNANDO LEAL CARMONA 20 Reputation points
    2024-06-17T12:23:46.2433333+00:00

    The problem was solved doing a re-register of the Microsoft.Network provider. Thanks for the help.

    Regards.

    0 comments No comments