Remediation
From Azure Portalโ
- Login to Azure Portal using https://portal.azure.com.
- Go to
App Services. - Click on each App.
- Under
Settingsection, click onAuthentication. - If no identity providers are set up, then click
Add identity provider. - Choose other parameters as per your requirements and click on
Add.
To disable the Basic Auth Publishing Credentials setting, perform the following steps:
- Login to Azure Portal using https://portal.azure.com.
- Go to
App Services. - Click on each App.
- Under
Settings, click onConfiguration. - Click on the
General Settingstab. - Under
Platform settings, ensureBasic Auth Publishing Credentialsis set toOff.
From Azure CLIโ
To set App Service Authentication for an existing app, run the following command:
az webapp auth update --resource-group <RESOURCE_GROUP_NAME> --name <APP_NAME> --enabled true
Note: In order to access App Service authentication settings for Web app using Microsoft API requires Website contributor permission at subscription level. A custom role can be created in place of Website contributor to provide more specific permission and maintain the principle of least privileged access.