Skip to content

Commit edd820b

Browse files
committed
Storage: more PR addressing
1 parent 5eaf666 commit edd820b

File tree

7 files changed

+108
-320
lines changed

7 files changed

+108
-320
lines changed

src/Storage/custom/hybrid-2019-03-01/New-AzStorageAccount.ps1

Lines changed: 6 additions & 75 deletions
Large diffs are not rendered by default.

src/Storage/custom/hybrid-2019-03-01/Update-AzStorageAccount.ps1

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@ function Update-AzStorageAccount {
8686
# A boolean indicating whether or not the service encrypts the data as it is stored.
8787
${EncryptBlobService},
8888

89-
[Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
90-
[Parameter(ParameterSetName='UpdateExpandedStorageEncryption', Mandatory, HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
91-
[Parameter(ParameterSetName='UpdateExpandedKeyVaultEncryption', Mandatory, HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
92-
[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
93-
[Parameter(ParameterSetName='UpdateViaIdentityExpandedStorageEncryption', Mandatory, HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
94-
[Parameter(ParameterSetName='UpdateViaIdentityExpandedKeyVaultEncryption', Mandatory, HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
89+
[Parameter(ParameterSetName='UpdateExpanded', HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
90+
[Parameter(ParameterSetName='UpdateExpandedStorageEncryption', HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
91+
[Parameter(ParameterSetName='UpdateExpandedKeyVaultEncryption', HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
92+
[Parameter(ParameterSetName='UpdateViaIdentityExpanded', HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
93+
[Parameter(ParameterSetName='UpdateViaIdentityExpandedStorageEncryption', HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
94+
[Parameter(ParameterSetName='UpdateViaIdentityExpandedKeyVaultEncryption', HelpMessage='Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.')]
9595
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')]
9696
[System.String]
9797
# Gets or sets the custom domain name assigned to the storage account. Name is the CNAME source.
@@ -107,14 +107,6 @@ function Update-AzStorageAccount {
107107
[System.Management.Automation.SwitchParameter]
108108
# Allows https traffic only to storage service if sets to true.
109109
${EnableHttpsTrafficOnly},
110-
111-
#[Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault')]
112-
#[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, HelpMessage='The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault')]
113-
#[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Storage.Support.KeySource])]
114-
#[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')]
115-
#[Microsoft.Azure.PowerShell.Cmdlets.Storage.Support.KeySource]
116-
# The encryption keySource (provider). Possible values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault
117-
#${EncryptionKeySource},
118110

119111
[Parameter(ParameterSetName='UpdateExpanded')]
120112
[Parameter(ParameterSetName='UpdateViaIdentityExpanded')]
@@ -188,12 +180,12 @@ function Update-AzStorageAccount {
188180
# Specifies whether traffic is bypassed for Logging/Metrics/AzureServices. Possible values are any combination of Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or None to bypass none of those traffics.
189181
${NetworkRuleSetBypass},
190182

191-
[Parameter(ParameterSetName='UpdateExpanded', Mandatory, HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
192-
[Parameter(ParameterSetName='UpdateExpandedStorageEncryption', Mandatory, HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
193-
[Parameter(ParameterSetName='UpdateExpandedKeyVaultEncryption', Mandatory, HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
194-
[Parameter(ParameterSetName='UpdateViaIdentityExpanded', Mandatory, HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
195-
[Parameter(ParameterSetName='UpdateViaIdentityExpandedStorageEncryption', Mandatory, HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
196-
[Parameter(ParameterSetName='UpdateViaIdentityExpandedKeyVaultEncryption', Mandatory, HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
183+
[Parameter(ParameterSetName='UpdateExpanded', HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
184+
[Parameter(ParameterSetName='UpdateExpandedStorageEncryption', HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
185+
[Parameter(ParameterSetName='UpdateExpandedKeyVaultEncryption', HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
186+
[Parameter(ParameterSetName='UpdateViaIdentityExpanded', HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
187+
[Parameter(ParameterSetName='UpdateViaIdentityExpandedStorageEncryption', HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
188+
[Parameter(ParameterSetName='UpdateViaIdentityExpandedKeyVaultEncryption', HelpMessage='Specifies the default action of allow or deny when no other rules match.')]
197189
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.Storage.Support.DefaultAction])]
198190
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Category('Body')]
199191
[Microsoft.Azure.PowerShell.Cmdlets.Storage.Support.DefaultAction]

0 commit comments

Comments
 (0)