I have used ARM template to create private AKS cluster which automatically creates a virtual network. In the same virtual network subnet, I want to deploy few more resources using the subnetID from the previous AKS creation step.
The below mentioned outputs of ARM template results in error
"value": "[reference(variables('gwname'), '2021-08-01', 'Full').properties.agentPoolProfiles.vnetSubnetID]"
Error says vnetSubnetID is not a valid property.