Skip to content

Commit 6d6623e

Browse files
committed
Add portal and CLI
1 parent febda19 commit 6d6623e

1 file changed

Lines changed: 27 additions & 2 deletions

File tree

articles/storage/files/storage-files-identity-ad-ds-enable.md

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,42 @@ AzureStorageID:<yourStorageSIDHere>
275275
276276
## Disable AD DS authentication on your storage account
277277

278-
If you want to use another authentication method, you can disable AD DS authentication on your storage account. Disabling this feature means that there will be no identity-based access for file shares in your storage account until you enable and configure one of the other identity sources.
278+
If you want to use another authentication method, you can disable AD DS authentication on your storage account using the Azure portal, PowerShell, or Azure CLI.
279+
280+
Disabling this feature means that there will be no identity-based access for file shares in your storage account until you enable and configure one of the other identity sources.
279281

280282
> [!IMPORTANT]
281283
> After disabling AD DS authentication on the storage account, you should also consider deleting the AD DS identity (computer account or service logon account) that was created to represent the storage account in your on-premises AD. If you leave the identity in AD DS, it will remain as an orphaned object. Removing it won't happen automatically.
282284
283-
To disable AD DS authentication on your storage account, run the following PowerShell command. Remember to replace placeholder values, including brackets, with your values.
285+
# [Portal](#tab/azure-portal)
286+
287+
To disable AD DS authentication on your storage account by using the Azure portal, follow these steps.
288+
289+
1. Sign in to the Azure portal and select the storage account you want to disable AD DS authentication for.
290+
1. Under **Data storage**, select **File shares**.
291+
1. Next to **Identity-based access**, select the configuration status, which should be **Configured**.
292+
1. Under **Active Directory Domain Services (AD DS)**, select **Configure**.
293+
1. Check the **Disable Active Directory for this storage account** checkbox.
294+
1. Select **Save**.
295+
296+
# [Azure PowerShell](#tab/azure-powershell)
297+
298+
To disable AD DS authentication on your storage account by using PowerShell, run the following command. Remember to replace placeholder values, including brackets, with your values.
284299

285300
```powershell
286301
Set-AzStorageAccount -ResourceGroupName <resourceGroupName> -StorageAccountName <storageAccountName> -EnableActiveDirectoryDomainServicesForFile $false
287302
```
288303

304+
# [Azure CLI](#tab/azure-cli)
305+
306+
To disable AD DS authentication on your storage account by using Azure CLI, run the following command. Remember to replace placeholder values, including brackets, with your values.
307+
308+
```azurecli
309+
az storage account update --name <storage-account-name> --resource-group <resource-group-name> --enable-files-adds false
310+
```
311+
312+
---
313+
289314

290315
## Next step
291316

0 commit comments

Comments
 (0)