Skip to content

Commit 5d98e39

Browse files
authored
Merge pull request Azure#10371 from Tiano2017/tiano-breakingchangenotice
Add breaking change notice to deployment cmdlets.
2 parents 0719791 + 8d0784b commit 5d98e39

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

src/Resources/ResourceManager/Implementation/Deployments/GetAzureDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2222
/// <summary>
2323
/// Get deployments.
2424
/// </summary>
25-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory when getting a deployment by name. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
25+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzSubscriptionDeployment")]
2626
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Deployment", DefaultParameterSetName = GetAzureDeploymentCmdlet.DeploymentNameParameterSet), OutputType(typeof(PSDeployment))]
2727
public class GetAzureDeploymentCmdlet : ResourceManagerCmdletBase
2828
{

src/Resources/ResourceManager/Implementation/Deployments/GetAzureDeploymentOperationCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2121
/// <summary>
2222
/// Gets the deployment operation.
2323
/// </summary>
24-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory when getting deployment opeartions by deployment name. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
24+
[CmdletDeprecation(ReplacementCmdletName = "Get-AzSubscriptionDeploymentOperation")]
2525
[Cmdlet(VerbsCommon.Get, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DeploymentOperation", DefaultParameterSetName = GetAzureDeploymentOperationCmdlet.DeploymentNameParameterSet), OutputType(typeof(PSDeploymentOperation))]
2626
public class GetAzureDeploymentOperationCmdlet : ResourceManagerCmdletBase
2727
{

src/Resources/ResourceManager/Implementation/Deployments/NewAzureDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2525
/// <summary>
2626
/// Creates a new deployment.
2727
/// </summary>
28-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
28+
[CmdletDeprecation(ReplacementCmdletName = "New-AzSubscriptionDeployment")]
2929
[Cmdlet(VerbsCommon.New, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Deployment", SupportsShouldProcess = true,
3030
DefaultParameterSetName = ParameterlessTemplateFileParameterSetName), OutputType(typeof(PSDeployment))]
3131
public class NewAzureDeploymentCmdlet : ResourceWithParameterCmdletBase, IDynamicParameters

src/Resources/ResourceManager/Implementation/Deployments/RemoveAzureDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2323
/// <summary>
2424
/// Deletes a deployment.
2525
/// </summary>
26-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory when removing the deployment by name. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
26+
[CmdletDeprecation(ReplacementCmdletName = "Remove-AzSubscriptionDeployment")]
2727
[Cmdlet(VerbsCommon.Remove, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Deployment", SupportsShouldProcess = true,
2828
DefaultParameterSetName = RemoveAzureDeploymentCmdlet.DeploymentNameParameterSet), OutputType(typeof(bool))]
2929
public class RemoveAzureDeploymentCmdlet : ResourceManagerCmdletBase

src/Resources/ResourceManager/Implementation/Deployments/SaveAzureDeploymentTemplateCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2323
/// <summary>
2424
/// Saves the deployment template to a file on disk.
2525
/// </summary>
26-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory when saving template by deployment name. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
26+
[CmdletDeprecation(ReplacementCmdletName = "Save-AzSubscriptionDeploymentTemplate")]
2727
[Cmdlet(VerbsData.Save, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DeploymentTemplate", SupportsShouldProcess = true,
2828
DefaultParameterSetName = SaveAzureDeploymentTemplateCmdlet.DeploymentNameParameterSet), OutputType(typeof(PSTemplatePath))]
2929
public class SaveAzureDeploymentTemplateCmdlet : ResourceManagerCmdletBase

src/Resources/ResourceManager/Implementation/Deployments/StopAzureDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2323
/// <summary>
2424
/// Cancel a running deployment.
2525
/// </summary>
26-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory when stopping deployment by name. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
26+
[CmdletDeprecation(ReplacementCmdletName = "Stop-AzSubscriptionDeployment")]
2727
[Cmdlet(VerbsLifecycle.Stop, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Deployment", SupportsShouldProcess = true,
2828
DefaultParameterSetName = StopAzureDeploymentCmdlet.DeploymentNameParameterSet), OutputType(typeof(bool))]
2929
public class StopAzureDeploymentCmdlet : ResourceManagerCmdletBase

src/Resources/ResourceManager/Implementation/Deployments/TestAzureDeploymentCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Microsoft.Azure.Commands.ResourceManager.Cmdlets.Implementation
2424
/// <summary>
2525
/// Validate a template to see whether it's using the right syntax, resource providers, resource types, etc.
2626
/// </summary>
27-
[GenericBreakingChange("A new parameter \"ScopeType\" will be introduced to the cmdlet and will be mandatory. ScopeType will be an enum with four values: ResourceGroup, Subscription, ManagementGroup, Tenant. Adding this parameter allows us to use one cmdlet for all Azure Resource Manager template deployments but still determine the intended level of scope.", "3.0")]
27+
[CmdletDeprecation(ReplacementCmdletName = "Test-AzSubscriptionDeployment")]
2828
[Cmdlet(VerbsDiagnostic.Test, ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "Deployment", DefaultParameterSetName = ParameterlessTemplateFileParameterSetName), OutputType(typeof(PSResourceManagerError))]
2929
public class TestAzureDeploymentCmdlet : ResourceWithParameterCmdletBase, IDynamicParameters
3030
{

0 commit comments

Comments
 (0)