az webapp auth update: "Not compatible with auth settings 2.0", for newly created webapp #30322
Labels
app-service-authentication
Auto-Assign
Auto assign by bot
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Service Attention
This issue is responsible by Azure service team.
Similar-Issue
Web Apps
az webapp
If I create a new webapp and try to enable authentication for the first time with
az webapp auth update
I get an error message:Cannot use auth v2 commands when the app is using auth v1. Update the auth settings using the az webapp auth-classic command group
When looking at the debug output I see that the response to
GET /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RG/providers/Microsoft.Web/sites/debugapp/config/authSettingsV2/list?api-version=2020-12-01 HTTP/1.1
isIn the is_app_new_to_auth check (which is used in
update_auth_settings_v2_rest_call
) it requires thatproperties
is an empty object:json.dumps(existing_site_auth_settings_v2["properties"]) == "{}"
, which mine isn't (I have theplatform
object).It could of course be something else that's wrong (or something on my side). But this worked in our pipeline just a few weeks ago and was broken today, and I can't figure out any changes on our side.
Thanks for any assistance
Steps to reproduce:
Full debug output
The text was updated successfully, but these errors were encountered: