Skip to content

Commit 42b493e

Browse files
committed
Storage breaking changes
1 parent bc8019c commit 42b493e

File tree

6 files changed

+19
-80
lines changed

6 files changed

+19
-80
lines changed

src/ResourceManager/Storage/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
-->
2020
## Current Release
2121
* Set minimum dependency of module to PowerShell 5.0
22+
* Introduced multiple breaking changes
23+
- Please refer to the migration guide for more information
2224

2325
## Version 4.2.3
2426
* Updated to the latest version of the Azure ClientRuntime

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/NewAzureStorageAccount.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,6 @@ public class NewAzureStorageAccountCommand : StorageAccountBaseCmdlet
9797
[ValidateNotNullOrEmpty]
9898
public bool? UseSubDomain { get; set; }
9999

100-
[Parameter(
101-
Mandatory = false,
102-
HelpMessage = "Storage Service that will enable encryption.")]
103-
[Obsolete("Encryption at Rest is already enabled by default for this storage account.", false)]
104-
public EncryptionSupportServiceEnum? EnableEncryptionService { get; set; }
105-
106100
[Parameter(
107101
Mandatory = false,
108102
HelpMessage = "Storage Account Tags.")]

src/ResourceManager/Storage/Commands.Management.Storage/StorageAccount/SetAzureStorageAccount.cs

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,6 @@ public SwitchParameter Force
101101
[ValidateNotNullOrEmpty]
102102
public bool? UseSubDomain { get; set; }
103103

