diff --git a/src/Blueprint/Blueprint/ChangeLog.md b/src/Blueprint/Blueprint/ChangeLog.md index 844ecb830f33..0fbd227dc2cc 100644 --- a/src/Blueprint/Blueprint/ChangeLog.md +++ b/src/Blueprint/Blueprint/ChangeLog.md @@ -18,6 +18,7 @@ - Additional information about change #1 --> ## Upcoming Release +* Deprecation of Blueprint cmdlets. ## Version 0.4.5 * Upgraded nuget package to signed package. diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/GetAzureRMBlueprintArtifact.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/GetAzureRMBlueprintArtifact.cs index fffa0d4940bb..8ee5c8f3e50a 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/GetAzureRMBlueprintArtifact.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/GetAzureRMBlueprintArtifact.cs @@ -13,6 +13,7 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.Blueprint.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using Microsoft.WindowsAzure.Commands.Utilities.Common; using System; using System.Management.Automation; @@ -20,6 +21,7 @@ namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintArtifact", DefaultParameterSetName = ParameterSetNames.ArtifactsByBlueprint), OutputType(typeof(PSBlueprintAssignment))] public class GetAzureRmBlueprintArtifact : BlueprintArtifactsCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/NewAzureRMBlueprintArtifact.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/NewAzureRMBlueprintArtifact.cs index f42acb963c5a..0f5f37271dad 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/NewAzureRMBlueprintArtifact.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/NewAzureRMBlueprintArtifact.cs @@ -25,9 +25,11 @@ using Microsoft.Azure.Commands.Common.Authentication; using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintArtifact", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.CreateTemplateArtifact), OutputType(typeof(Artifact))] public class NewAzureRMBlueprintArtifact : BlueprintArtifactsCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/SetAzureRMBlueprintArtifact.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/SetAzureRMBlueprintArtifact.cs index 1f4525277c9f..add98d3e8f5e 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/SetAzureRMBlueprintArtifact.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintArtifacts/SetAzureRMBlueprintArtifact.cs @@ -26,9 +26,11 @@ using Microsoft.Azure.Commands.Common.Authentication; using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintArtifact", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.UpdateTemplateArtifact), OutputType(typeof(Artifact))] public class SetAzureRmBlueprintArtifact : BlueprintArtifactsCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/GetAzureRMBlueprintAssignment.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/GetAzureRMBlueprintAssignment.cs index d8c864bd2a48..37f8504ac690 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/GetAzureRMBlueprintAssignment.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/GetAzureRMBlueprintAssignment.cs @@ -14,12 +14,14 @@ using Microsoft.Azure.Commands.Blueprint.Common; using Microsoft.Azure.Commands.Blueprint.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System; using System.Management.Automation; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", DefaultParameterSetName = ParameterSetNames.SubscriptionScope), OutputType(typeof(PSBlueprintAssignment))] public class GetAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/NewAzureRMBlueprintAssignment.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/NewAzureRMBlueprintAssignment.cs index 57a5351be8d2..b613f81cd37e 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/NewAzureRMBlueprintAssignment.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/NewAzureRMBlueprintAssignment.cs @@ -25,9 +25,11 @@ using Microsoft.Azure.Commands.Common.Authentication; using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters; using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.CreateBlueprintAssignment), OutputType(typeof(PSBlueprintAssignment))] public class NewAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/RemoveAzureRMBlueprintAssignment.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/RemoveAzureRMBlueprintAssignment.cs index a7a8938488b6..e923410cb34b 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/RemoveAzureRMBlueprintAssignment.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/RemoveAzureRMBlueprintAssignment.cs @@ -15,6 +15,7 @@ using Microsoft.Azure.Commands.Blueprint.Common; using Microsoft.Azure.Commands.Blueprint.Models; using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System; using System.Management.Automation; using ParameterHelpMessages = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterHelpMessages; @@ -22,6 +23,7 @@ namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.BySubscriptionAndName), OutputType(typeof(PSBlueprintAssignment))] public class RemoveAzureRmBlueprintAssignment : BlueprintAssignmentCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/SetAzureRMBlueprintAssignment.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/SetAzureRMBlueprintAssignment.cs index f6c38b5ea466..94dad2c0e04c 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/SetAzureRMBlueprintAssignment.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintAssignment/SetAzureRMBlueprintAssignment.cs @@ -27,9 +27,11 @@ using Newtonsoft.Json; using ParameterHelpMessages = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterHelpMessages; using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintAssignment", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.UpdateBlueprintAssignment), OutputType(typeof(PSBlueprintAssignment))] public class SetAzureRMBlueprintAssignment : BlueprintAssignmentCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ExportAzureRMBlueprint.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ExportAzureRMBlueprint.cs index b77e55dfbc7c..a834fb88ed51 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ExportAzureRMBlueprint.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ExportAzureRMBlueprint.cs @@ -19,9 +19,11 @@ using Microsoft.Azure.Commands.Common.Authentication; using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet("Export", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintWithArtifact", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.ExportBlueprintParameterSet), OutputType(typeof(bool))] public class ExportAzureRmBlueprint : BlueprintDefinitionCmdletBase diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/GetAzureRMBlueprint.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/GetAzureRMBlueprint.cs index f694b510edde..4aba6133cc72 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/GetAzureRMBlueprint.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/GetAzureRMBlueprint.cs @@ -21,9 +21,11 @@ using Microsoft.Azure.Commands.Blueprint.Models; using ParameterSetNames = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterSetNames; using ParameterHelpMessages = Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants.ParameterHelpMessages; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Blueprint", DefaultParameterSetName = ParameterSetNames.SubscriptionScope), OutputType(typeof(PSBlueprint),typeof(PSPublishedBlueprint))] public class GetAzureRmBlueprint : BlueprintDefinitionCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ImportAzureRMBlueprint.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ImportAzureRMBlueprint.cs index 9d6e57be0aa2..3acfe41a5c5d 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ImportAzureRMBlueprint.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/ImportAzureRMBlueprint.cs @@ -13,12 +13,14 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.Blueprint.Common; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using Microsoft.WindowsAzure.Commands.Utilities.Common; using System.Management.Automation; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet("Import", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "BlueprintWithArtifact", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.ImportBlueprintParameterSet), OutputType(typeof(bool))] public class ImportAzureRmBlueprint : BlueprintDefinitionCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/NewAzureRMBlueprint.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/NewAzureRMBlueprint.cs index ba8ce4b1f1cb..e21cfb1b5619 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/NewAzureRMBlueprint.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/NewAzureRMBlueprint.cs @@ -13,12 +13,14 @@ // ---------------------------------------------------------------------------------- using Microsoft.Azure.Commands.Blueprint.Common; using Microsoft.Azure.Commands.Blueprint.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System; using System.Management.Automation; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Blueprint", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.CreateBlueprintBySubscription), OutputType(typeof(PSBlueprint))] public class NewAzureRmBlueprint : BlueprintDefinitionCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/PublishAzureRMBlueprint.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/PublishAzureRMBlueprint.cs index 68e6d5fae5af..c263bfb97284 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/PublishAzureRMBlueprint.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/PublishAzureRMBlueprint.cs @@ -22,9 +22,11 @@ using Microsoft.Azure.Management.Blueprint.Models; using Microsoft.Azure.PowerShell.Cmdlets.Blueprint.Properties; using static Microsoft.Azure.Commands.Blueprint.Common.BlueprintConstants; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet("Publish", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Blueprint", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.PublishBlueprint), OutputType(typeof(PSPublishedBlueprint))] public class PublishAzureRmBlueprint : BlueprintDefinitionCmdletBase { diff --git a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/SetAzureRMBlueprint.cs b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/SetAzureRMBlueprint.cs index 43c88eebd95a..a74859fc4498 100644 --- a/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/SetAzureRMBlueprint.cs +++ b/src/Blueprint/Blueprint/Cmdlets/BlueprintDefinition/SetAzureRMBlueprint.cs @@ -14,6 +14,7 @@ using Microsoft.Azure.Commands.Blueprint.Common; using Microsoft.Azure.Commands.Blueprint.Models; +using Microsoft.WindowsAzure.Commands.Common.CustomAttributes; using System; using System.Management.Automation; using System.Text.RegularExpressions; @@ -21,6 +22,7 @@ namespace Microsoft.Azure.Commands.Blueprint.Cmdlets { + [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", "-")] [Cmdlet(VerbsCommon.Set, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Blueprint", SupportsShouldProcess = true, DefaultParameterSetName = ParameterSetNames.UpdateBlueprintBySubscription), OutputType(typeof(PSBlueprint))] public class SetAzureRMBlueprint : BlueprintDefinitionCmdletBase {