Subscription is not registered for feature Microsoft.Network/AllowBringYourOwnPublicIpAddress required to carry out the requested operation

Martin 0 Reputation points
2026-08-18T17:14:11.7666667+00:00

Dear All,

Bastion deployment is failing with the following error:

Subscription /subscriptions/000000000000000000/resourceGroups//providers/Microsoft.Network/subscriptions/ is not registered for feature Microsoft.Network/AllowBringYourOwnPublicIpAddress required to carry out the requested operation. (Code: SubscriptionNotRegisteredForFeature)

It appears that this needs to be enabled through the support. Can you help? Please ping me internally using provided email.

Thanks, Martin

Azure Bastion
Azure Bastion

An Azure service that provides private and fully managed Remote Desktop Protocol (RDP) and Secure Shell (SSH) access to virtual machines.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Taz 9,526 Reputation points MVP Volunteer Moderator
    2026-08-18T17:46:04.6433333+00:00

    Hi Martin,

    This error means the subscription is not registered for the required Microsoft.Network feature.

    First try registering it:

    az feature register \
      --namespace Microsoft.Network \
      --name AllowBringYourOwnPublicIpAddress
    

    Then check the status:

    az feature show \
      --namespace Microsoft.Network \
      --name AllowBringYourOwnPublicIpAddress
    

    Once it shows Registered, refresh the provider:

    az provider register --namespace Microsoft.Network
    

    You need permissions that include Microsoft.Features/*, such as Contributor or Owner, to register subscription features.

    If the feature remains Pending, is unavailable for self-registration, or the Bastion deployment still fails afterward, open an Azure Support request against the affected subscription and include the full error and correlation ID.

    Also confirm the Bastion public IP is Standard SKU with Static allocation, as required for regular Bastion deployments.

    Was this answer helpful?

    0 comments No comments

Your answer

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