When we deploy our environment with e.g. AKS and Application Gateway through bicep, we get sometimes this error during AKS provisioning:
{
"status": "Failed",
"error": {
"code": "ResourceNotFound",
"message": "The Resource 'Microsoft.Network/applicationGateways/xxx-agw' under resource group 'xxx-rg' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix"
}
}
We create the Application Gateway in the same bicep file as the AKS, the Application Gateway is referenced here in the bicep code of the AKS:
addonProfiles: {
ingressApplicationGateway: {
enabled: true
config: {
applicationGatewayId: applicationGateway.id
effectiveApplicationGatewayId: applicationGateway.id
}
}
When we run the bicep file again, everything works. So is this a timing issue or do I miss something?
Thanks, Peter