Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3k forks source link

private DNS link VNET creation with DNS and VNET not in the same resource group #23351

Open ahmedkhamessi opened 2 years ago

ahmedkhamessi commented 2 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az network private-dns link vnet create

Errors:

(BadRequest) Virtual network resource not found for '/subscriptions/******-****-***/resourceGroups/rg-name/providers/Microsoft.Network/virtualNetworks/VNET-Hub
'
Code: BadRequest
Message: Virtual network resource not found for '/subscriptions/******-****-***/resourceGroups/rg-name/providers/Microsoft.Network/virtualNetworks/VNET-Hub
'

**FYI**
The VNET exists and in the command line the VNET ID is being passed instead of the name

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Create the private dns link.

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: 

azure-cli 2.32.0 *

Extensions:
aks-preview 0.5.70
azure-firewall 0.14.1
ip-group 0.1.2

Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0

Additional Context

yonzhan commented 2 years ago

network

necusjz commented 2 years ago

@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?

ahmedkhamessi commented 2 years ago

@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.

lmpeiris commented 1 year ago

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)

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dnssuppgithub.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @aznetsuppgithub.

microsoft-github-policy-service[bot] commented 1 year ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dnssuppgithub.