Open ahmedkhamessi opened 2 years ago
network
@ahmedkhamessi, sorry, I didn't catch your point.
The reason for not being in the same resource group is because $RG1 and $RG2 are different, right? Could you create them in the same resource group?
@necusjz It's a hub and spoke topology where the VM is in a different region and a different resource group than the private DNS zone. The link is required for the resolution of the different domain names.
Having the same issue. pvt dns zone is on a separate resource group created for networking resources, in a different region. Although CLI fails, we can happily do this via portal (except without the automation possibility)
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dnssuppgithub.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dnssuppgithub.
This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az network private-dns link vnet create
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az network vnet create -g $RG1 -n $HubVnet --address-prefix $HubAddressSpace \ --subnet-name $HubSubnet --subnet-prefix $HubSubnetPrefix
az network private-dns zone create -g $RG2 -n $DNSZoneName
HubVnetId=$(az network vnet show \ --resource-group $RG1 \ --name $HubVnet \ --query id --out tsv)
az network private-dns link vnet create --name {} --registration-enabled {} --resource-group {} --virtual-network $HubVnetId --zone-name {} --debug
Expected Behavior
Create the private dns link.
Environment Summary
Additional Context