Skip to content

Troubleshooting the Install

Troubleshooting the Install

Key Vault Reference Failures (Red X Marks)

Section titled “Key Vault Reference Failures (Red X Marks)”

After the deploy completes, the App Service’s Configuration page may show red X marks next to Key Vault references, and https://<sitename>.azurewebsites.net/health may return 503 Service Unavailable. This is a Microsoft Entra ID identity propagation delay, not a configuration error.

Symptoms

  • App Service Configuration shows red X marks next to Key Vault-sourced settings.
  • /health returns 503 Service Unavailable.
  • App logs show ArgumentException related to connection strings.

Root cause

When the App Service’s system-assigned managed identity is created during deploy, it takes 5 to 15 minutes to propagate across Microsoft Entra ID. During that window the App Service cannot resolve its Key Vault references.

Fix

  1. Wait 10 to 15 minutes, then refresh the Configuration page. The red X marks turn green.
  2. Restart the App Service.
  3. Verify that /health returns HTTP 200.

If the references remain unresolved after 30 minutes, check:

  • App Service > Identity > System assigned: Status is On.
  • Key Vault > Access policies: a policy exists for the App Service’s managed identity with Get and List secret permissions.
  • Key Vault > Networking: either “Allow public access from all networks” is selected, or the App Service outbound IPs are in the firewall allowlist.
  • Each Key Vault reference in App Service Configuration shows a URL where the secret name exactly matches a secret in the vault (case-sensitive).

The portal applies database migrations when it starts. If a migration fails, the portal stops rather than run against a database that doesn’t match it: /health doesn’t respond, and the App Service log stream or Application Insights shows “FATAL: Database migration failed.”

  1. Restart the App Service. Migrations run on startup.
  2. Wait two minutes and check /health again.
  3. If the portal still doesn’t start, check the logs for the migration error.

/health/migrations reports migration status to administrators only, so it isn’t useful before you can sign in. Opening it in a browser returns HTTP 403 with “Admin access is required.”

Common causes:

  • SQL firewall: add the App Service outbound IPs to the SQL Server firewall rules.
  • Connection timeout: Azure SQL takes a few minutes to be ready on first deploy. Restart the App Service again.
  • Permission denied: the SQL user the template configured should have the db_owner role on the database. If it does not, the template may have failed partway through. Redeploy or contact support.

Administrators are the account that ran the deployment (the initial administrator) and, if one is configured, the members of the Admin Group. Any other account sees no Admin link, and an administration address opened directly shows a page titled Administrators Only, with a link back to the store. That includes an Entra ID Global Administrator: directory roles don’t grant portal administration. If the page says Administration Is Unavailable instead, App Store couldn’t check whether you’re an administrator, and the page says why.

Sign in with the account that ran the deployment, or with a member of the Admin Group. If the deployment was run by a service principal or managed identity and no Admin Group was supplied, nobody is an administrator yet; see Sign in and verify for how to add a group.

The browser returns an Entra ID error like “The reply URL specified in the request does not match the reply URLs configured for the application.” This means the App Store app registration’s redirect URI list does not include the URL you are signing in from.

Add the URL to the App Store app registration per Add the production redirect URI. Enter it with no trailing slash and no path, for example https://<sitename>.azurewebsites.net.

Sign-in succeeds, but operations like Sync Apps from Intune fail. The App Service’s managed identity doesn’t have the Microsoft Graph application permissions App Store needs, or its token doesn’t carry them yet. In Reports > Store Health, the Microsoft Graph permissions check names the managed identity and says which permissions its token is missing.

Run the script from Grant Microsoft Graph permissions to the App Service. If you already ran it, verify the assignment per the same page’s verification section. If the permissions are granted and Graph calls started failing after the App Service restarted, see Graph calls fail after a restart.

For deployment issues not covered here, see the administration Troubleshooting guide or contact PowerStacks Support.