Remediation
From Azure Portalโ
- Log in to the Azure portal using https://portal.azure.com.
- Go to
App Services. - Select each app.
- Under
Settings, selectAuthentication. - If no identity providers are set up, then click
Add identity provider. - Choose other parameters as required and click
Add.
To disable the Basic Auth Publishing Credentials setting, perform the following steps:
- Log in to the Azure portal using https://portal.azure.com.
- Go to
App Services. - Select each app.
- Under
Settings, selectConfiguration. - Select 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: Accessing App Service authentication settings for a web app using the Microsoft API requires Website contributor permission at the subscription level. A custom role can be created in place of Website contributor to provide more specific permissions and maintain the principle of least privilege.