Azure / Azure/azure-cli

Cognitive Services: allow to set the DisableLocalAuth property

Open
#27,897 4 comments 6 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad Auto-Assign Cognitive Services Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

```az cognitiveservices account update -n -g ```

**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 -DisableLocalAuth $True```

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

```az cognitiveservices account update -n -g --disableLocalAuth true```

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

**Additional context**

This [page](https://learn.microsoft.com/en-us/azure/ai-services/disable-local-auth) 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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.