Skip to content

Cognitive Services: allow to set the DisableLocalAuth property #27897

Description

@jmservera

Related command

az cognitiveservices account update -n <name> -g <group>

Is your feature request related to a problem? Please describe.
You can set it with the Azure Powershell commands, but not with the az cli:

Set-AzCognitiveServicesAccount -ResourceGroupName <name> -Name <name> -DisableLocalAuth $True

Describe the solution you'd like
Add this as a parameter in the command

az cognitiveservices account update -n <name> -g <group> --disableLocalAuth true

Describe alternatives you've considered
By now the only workaround is to use the ps command.

Additional context

This page says that you can use a policy to disable it, but it is not true, the policy just audits the state and marks the resources as not compliant, but does not modify the value.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions