Skip to content

Commit 1b9a021

Browse files
msJinLeiblueww
andauthored
[Storage] Added breaking change warning message for upcoming cmdlet output change (#12898)
* [Storage] Added breaking change warning message for upcoming cmdlet output change * Add reference of KeyVault to Network.Test Co-authored-by: Wei Wei <[email protected]>
1 parent 7af183d commit 1b9a021

8 files changed

+32
-9
lines changed

src/Network/Network.sln

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sql.LegacySdk", "..\Sql\Sql
3838
EndProject
3939
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PrivateDns", "..\PrivateDns\PrivateDns\PrivateDns.csproj", "{70D3A1D4-42FE-4697-AFC7-AC0FEAB0420B}"
4040
EndProject
41+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "KeyVault", "..\KeyVault\KeyVault\KeyVault.csproj", "{5423D705-89D5-47D8-8298-BF1342D3A808}"
42+
EndProject
4143
Global
4244
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4345
Debug|Any CPU = Debug|Any CPU
@@ -112,10 +114,10 @@ Global
112114
{70D3A1D4-42FE-4697-AFC7-AC0FEAB0420B}.Debug|Any CPU.Build.0 = Debug|Any CPU
113115
{70D3A1D4-42FE-4697-AFC7-AC0FEAB0420B}.Release|Any CPU.ActiveCfg = Release|Any CPU
114116
{70D3A1D4-42FE-4697-AFC7-AC0FEAB0420B}.Release|Any CPU.Build.0 = Release|Any CPU
115-
{AD8D31C1-3C84-4213-A13A-A21C7440E591}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
116-
{AD8D31C1-3C84-4213-A13A-A21C7440E591}.Debug|Any CPU.Build.0 = Debug|Any CPU
117-
{AD8D31C1-3C84-4213-A13A-A21C7440E591}.Release|Any CPU.ActiveCfg = Release|Any CPU
118-
{AD8D31C1-3C84-4213-A13A-A21C7440E591}.Release|Any CPU.Build.0 = Release|Any CPU
117+
{5423D705-89D5-47D8-8298-BF1342D3A808}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
118+
{5423D705-89D5-47D8-8298-BF1342D3A808}.Debug|Any CPU.Build.0 = Debug|Any CPU
119+
{5423D705-89D5-47D8-8298-BF1342D3A808}.Release|Any CPU.ActiveCfg = Release|Any CPU
120+
{5423D705-89D5-47D8-8298-BF1342D3A808}.Release|Any CPU.Build.0 = Release|Any CPU
119121
EndGlobalSection
120122
GlobalSection(SolutionProperties) = preSolution
121123
HideSolutionNode = FALSE
@@ -131,6 +133,7 @@ Global
131133
{1DE566DF-628F-4B55-8EBE-5077293169D8} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
132134
{B71E1AFD-6A00-49BA-B18E-BF710B531E73} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
133135
{70D3A1D4-42FE-4697-AFC7-AC0FEAB0420B} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
136+
{5423D705-89D5-47D8-8298-BF1342D3A808} = {95C16AED-FD57-42A0-86C3-2CF4300A4817}
134137
EndGlobalSection
135138
GlobalSection(ExtensibilityGlobals) = postSolution
136139
SolutionGuid = {81FE5D8D-D707-4DBC-9782-95E44EA873C3}

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,20 @@
2020
## Upcoming Release
2121
* Fixed upload blob fail by upgrade to Microsoft.Azure.Storage.DataMovement 2.0.0 [#12220]
2222
* Supported Point In Time Restore
23-
- Enable-AzStorageBlobRestorePolicy
24-
- Disable-AzStorageBlobRestorePolicy
25-
- New-AzStorageBlobRangeToRestore
26-
- Restore-AzStorageBlobRange
23+
- `Enable-AzStorageBlobRestorePolicy`
24+
- `Disable-AzStorageBlobRestorePolicy`
25+
- `New-AzStorageBlobRangeToRestore`
26+
- `Restore-AzStorageBlobRange`
2727
* Supported get blob restore status of Storage account by run get-AzureRMStorageAccount with parameter -IncludeBlobRestoreStatus
28-
- Get-AzureRMStorageAccount
28+
- `Get-AzureRMStorageAccount`
29+
* Added breaking change warning message for upcoming cmdlet output change
30+
- `Get-AzStorageContainerStoredAccessPolicy`
31+
- `Set-AzStorageContainerStoredAccessPolicy`
32+
- `Set-AzStorageAccountManagementPolicy`
33+
- `Get-AzStorageAccountManagementPolicy`
34+
- `Add-AzStorageAccountManagementPolicyAction`
35+
- `New-AzStorageAccountManagementPolicyRule`
36+
2937

3038
## Version 2.5.0
3139
* Supported blob query acceleration

src/Storage/Storage.Management/StorageAccount/AddAzureStorageAccountManagementPolicyAction.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Storage;
1818
using Microsoft.Azure.Management.Storage.Models;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System.Globalization;
2021
using System.Management.Automation;
2122

2223
namespace Microsoft.Azure.Commands.Management.Storage
2324
{
25+
[CmdletOutputBreakingChange(typeof(PSManagementPolicyActionGroup), ChangeDescription = "The type of sub child property DaysAfterModificationGreaterThan will change from int to int? in a future release.")]
2426
[Cmdlet("Add", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccountManagementPolicyAction", DefaultParameterSetName = BaseBlobParameterSet), OutputType(typeof(PSManagementPolicyActionGroup))]
2527
public class AddAzureStorageAccountManagementPolicyActionCommand : StorageAccountBaseCmdlet
2628
{

src/Storage/Storage.Management/StorageAccount/GetAzureStorageAccountManagementPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
1818
using Microsoft.Azure.Management.Storage;
1919
using Microsoft.Azure.Management.Storage.Models;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021
using System.Management.Automation;
2122

2223
namespace Microsoft.Azure.Commands.Management.Storage
2324
{
25+
[CmdletOutputBreakingChange(typeof(PSManagementPolicyActionGroup), ChangeDescription = "The type of sub child property DaysAfterModificationGreaterThan will change from int to int? in a future release.")]
2426
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccountManagementPolicy", DefaultParameterSetName = AccountNameParameterSet), OutputType(typeof(PSManagementPolicy))]
2527
public class GetAzureStorageAccountManagementPolicyCommand : StorageAccountBaseCmdlet
2628
{

src/Storage/Storage.Management/StorageAccount/NewAzureStorageAccountManagementPolicyRule.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@
1616
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
1717
using Microsoft.Azure.Management.Storage;
1818
using Microsoft.Azure.Management.Storage.Models;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using System.Management.Automation;
2021

2122
namespace Microsoft.Azure.Commands.Management.Storage
2223
{
24+
[CmdletOutputBreakingChange(typeof(PSManagementPolicyActionGroup), ChangeDescription = "The type of sub child property DaysAfterModificationGreaterThan will change from int to int? in a future release.")]
2325
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccountManagementPolicyRule"), OutputType(typeof(PSManagementPolicyRule))]
2426
public class NewAzureStorageAccountManagementPolicyRuleCommand : StorageAccountBaseCmdlet
2527
{

src/Storage/Storage.Management/StorageAccount/SetAzureStorageAccountManagementPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
using System.Globalization;
2222
using System.Collections.Generic;
2323
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
24+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2425

2526
namespace Microsoft.Azure.Commands.Management.Storage
2627
{
28+
[CmdletOutputBreakingChange(typeof(PSManagementPolicyActionGroup), ChangeDescription = "The type of sub child property DaysAfterModificationGreaterThan will change from int to int? in a future release.")]
2729
[Cmdlet("Set", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "StorageAccountManagementPolicy", SupportsShouldProcess = true, DefaultParameterSetName = AccountNamePolicyRuleParameterSet), OutputType(typeof(PSManagementPolicy))]
2830
public class SetAzureStorageAccountManagementPolicyCommand : StorageAccountBaseCmdlet
2931
{

src/Storage/Storage/Blob/Cmdlet/GetAzureStorageContainerStoredAccessPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
1616
{
1717
using Common;
1818
using Microsoft.Azure.Storage.Blob;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using Model.Contract;
2021
using System;
2122
using System.Globalization;
@@ -26,6 +27,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
2627
/// <summary>
2728
/// create a new azure container
2829
/// </summary>
30+
[CmdletOutputBreakingChange(typeof(SharedAccessBlobPolicy), ChangeDescription = "The output type will change from 'SharedAccessBlobPolicy' to 'PSObject', with the child property 'Permissions' type change from enum to string in a future release.")]
2931
[Cmdlet("Get", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageContainerStoredAccessPolicy"), OutputType(typeof(SharedAccessBlobPolicy))]
3032
public class GetAzureStorageContainerStoredAccessPolicyCommand : StorageCloudBlobCmdletBase
3133
{

src/Storage/Storage/Blob/Cmdlet/SetAzureStorageContainerStoredAccessPolicy.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
1616
{
1717
using Common;
1818
using Microsoft.Azure.Storage.Blob;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920
using Model.Contract;
2021
using System;
2122
using System.Globalization;
@@ -25,6 +26,7 @@ namespace Microsoft.WindowsAzure.Commands.Storage.Blob.Cmdlet
2526
/// <summary>
2627
/// create a new azure container
2728
/// </summary>
29+
[CmdletOutputBreakingChange(typeof(SharedAccessBlobPolicy), ChangeDescription = "The output type will change from 'SharedAccessBlobPolicy' to 'PSObject', with the child property 'Permissions' type change from enum to string in a future release.")]
2830
[Cmdlet("Set", Azure.Commands.ResourceManager.Common.AzureRMConstants.AzurePrefix + "StorageContainerStoredAccessPolicy", SupportsShouldProcess = true), OutputType(typeof(String))]
2931
public class SetAzureStorageContainerStoredAccessPolicyCommand : StorageCloudBlobCmdletBase
3032
{

0 commit comments

Comments
 (0)