Skip to content

Commit c396311

Browse files
Merge pull request #272199 from pauljewellmsft/auth-template
Add template tab for ARM/Bicep guidance
2 parents b036d02 + 0b3404a commit c396311

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/storage/common/shared-key-authorization-prevent.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.author: pauljewell
88
ms.service: azure-storage
99
ms.subservice: storage-common-concepts
1010
ms.topic: how-to
11-
ms.date: 12/05/2023
11+
ms.date: 04/16/2024
1212
ms.reviewer: nachakra
1313
ms.custom: devx-track-azurecli, engagement-fy23
1414
ms.devlang: azurecli
@@ -290,6 +290,16 @@ az storage account update \
290290
--allow-shared-key-access false
291291
```
292292

293+
# [Template](#tab/template)
294+
295+
To disallow Shared Key authorization for a storage account with an Azure Resource Manager template or Bicep file, you can modify the following property:
296+
297+
```json
298+
"allowSharedKeyAccess": false
299+
```
300+
301+
To learn more, see the [storageAccounts specification](/azure/templates/microsoft.storage/storageaccounts).
302+
293303
---
294304

295305
After you disallow Shared Key authorization, making a request to the storage account with Shared Key authorization will fail with error code 403 (Forbidden). Azure Storage returns an error indicating that key-based authorization is not permitted on the storage account.

0 commit comments

Comments
 (0)