104-
[Parameter(
105-
Mandatory = false,
106-
HelpMessage = "Storage Service that will enable encryption.")]
107-
[Obsolete("Encryption at Rest is enabled by default for this storage account.", false)]
108-
public EncryptionSupportServiceEnum? EnableEncryptionService { get; set; }
109-
110-
[Parameter(
111-
Mandatory = false,
112-
HelpMessage = "Storage Service that will disable encryption.")]
113-
[Obsolete("Encryption at Rest is enabled by default for this storage account. This feature cannot be disabled.", false)]
114-
public EncryptionSupportServiceEnum? DisableEncryptionService { get; set; }
115-
116104
[Parameter(
117105
Mandatory = false,
118106
ValueFromPipelineByPropertyName = true,
@@ -148,7 +136,7 @@ public SwitchParameter StorageEncryption
148136
private bool storageEncryption = false;
149137

150138
[Parameter(HelpMessage = "Whether to set Storage Account encryption keySource to Microsoft.Keyvault or not. " +
151-
"If you specify KeyName, KeyVersion and KeyvaultUri, Storage Account Encryption KeySource will also be set to Microsoft.Keyvault weather this parameter is set or not.",
139+
"If you specify KeyName, KeyVersion and KeyvaultUri, Storage Account Encryption KeySource will also be set to Microsoft.Keyvault weather this parameter is set or not.",
152140
Mandatory = false, ParameterSetName = KeyvaultEncryptionParameterSet)]
153141
public SwitchParameter KeyvaultEncryption
154142
{

src/ResourceManager/Storage/Commands.Management.Storage/help/New-AzureRmStorageAccount.md

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ Creates a Storage account.
1616
```
1717
New-AzureRmStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-SkuName] <String>
1818
[-Location] <String> [-Kind <String>] [-AccessTier <String>] [-CustomDomainName <String>]
19-
[-UseSubDomain <Boolean>] [-EnableEncryptionService <EncryptionSupportServiceEnum>] [-Tag <Hashtable>]
20-
[-EnableHttpsTrafficOnly <Boolean>] [-AssignIdentity] [-NetworkRuleSet <PSNetworkRuleSet>] [-AsJob]
21-
[-DefaultProfile <IAzureContextContainer>] [<CommonParameters>]
19+
[-UseSubDomain <Boolean>] [-Tag <Hashtable>] [-EnableHttpsTrafficOnly <Boolean>]
20+
[-AssignIdentity] [-NetworkRuleSet <PSNetworkRuleSet>] [-AsJob] [-DefaultProfile <IAzureContextContainer>]
21+
[<CommonParameters>]
2222
```
2323

2424
## DESCRIPTION
@@ -143,23 +143,6 @@ Accept pipeline input: False
143143
Accept wildcard characters: False
144144
```
145145
146-
### -EnableEncryptionService
147-
Indicates whether this cmdlet enables Storage Service Encryption.
148-
Azure Blob storage and Azure Files are supported.
149-
150-
```yaml
151-
Type: EncryptionSupportServiceEnum
152-
Parameter Sets: (All)
153-
Aliases:
154-
Accepted values: None, Blob, File
155-
156-
Required: False
157-
Position: Named
158-
Default value: None
159-
Accept pipeline input: False
160-
Accept wildcard characters: False
161-
```
162-
163146
### -EnableHttpsTrafficOnly
164147
Indicates whether or not the Storage account only enables HTTPS traffic.
165148

src/ResourceManager/Storage/Commands.Management.Storage/help/Set-AzureRmStorageAccount.md

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ Modifies a Storage account.
1717
```
1818
Set-AzureRmStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Force] [-SkuName <String>]
1919
[-AccessTier <String>] [-CustomDomainName <String>] [-UseSubDomain <Boolean>]
20-
[-EnableEncryptionService <EncryptionSupportServiceEnum>]
21-
[-DisableEncryptionService <EncryptionSupportServiceEnum>] [-Tag <Hashtable>]
22-
[-EnableHttpsTrafficOnly <Boolean>] [-StorageEncryption] [-AssignIdentity]
20+
[-Tag <Hashtable>] [-EnableHttpsTrafficOnly <Boolean>] [-StorageEncryption] [-AssignIdentity]
2321
[-NetworkRuleSet <PSNetworkRuleSet>] [-UpgradeToStorageV2] [-AsJob] [-DefaultProfile <IAzureContextContainer>]
2422
[-WhatIf] [-Confirm] [<CommonParameters>]
2523
```
@@ -28,9 +26,7 @@ Set-AzureRmStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Force
2826
```
2927
Set-AzureRmStorageAccount [-ResourceGroupName] <String> [-Name] <String> [-Force] [-SkuName <String>]
3028
[-AccessTier <String>] [-CustomDomainName <String>] [-UseSubDomain <Boolean>]
31-
[-EnableEncryptionService <EncryptionSupportServiceEnum>]
32-
[-DisableEncryptionService <EncryptionSupportServiceEnum>] [-Tag <Hashtable>]
33-
[-EnableHttpsTrafficOnly <Boolean>] [-KeyvaultEncryption] -KeyName <String> -KeyVersion <String>
29+
[-Tag <Hashtable>] [-EnableHttpsTrafficOnly <Boolean>] [-KeyvaultEncryption] -KeyName <String> -KeyVersion <String>
3430
-KeyVaultUri <String> [-AssignIdentity] [-NetworkRuleSet <PSNetworkRuleSet>] [-UpgradeToStorageV2] [-AsJob]
3531
[-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm] [<CommonParameters>]
3632
```
@@ -202,40 +198,6 @@ Accept pipeline input: False
202198
Accept wildcard characters: False
203199
```
204200
205-
### -DisableEncryptionService
206-
Indicates whether this cmdlet disables Storage Service Encryption.
207-
Azure Blob storage and Azure Files are supported.
208-
209-
```yaml
210-
Type: EncryptionSupportServiceEnum
211-
Parameter Sets: (All)
212-
Aliases:
213-
Accepted values: None, Blob, File
214-
215-
Required: False
216-
Position: Named
217-
Default value: None
218-
Accept pipeline input: False
219-
Accept wildcard characters: False
220-
```
221-
222-
### -EnableEncryptionService
223-
Indicates whether this cmdlet enables Storage Service Encryption.
224-
Azure Blob storage and Azure Files are supported.
225-
226-
```yaml
227-
Type: EncryptionSupportServiceEnum
228-
Parameter Sets: (All)
229-
Aliases:
230-
Accepted values: None, Blob, File
231-
232-
Required: False
233-
Position: Named
234-
Default value: None
235-
Accept pipeline input: False
236-
Accept wildcard characters: False
237-
```
238-
239201
### -EnableHttpsTrafficOnly
240202
Indicates whether or not the Storage account only enables HTTPS traffic.
241203

src/ResourceManager/Storage/documentation/current-breaking-changes.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,14 @@
3838
https://github.com/Azure/azure-powershell/blob/dev/documentation/breaking-changes/breaking-change-template.md
3939
-->
4040

41-
## Current Breaking Changes
41+
## Current Breaking Changes
42+
43+
### Release 5.0.0 - May 2018
44+
45+
The following cmdlets were affected this release:
46+
47+
**New-AzureRmStorageAccount**
48+
- The parameter `EnableEncryptionService` is being removed
49+
50+
**Set-AzureRmStorageAccount**
51+
- The parameters `EnableEncryptionService` and `DisableEncryptionService` is being removed

0 commit comments

Comments
 (0)