|
3 | 3 | - [Terraform](#terraform) |
4 | 4 | - [Github action triggering Azure devops pipeline](#github-action-triggering-azure-devops-pipeline) |
5 | 5 | - [Bicep errors](#bicep-errors) |
| 6 | +- [Front door](#front-door) |
6 | 7 |
|
7 | 8 | ## Terraform |
8 | 9 |
|
@@ -171,3 +172,28 @@ Race condition: the managed identity is not created in time for the resources th |
171 | 172 | ``` |
172 | 173 |
|
173 | 174 | Request Owner role on subscriptions via PIM. |
| 175 | + |
| 176 | +## Front door |
| 177 | + |
| 178 | +### Error 504 |
| 179 | + |
| 180 | +When an environment is freshly created, accessing the app via fornt door may result in a blank page and 504 HTTP error. |
| 181 | + |
| 182 | +This is because the private link between front door and the container app environment must be manually approved: |
| 183 | + |
| 184 | +- Navigate to the container app environment, Settings, Networking, Private Endpoints |
| 185 | +- It should show "1 Private Endpoint". Click on it. |
| 186 | +- You should see a connection with Connection State = "Pending" |
| 187 | +- Click on the connection name (a long ID in black, not the blue private endpoint link) |
| 188 | +- Click "✔️ Approve" at the top |
| 189 | +- Wait a few minutes until Connection State shows Approved |
| 190 | + |
| 191 | +### Private link not created |
| 192 | + |
| 193 | +When an origin is created, it must create a unique private link between front door and the container app environment. The private link automatically creates a private endpoint associated with the container app environment. When more origins are added, the same link is used. |
| 194 | + |
| 195 | +If the private endpoint is deleted, for example if container app environment is deleted, the private link is gone and the origins are silently orphans. When the container app environment is recreated, even if the apps and origins are redeployed, azure will not recreate the private link. |
| 196 | + |
| 197 | +All the deployed apps show a blank page and 504 HTTP error. |
| 198 | + |
| 199 | +The solution is to delete all the origins to this particular container app environment. Then when the first origin is readded, the private link will be created. Recreate the other origins and they will use the same link. |
0 commit comments