Forum Discussion
abovethekloud
Aug 22, 2019Copper Contributor
Azure Blueprint: Allow resource only in specifc resource group
Hello all, We would like to use blueprint to govern azure subscriptions. Within the blueprint we would like to deploy some kind of "core networking" resource group containing a VNET, which we can...
Sep 11, 2019
AFAIK there's no alias for resource group name for policy evaluation.
You could restrict vNICs to a certain vNet using this example:
https://docs.microsoft.com/en-us/azure/governance/policy/samples/use-approved-vnet-vm-nics
You might want to enhance the example to allow an array of allowed vNets for your vNics.
-Michael