frontdoor-container-apps icon indicating copy to clipboard operation
frontdoor-container-apps copied to clipboard

How can the following RG be found? I'm seeing errors when building this stack as it cannot find this RG

Open ardeshir opened this issue 1 year ago • 1 comments


resource loadBalancer 'Microsoft.Network/loadBalancers@2021-05-01' existing = {
  name: 'kubernetes-internal'
  scope: resourceGroup(containerAppsManagedResourceGroup)
}

ERROR: deployment failed: failing invoking action 'provision', error deploying infrastructure: deploying to subscription:

Deployment Error Details: ResourceGroupNotFound: Resource group 'MC_nicefield-8217ac6e-rg_nicefield-8217ac6e_eastus' could not be found.

TraceID: 42deee2e3a098989afaab3fb0bcb1ada

If you can explain what containerAppsManagedResourceGroup is trying to reach, maybe there can be a work around? Thank you for this repo, and any future help you can provide!

ardeshir avatar Apr 12 '24 19:04 ardeshir

I have described it here: https://github.com/microsoft/azure-container-apps/issues/402#issuecomment-1367895724

To deploy AFD with a private ACA environment you need to create a private link connection between Front Door and the internal Azure Load Balancer. For that reason you have to create a Private Link Service for the Load balancer. The challenge is now to 'find' the Load Balancer the Private Link Service should be created for and add the ID of the Load Balancer to the Private Link Service resource. In my example I used the default domain of the environment to create the name of the 'auto-generated' resource group, because you need to provide the name and the resource group of the Load Balancer to get the required ID.

sebafo avatar May 02 '24 13:05 sebafo