Azure/bicep-types-az

virtualMachineScaleSets health probe reference id

Opened this issue · 0 comments

Resource Type

Microsoft.Compute/virtualMachineScaleSets

Api Version

2024-03-01

Issue Type

Resource fails to deploy

Other Notes

https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.compute/vmss-automatic-repairs-slb-health-probe/azuredeploy.json#L257
https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade#configuring-a-custom-load-balancer-probe-as-application-health-probe-on-a-scale-set

All the variations below, which are show in the docs above, get translated to this in the deployed arm template:
"networkProfile": {
"healthProbe": "[reference(resourceId('Microsoft.Network/loadBalancers', variables('lbName')), '2024-01-01').probes[1].id]",

Error in azure deployment: "Value for reference id is missing. Path Properties.UpdateGroups[0].NetworkProfile.healthProbe."

The warning shown by the linter: The property "healthProbe" expected a value of type "ApiEntityReference | null" but the provided value is of type "string".

Bicep Repro

networkProfile: {
healthProbe: lb.properties.probes[1].id
//'${lb.id}/probes/${lbProbeName443}'
//resourceId('Microsoft.Network/loadBalancers/probes', lbName, lbProbeName443)

Confirm

  • I have read the troubleshooting guide and looked for duplicates.