Skip to content

Commit 1a13331

Browse files
Add deprecation warning message on WSC cmdlets (#21584)
* mark wsc cmdlets as deprecated * Update ChangeLog.md --------- Co-authored-by: Yunchi Wang <[email protected]>
1 parent 5071fde commit 1a13331

File tree

8 files changed

+27
-6
lines changed

8 files changed

+27
-6
lines changed

src/PowerBIEmbedded/PowerBIEmbedded.sln

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Microsoft Visual Studio Solution File, Format Version 12.00
2-
# Visual Studio 15
3-
VisualStudioVersion = 15.0.27703.2042
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.5.33530.505
44
MinimumVisualStudioVersion = 10.0.40219.1
55
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PowerBIEmbedded", "PowerBIEmbedded\PowerBIEmbedded.csproj", "{50C2BA13-7203-4A70-9058-19FB15C730DA}"
66
EndProject
@@ -94,6 +94,18 @@ Global
9494
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|x64.Build.0 = Release|Any CPU
9595
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|x86.ActiveCfg = Release|Any CPU
9696
{142D7B0B-388A-4CEB-A228-7F6D423C5C2E}.Release|x86.Build.0 = Release|Any CPU
97+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
98+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|Any CPU.Build.0 = Debug|Any CPU
99+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|x64.ActiveCfg = Debug|Any CPU
100+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|x64.Build.0 = Debug|Any CPU
101+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|x86.ActiveCfg = Debug|Any CPU
102+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Debug|x86.Build.0 = Debug|Any CPU
103+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|Any CPU.ActiveCfg = Release|Any CPU
104+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|Any CPU.Build.0 = Release|Any CPU
105+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|x64.ActiveCfg = Release|Any CPU
106+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|x64.Build.0 = Release|Any CPU
107+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|x86.ActiveCfg = Release|Any CPU
108+
{6BD6B80A-06AF-4B5B-9230-69CCFC6C8D64}.Release|x86.Build.0 = Release|Any CPU
97109
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
98110
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
99111
{FF81DC73-B8EC-4082-8841-4FBF2B16E7CE}.Debug|x64.ActiveCfg = Debug|Any CPU
@@ -153,4 +165,4 @@ Global
153165
GlobalSection(ExtensibilityGlobals) = postSolution
154166
SolutionGuid = {DB4F6337-206E-4CC4-9940-C24794336EEB}
155167
EndGlobalSection
156-
EndGlobal
168+
EndGlobal

src/PowerBIEmbedded/PowerBIEmbedded/ChangeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21-
21+
* Added deprecate warning message for workspace collection cmdlets
22+
2223
## Version 1.2.0
2324
* Updated SKU allowed values to support A7 and A8
2425

src/PowerBIEmbedded/PowerBIEmbedded/WorkspaceCollection/GetWorkspace.cs

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

2021
namespace Microsoft.Azure.Commands.Management.PowerBIEmbedded.WorkspaceCollection
2122
{
23+
[CmdletDeprecation()]
2224
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PowerBIWorkspace"), OutputType(typeof(PSWorkspace))]
2325
public class GetWorkspace : WorkspaceCollectionBaseCmdlet
2426
{

src/PowerBIEmbedded/PowerBIEmbedded/WorkspaceCollection/GetWorkspaceCollection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
using Microsoft.Azure.Commands.Management.PowerBIEmbedded.Models;
1818
using Microsoft.Azure.Management.PowerBIEmbedded;
1919
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
20+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2021

2122
namespace Microsoft.Azure.Commands.Management.PowerBIEmbedded.WorkspaceCollection
2223
{
24+
[CmdletDeprecation()]
2325
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PowerBIWorkspaceCollection"), OutputType(typeof(PSWorkspaceCollection))]
2426
public class GetWorkspaceCollection : WorkspaceCollectionBaseCmdlet
2527
{

src/PowerBIEmbedded/PowerBIEmbedded/WorkspaceCollection/GetWorkspaceCollectionAccessKeys.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
namespace Microsoft.Azure.Commands.Management.PowerBIEmbedded.WorkspaceCollection
2222
{
23-
[GenericBreakingChange("Get-AzPowerBIWorkspaceCollectionAccessKeys alias will be removed in an upcoming breaking change release", "2.0.0")]
23+
[CmdletDeprecation()]
2424
[Cmdlet("Get", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PowerBIWorkspaceCollectionAccessKey"), OutputType(typeof(PSWorkspaceCollectionAccessKey))]
2525
[Alias("Get-AzPowerBIWorkspaceCollectionAccessKeys")]
2626
public class GetWorkspaceCollectionAccessKeys : WorkspaceCollectionBaseCmdlet

src/PowerBIEmbedded/PowerBIEmbedded/WorkspaceCollection/NewWorkspaceCollection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,11 @@
1818
using Microsoft.Azure.Management.PowerBIEmbedded;
1919
using Microsoft.Azure.Management.PowerBIEmbedded.Models;
2020
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
21+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2122

2223
namespace Microsoft.Azure.Commands.Management.PowerBIEmbedded.WorkspaceCollection
2324
{
25+
[CmdletDeprecation()]
2426
[Cmdlet("New", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PowerBIWorkspaceCollection", SupportsShouldProcess = true), OutputType(typeof(PSWorkspaceCollection))]
2527
public class NewWorkspaceCollection : WorkspaceCollectionBaseCmdlet
2628
{

src/PowerBIEmbedded/PowerBIEmbedded/WorkspaceCollection/RemoveWorkspaceCollection.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@
1616
using Microsoft.Azure.Commands.Management.PowerBIEmbedded.Properties;
1717
using Microsoft.Azure.Management.PowerBIEmbedded;
1818
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
19+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1920

2021
namespace Microsoft.Azure.Commands.Management.PowerBIEmbedded.WorkspaceCollection
2122
{
23+
[CmdletDeprecation()]
2224
[Cmdlet("Remove", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PowerBIWorkspaceCollection", SupportsShouldProcess = true), OutputType(typeof(void))]
2325
public class RemoveWorkspaceCollection : WorkspaceCollectionBaseCmdlet
2426
{

src/PowerBIEmbedded/PowerBIEmbedded/WorkspaceCollection/ResetWorkspaceCollectionAccessKeys.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
namespace Microsoft.Azure.Commands.Management.PowerBIEmbedded.WorkspaceCollection
2727
{
28-
[GenericBreakingChange("Reset-AzPowerBIWorkspaceCollectionAccessKeys alias will be removed in an upcoming breaking change release", "2.0.0")]
28+
[CmdletDeprecation()]
2929
[Cmdlet("Reset", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "PowerBIWorkspaceCollectionAccessKey", SupportsShouldProcess = true), OutputType(typeof(PSWorkspaceCollectionAccessKey))]
3030
[Alias("Reset-AzPowerBIWorkspaceCollectionAccessKeys")]
3131
public class ResetWorkspaceCollectionAccessKeys : WorkspaceCollectionBaseCmdlet

0 commit comments

Comments
 (0)