prehistoric-nail-50687
11/11/2020, 4:04 PMfrontendIPConfiguration: {
id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendIPConfigurations/appgwfip",
},
frontendPort: {
id: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/applicationGateways/appgw/frontendPorts/appgwfp",
},
I was wondering if there is some way to do something like a self-reference (e.g. this
or self
) Because the objects referenced in these example are aztually referencing an other object within the same resource. So this would become something like:
frontendIPConfiguration: {
id: "${self.id}/frontendIPConfigurations/appgwfip",
},
frontendPort: {
id: "${self.id}/frontendPorts/appgwfp",
},
It feels very wrong to create the whole path/reference by hand, specially as I would also need access to the subid
(SubscriptionID) which I think one should not deal with, it is implicit given by the connected user/principal.tall-librarian-49374
11/11/2020, 4:13 PMresourceGroup.id
so that you don’t need to deal with that part