Open lastcoolnameleft opened 3 years ago
I tried using "value": "[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/aks-eslz-arm/providers/Microsoft.Network/virtualNetworks/vnet_spoke_arm/subnets/privateEndpointSubnet')]"
but I got the following error:
{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"LinkedInvalidPropertyId","message":"Property id '[concat('/subscriptions/', subscription().subscriptionId, '/resourceGroups/aks-eslz-arm/providers/Microsoft.Network/virtualNetworks/vnet_spoke_arm/subnets/privateEndpointSubnet')]' at path 'properties.subnet.id' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'."}]}
This issue is also present in https://github.com/Azure/Enterprise-Scale-for-AKS/blob/main/Scenarios/AKS-Secure-Baseline-PrivateCluster/ARM/04-Setup-Addons-and-AKS.md
The following file has a hardcoded subscription: https://github.com/Azure/Enterprise-Scale-for-AKS/blob/main/Scenarios/AKS-Secure-Baseline-PrivateCluster/ARM/AKS- Deployment/aks-eslz-aks.parameters.json#L41
In the step: https://github.com/Azure/Enterprise-Scale-for-AKS/blob/main/Scenarios/AKS-Secure-Baseline-PrivateCluster/ARM/03-Setup-supporting-components.md
There is a hardcoded value for the subscription in:
https://github.com/Azure/Enterprise-Scale-for-AKS/blob/main/Scenarios/AKS-Secure-Baseline-PrivateCluster/ARM/Infrastructure-Deployment/Supporting-components/Parameters/aks-eslz-containerregistry.parameters.json#L24
To Reproduce Steps to reproduce the behavior:
If you look at the deployment, this is the following error:
Expected behavior If I replaced 82e70289-bf40-45f9-8476-eab93d2031f4 with my subscription, it works.