Skip to content

Azure CLI and Resources

Azure CLI and Resources

In these commands, <your-app-name> is the name of the App Store App Service. The deployment template names it apprequest-<environment>-<unique suffix>, for example apprequest-prod- followed by a generated suffix.

View App Service configuration

Terminal window
az webapp config show \
--name <your-app-name> \
--resource-group <your-resource-group>

Restart App Service

Terminal window
az webapp restart \
--name <your-app-name> \
--resource-group <your-resource-group>

Stop and start App Service

After you grant Microsoft Graph permissions to the App Service’s managed identity, stop and then start the App Service. A restart doesn’t clear the managed identity’s cached Microsoft Graph token; stopping and starting does.

Terminal window
az webapp stop \
--name <your-app-name> \
--resource-group <your-resource-group>
az webapp start \
--name <your-app-name> \
--resource-group <your-resource-group>

View environment variables

Terminal window
az webapp config appsettings list \
--name <your-app-name> \
--resource-group <your-resource-group>

View connection strings

App Store keeps its connection strings in application settings that point to Key Vault, not in the App Service’s connection strings. Look for ConnectionStrings__DefaultConnection (the database) and AzureStorage__ConnectionString (storage):

Terminal window
az webapp config appsettings list \
--name <your-app-name> \
--resource-group <your-resource-group> \
--query "[?name=='ConnectionStrings__DefaultConnection' || name=='AzureStorage__ConnectionString']"

Check App Service health

The App Service state only says whether it’s running or stopped:

Terminal window
az webapp show \
--name <your-app-name> \
--resource-group <your-resource-group> \
--query "state"

To check App Store itself, call its health endpoint. It doesn’t need sign-in, and it reports the database and configuration checks. The overall status is Degraded when deployment settings are missing. Only a signed-in person sees the description of each check.

Terminal window
curl https://<your-app-store-host>/health