You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To register to use the account encryption key with Table storage:
45
+
# [Azure CLI](#tab/azure-cli)
46
+
47
+
To register with Azure CLI, call the [az feature register](/cli/azure/feature#az-feature-register) command.
43
48
44
49
```azurecli
50
+
az feature register --namespace Microsoft.Storage --name AllowAccountEncryptionKeyForQueues
45
51
az feature register --namespace Microsoft.Storage --name AllowAccountEncryptionKeyForTables
46
52
```
47
53
54
+
---
55
+
48
56
### Check the status of your registration
49
57
50
-
To check the status of your registration for Queue storage:
58
+
To check the status of your registration for Queue or Table storage, use PowerShell or Azure CLI.
51
59
52
-
```azurecli
53
-
az feature show --namespace Microsoft.Storage --name AllowAccountEncryptionKeyForQueues
60
+
# [PowerShell](#tab/powershell)
61
+
62
+
To check the status of your registration with PowerShell, call the [Get-AzProviderFeature](/powershell/module/az.resources/get-azproviderfeature) command.
To check the status of your registration for Table storage:
69
+
# [Azure CLI](#tab/azure-cli)
70
+
71
+
To check the status of your registration with Azure CLI, call the [az feature](/cli/azure/feature#az-feature-show).
57
72
58
73
```azurecli
74
+
az feature show --namespace Microsoft.Storage --name AllowAccountEncryptionKeyForQueues
59
75
az feature show --namespace Microsoft.Storage --name AllowAccountEncryptionKeyForTables
60
76
```
61
77
78
+
---
79
+
62
80
### Re-register the Azure Storage resource provider
63
81
64
-
After your registration is approved, you must re-register the Azure Storage resource provider. Call the [az provider register](/cli/azure/provider#az-provider-register) command:
82
+
After your registration is approved, you must re-register the Azure Storage resource provider.
83
+
84
+
Call the [az provider register](/cli/azure/provider#az-provider-register) command:
65
85
66
86
```azurecli
67
87
az provider register --namespace 'Microsoft.Storage'
@@ -76,7 +96,28 @@ The storage account must be of type general-purpose v2. You can create the stora
76
96
> [!NOTE]
77
97
> Only Queue and Table storage can be optionally configured to encrypt data with the account encryption key when the storage account is created. Blob storage and Azure Files always use the account encryption key to encrypt data.
78
98
79
-
### [Azure CLI](#tab/azure-cli)
99
+
# [PowerShell](#tab/powershell)
100
+
101
+
To use PowerShell to create a storage account that relies on the account encryption key, make sure you have installed the Azure PowerShell module, version 3.4.0 or later. For more information, see [Install the Azure PowerShell module](/powershell/azure/install-az-ps).
102
+
103
+
Next, create a general-purpose v2 storage account by calling the [New-AzStorageAccount](/powershell/module/az.storage/new-azstorageaccount) command, with the appropriate parameters:
104
+
105
+
- Include the `-EncryptionKeyTypeForQueue` option and set its value to `Account` to use the account encryption key to encrypt data in Queue storage.
106
+
- Include the `-EncryptionKeyTypeForTable` option and set its value to `Account` to use the account encryption key to encrypt data in Table storage.
107
+
108
+
The following example shows how to create a general-purpose v2 storage account that is configured for read-access geo-redundant storage (RA-GRS) and that uses the account encryption key to encrypt data for both Queue and Table storage. Remember to replace the placeholder values in brackets with your own values:
To use Azure CLI to create a storage account that relies on the account encryption key, make sure you have installed Azure CLI version 2.0.80 or later. For more information, see [Install the Azure CLI](/cli/azure/install-azure-cli).
82
123
@@ -85,22 +126,22 @@ Next, create a general-purpose v2 storage account by calling the [az storage acc
85
126
- Include the `--encryption-key-type-for-queue` option and set its value to `Account` to use the account encryption key to encrypt data in Queue storage.
86
127
- Include the `--encryption-key-type-for-table` option and set its value to `Account` to use the account encryption key to encrypt data in Table storage.
87
128
88
-
The following example shows how to create a general-purpose v2 storage account that is configured for LRS and that uses the account encryption key to encrypt data for both Queue and Table storage. Remember to replace the placeholder values in brackets with your own values:
129
+
The following example shows how to create a general-purpose v2 storage account that is configured for read-access geo-redundant storage (RA-GRS) and that uses the account encryption key to encrypt data for both Queue and Table storage. Remember to replace the placeholder values in brackets with your own values:
89
130
90
131
```azurecli
91
132
az storage account create \
92
133
--name <storage-account> \
93
134
--resource-group <resource-group> \
94
135
--location <location> \
95
-
--sku Standard_LRS \
136
+
--sku Standard_RAGRS \
96
137
--kind StorageV2 \
97
138
--encryption-key-type-for-table Account \
98
139
--encryption-key-type-for-queue Account
99
140
```
100
141
101
-
###[Template](#tab/template)
142
+
# [Template](#tab/template)
102
143
103
-
The following JSON example creates a general-purpose v2 storage account that is configured for LRS and that uses the account encryption key to encrypt data for both Queue and Table storage. Remember to replace the placeholder values in angle brackets with your own values:
144
+
The following JSON example creates a general-purpose v2 storage account that is configured for read-access geo-redundant storage (RA-GRS) and that uses the account encryption key to encrypt data for both Queue and Table storage. Remember to replace the placeholder values in angle brackets with your own values:
104
145
105
146
```json
106
147
"resources": [
@@ -112,7 +153,7 @@ The following JSON example creates a general-purpose v2 storage account that is
0 commit comments