Hello,
I created a "Virtual network connection" from a virtual Hub to Virtual Network.
I saw that from the Virtual Network side a peering connection was created.
My question is how can I know which Hub is this peering connected to? (except for extracting his name from the generated id)
On the peer ID (called also Remote virtual network in Azure) I got some ID that AZURE generates that looks like the following:
/subscriptions/4cc72ec3-2cfb-40a3-b9b4-4f12c94b2f44/resourceGroups/RG_VirtualHub1_2e02cac7-c115-4900-b5f2-395e20174908/providers/Microsoft.Network/virtualNetworks/HV_VirtualHub1_34942b50-bb09-4e9f-917c-f729fdc7eb41
*The subscription ID is not the subscription that the Hub exists on.
*The resourceGroup ID is not the resourceGroup that the Hub exists on.
*The "virtualNetworks" (it's a Hub at all) is not the virtual Hub id.
All the above are generated by Azure.
There is a way to know which Hub is this peering connected to (from the VNET side) by the real Hub ID?
I tried by the VNET peering API but I got the same generated ID
Thanks!