-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
This doc says: "If you want to use an existing subnet in other resource group or subscription, please provide the ID instead of the name of the subnet." That assumes that I can create NIC using VNET from different subscription.
However, https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface#create-a-network-interface says: "Before creating a network interface, you must have an existing virtual network in the same location and subscription you create a network interface in."
Which one is true? Is it supported scenario? So far I'm getting following error:
"Resource /subscriptions/<subscription id for vnet>/resourceGroups/<rg>>/providers/Microsoft.Network/virtualNetworks/Test1/subnets/default referenced by resource /subscriptions/<subscription id for NIC>/resourceGroups/VNet-Demo/providers/Microsoft.Network/networkInterfaces/Nic1 was not found. Please make sure that the referenced resource exists, and that both resources are in the same region." that just says about region.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 29b6bb22-cb91-c7f8-995e-134d0fe5627f
- Version Independent ID: a92f24e8-36a0-808b-a9e7-598f85560b0f
- Content: az network nic
- Content Source: src/azure-cli/azure/cli/command_modules/network/_help.py
- Service: virtual-network
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw