小编Mat*_*202的帖子

How to reference subnets from another virtual network/resource group when creating a NIC using ARM templates

I am trying to create a NIC for a VM in a resource group. The problem I have is that i'm trying to reference a subnet from another resource group in Azure. Therefore, I am having to reference it using subscription level deployments in ARM templates.

"subnetref": "[concat(subscription().id, '/resourceGroups/', parameters('HUB Network RG'), '/providers/Microsoft.Network/virtualNetworks/', parameters('HUB VNet'), '/virtualNetworks/subnets', parameters('HUB DC Subnet'))]"
Run Code Online (Sandbox Code Playgroud)

Above is the subnet ref variable I am trying to create. I then have the below for the VM NIC i'm …

json azure azure-rm-template

3
推荐指数
1
解决办法
9518
查看次数

标签 统计

azure ×1

azure-rm-template ×1

json ×1