@@ -18,7 +18,7 @@ Set-AzureRmStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Force
18
18
[[-AccessTier] <String>] [[-CustomDomainName] <String>] [[-UseSubDomain] <Boolean>]
19
19
[[-EnableEncryptionService] <EncryptionSupportServiceEnum>]
20
20
[[-DisableEncryptionService] <EncryptionSupportServiceEnum>] [[-Tag] <Hashtable>]
21
- [-EnableHttpsTrafficOnly <Boolean>] [-StorageEncryption] [-AssignIdentity] [-NetworkRule <PSNetworkRuleSet>]
21
+ [-EnableHttpsTrafficOnly <Boolean>] [-StorageEncryption] [-AssignIdentity] [-NetworkRuleSet <PSNetworkRuleSet>]
22
22
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-WhatIf] [-Confirm]
23
23
[<CommonParameters>]
24
24
```
@@ -30,7 +30,7 @@ Set-AzureRmStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Force
30
30
[[-EnableEncryptionService] <EncryptionSupportServiceEnum>]
31
31
[[-DisableEncryptionService] <EncryptionSupportServiceEnum>] [[-Tag] <Hashtable>]
32
32
[-EnableHttpsTrafficOnly <Boolean>] [-KeyvaultEncryption] -KeyName <String> -KeyVersion <String>
33
- -KeyVaultUri <String> [-AssignIdentity] [-NetworkRule <PSNetworkRuleSet>]
33
+ -KeyVaultUri <String> [-AssignIdentity] [-NetworkRuleSet <PSNetworkRuleSet>]
34
34
[-InformationAction <ActionPreference>] [-InformationVariable <String>] [-WhatIf] [-Confirm]
35
35
[<CommonParameters>]
36
36
```
@@ -97,25 +97,25 @@ PS C:\>Set-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountNa
97
97
98
98
This command disables encryption on File Services with KeySource set to "Microsoft.Storage"
99
99
100
- ### Example 7: Set NetworkRule property of a Storage Account with JSON
100
+ ### Example 7: Set NetworkRuleSet property of a Storage Account with JSON
101
101
```
102
- PS C:\>Set-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount" -NetworkRule (@{bypass="Logging,Metrics";
102
+ PS C:\>Set-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount" -NetworkRuleSet (@{bypass="Logging,Metrics";
103
103
ipRules=(@{IPAddressOrRange="20.11.0.0/16";Action="allow"},
104
104
@{IPAddressOrRange="10.0.0.0/7";Action="allow"});
105
105
virtualNetworkRules=(@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet1/subnets/subnet1";Action="allow"},
106
106
@{VirtualNetworkResourceId="/subscriptions/s1/resourceGroups/g1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/subnet2";Action="allow"});
107
107
defaultAction="allow"})
108
108
```
109
109
110
- This command sets NetworkRule property of a Storage Account with JSON
110
+ This command sets NetworkRuleSet property of a Storage Account with JSON
111
111
112
- ### Example 8: Get NetworkRule property from a Storage Account, and set it to another storage account
112
+ ### Example 8: Get NetworkRuleSet property from a Storage Account, and set it to another storage account
113
113
```
114
- PS C:\> $networkRule = (Get-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount").NetworkRule
115
- PS C:\> Set-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount2" -NetworkRule $networkRule
114
+ PS C:\> $networkRuleSet = (Get-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount").NetworkRuleSet
115
+ PS C:\> Set-AzureRmStorageAccount -ResourceGroupName "MyResourceGroup" -AccountName "MyStorageAccount2" -NetworkRuleSet $networkRuleSet
116
116
```
117
117
118
- This first command gets NetworkRule property from a Storage Account, and the second command sets it to another storage account
118
+ This first command gets NetworkRuleSet property from a Storage Account, and the second command sets it to another Storage Account
119
119
120
120
## PARAMETERS
121
121
@@ -349,8 +349,8 @@ Accept pipeline input: True (ByPropertyName)
349
349
Accept wildcard characters : False
350
350
` ` `
351
351
352
- ### -NetworkRule
353
- Storage Account NetworkRule
352
+ ### -NetworkRuleSet
353
+ Storage Account NetworkRuleSet
354
354
355
355
` ` ` yaml
356
356
Type : PSNetworkRuleSet
0 commit comments