Skip to content

Commit 5ad035f

Browse files
committed
update command
1 parent a01e77b commit 5ad035f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/ai-services/disable-local-auth.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ You can disable local authentication using the Azure policy [Cognitive Services
2020
If you're creating an account using Bicep / ARM template, you can set the property `disableLocalAuth` to `true` to disable local authentication. For more information, see
2121
[Microsoft.CognitiveServices accounts - Bicep, ARM template, & Terraform](/azure/templates/microsoft.cognitiveservices/accounts)
2222

23-
You can also use PowerShell with the Azure CLI to disable local authentication for an individual resource. First sign in with the `Connect-AzAccount` command. Then use the `Set-AzCognitiveServicesAccount` cmdlet with the parameter `-DisableLocalAuth $true`. To get the full command for your resource, go to the resource's page in the Azure portal. Select the **Security** tab and the **Microsoft Defender for Cloud** option, and select the line item called **Disable local authentication methods**. The next page provides a PowerShell command that you can copy and paste into your terminal.
23+
You can also use PowerShell with the Azure CLI to disable local authentication for an individual resource. First sign in with the `Connect-AzAccount` command. Then use the `Set-AzCognitiveServicesAccount` cmdlet with the parameter `-DisableLocalAuth $true`, like the following example:
24+
25+
```powershell
26+
Set-AzCognitiveServicesAccount -ResourceGroupName "my-resource-group" -Name "my-resource-name" -DisableLocalAuth $false
27+
```
2428

2529
## Verify local authentication status
2630

0 commit comments

Comments
 (0)