This command fails az webapp auth set -g {resource_group} -n {deployment_name} --body with the json file

Adarsh Shrivastav 20 Reputation points
2024-09-12T06:48:01.98+00:00

Hi, In python, i run this command az webapp auth show -resource-group *** --name ***
and get the auth settings, under validation i have this particular fields.

        validation: {
            jwtClaimChecks:null
    
            defaultAuthorizationPolicy: {
            
              allowedPrincipals: {
              

I have to add new fields and get it to

        validation: {
            jwtClaimChecks:null
            allowedAudiences: []
            defaultAuthorizationPolicy: {
              allowedApplications: []
              allowedPrincipals: {
                identities: 
                groups:

So when i add it and run az webapp auth set -g ***** -n ***** --body auth_settings_json. It always throws me this error unrecognized arguments.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,677 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.