Managed service identity in App Service makes the app more secure by eliminating secrets from the app, such as credentials in the connection strings. When registering with Azure Active Directory in the app service, the app will connect to other Azure services securely without the need of username and passwords.
Perform the following in the Azure Console:
Perform the following in Azure Command Line Interface 2.0:
To set Register with Azure Active Directory feature for an existing app, run the following command.
az webapp identity assign –resource-group <RESOURCE_GROUP_NAME> –name <APP_NAME>