I am getting 'Failed to get vnet CIDR' error while trying to peer into a Vnet.

Vivek Bezavada 306 Reputation points Microsoft Employee
2020-05-08T20:03:56.027+00:00

I am trying to peer into a virtual network in a different subscription but getting Failed to get vnet CIDR error.

[Note: As we migrate from MSDN, this question has been posted by an Azure Cloud Engineer as a frequently asked question]

Azure Red Hat OpenShift
Azure Red Hat OpenShift
An Azure service that provides a flexible, self-service deployment of fully managed OpenShift clusters.
91 questions
0 comments No comments
{count} votes

Accepted answer
  1. KarishmaTiwari-MSFT 20,552 Reputation points Microsoft Employee
    2020-05-08T22:55:28.31+00:00

    In the subscription that has the virtual network, make sure to register Microsoft.ContainerService provider with

    az provider register -n Microsoft.ContainerService --wait

    Source: Azure Official Documentation

    0 comments No comments

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.