Skip to content

Commit ecf3aae

Browse files
authored
Azure Blueprint cmdlets deprecation. (#27002)
* Deprecate the Blueprints cmdlets. * Update Blueprint cmdlets deprecation messages and changelog. * Changing the deprecation message. * Update deprecation version. * Update blueprint version deprecation. --------- Co-authored-by: Dante DG <test>
1 parent d650ed4 commit ecf3aae

14 files changed

+27
-0
lines changed

src/Blueprint/Blueprint/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
- Additional information about change #1
1919
-->
2020
## Upcoming Release
21+
* Deprecation of Blueprint cmdlets.
2122

2223
## Version 0.4.5
2324
* Upgraded nuget package to signed package.

src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/GetAzureRMBlueprintArtifact.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
// ----------------------------------------------------------------------------------
1414

1515
using Microsoft.Azure.Commands.Blueprint.Models;
16+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1617
using Microsoft.WindowsAzure.Commands.Utilities.Common;
1718
using System;
1819
using System.Management.Automation;
1920
using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants;
2021

2122
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
2223
{
24+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
2325
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintArtifact", DefaultParameterSetName = ParameterSetNames.ArtifactsByBlueprint), OutputType(typeof(PSBlueprintAssignment))]
2426
public class GetAzureRmBlueprintArtifact : BlueprintArtifactsCmdletBase
2527
{

src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/NewAzureRMBlueprintArtifact.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
using Microsoft.Azure.Commands.Common.Authentication;
2626
using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties;
2727
using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants;
28+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2829

2930
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
3031
{
32+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
3133
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintArtifact", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.CreateTemplateArtifact), OutputType(typeof(Artifact))]
3234
public class NewAzureRMBlueprintArtifact : BlueprintArtifactsCmdletBase
3335
{

src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/SetAzureRMBlueprintArtifact.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@
2626
using Microsoft.Azure.Commands.Common.Authentication;
2727
using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties;
2828
using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants;
29+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2930

3031
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
3132
{
33+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
3234
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintArtifact", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.UpdateTemplateArtifact), OutputType(typeof(Artifact))]
3335
public class SetAzureRmBlueprintArtifact : BlueprintArtifactsCmdletBase
3436
{

src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/GetAzureRMBlueprintAssignment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@
1414

1515
using Microsoft.Azure.Commands.Blueprint.Common;
1616
using Microsoft.Azure.Commands.Blueprint.Models;
17+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1718
using System;
1819
using System.Management.Automation;
1920
using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants;
2021

2122
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
2223
{
24+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
2325
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", DefaultParameterSetName = ParameterSetNames.SubscriptionScope), OutputType(typeof(PSBlueprintAssignment))]
2426
public class GetAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase
2527
{

src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/NewAzureRMBlueprintAssignment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@
2525
using Microsoft.Azure.Commands.Common.Authentication;
2626
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
2727
using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames;
28+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2829

2930
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
3031
{
32+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
3133
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.CreateBlueprintAssignment), OutputType(typeof(PSBlueprintAssignment))]
3234
public class NewAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase
3335
{

src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/RemoveAzureRMBlueprintAssignment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@
1515
using Microsoft.Azure.Commands.Blueprint.Common;
1616
using Microsoft.Azure.Commands.Blueprint.Models;
1717
using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties;
18+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
1819
using System;
1920
using System.Management.Automation;
2021
using ParameterHelpMessages = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterHelpMessages;
2122
using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames;
2223

2324
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
2425
{
26+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
2527
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.BySubscriptionAndName), OutputType(typeof(PSBlueprintAssignment))]
2628
public class RemoveAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase
2729
{

src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/SetAzureRMBlueprintAssignment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,11 @@
2727
using Newtonsoft.Json;
2828
using ParameterHelpMessages = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterHelpMessages;
2929
using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames;
30+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
3031

3132
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
3233
{
34+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
3335
[Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.UpdateBlueprintAssignment), OutputType(typeof(PSBlueprintAssignment))]
3436
public class SetAzureRMBlueprintAssignment : BlueprintAssignmentCmdletBase
3537
{

src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ExportAzureRMBlueprint.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@
1919
using Microsoft.Azure.Commands.Common.Authentication;
2020
using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties;
2121
using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants;
22+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2223

2324
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
2425
{
26+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
2527
[Cmdlet("Export", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintWithArtifact", SupportsShouldProcess = true, DefaultParameterSetName =
2628
ParameterSetNames.ExportBlueprintParameterSet), OutputType(typeof(bool))]
2729
public class ExportAzureRmBlueprint : BlueprintDefinitionCmdletBase

src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/GetAzureRMBlueprint.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
using Microsoft.Azure.Commands.Blueprint.Models;
2222
using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames;
2323
using ParameterHelpMessages = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterHelpMessages;
24+
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
2425

2526
namespace Microsoft.Azure.Commands.Blueprint.Cmdlets
2627
{
28+
[GenericBreakingChangeWithVersion("Blueprints and associated cmdlets will be deprecated as early as July 2026. Customers are encouraged to transition to Template Specs and Deployments Stacks to support their scenarios beyond that date. Migration documentation is available at https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/migrate-blueprint.", "16.0.0", "-")]
2729
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Blueprint", DefaultParameterSetName = ParameterSetNames.SubscriptionScope), OutputType(typeof(PSBlueprint),typeof(PSPublishedBlueprint))]
2830
public class GetAzureRmBlueprint : BlueprintDefinitionCmdletBase
2931
{

0 commit comments

Comments
 (0)