App Service web apps should use a system-assigned managed service identity¶
A system-assigned managed service entity from Azure Active Directory enables the app to connect to other Azure services securely without the need for usernames and passwords. Eliminating credentials from the app is a more secure approach.
Navigate to App Services.
Select an app.
In the left navigation under Settings, select Identity.
Set the status to on and click Save.
To enable ‘Register with Azure Active Directory’ for an App service web app:
az webapp identity assign --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME>