Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ManagedServices/ManagedServices/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Updated breaking change warnings on cmdlets of managed services assignment and definition

## Version 1.1.0
* Added breaking change warnings on cmdlets of managed services assignment and definition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,11 @@ public class NewAzureRmManagedServicesAssignment : ManagedServicesCmdletBase
[ScopeCompleter]
public string Scope { get; set; }

[CmdletParameterBreakingChange(
nameOfParameterChanging: "RegistrationDefinitionName",
deprecateByVersion: ManagedServicesUtility.UpcomingVersion,
changeInEfectByDate: ManagedServicesUtility.UpcomingVersionReleaseDate,
ChangeDescription = ManagedServicesUtility.DeprecatedParameterDescription)]
[Parameter(ParameterSetName = DefaultParameterSet, Mandatory = true, HelpMessage = "The registration definition identifier.")]
[ValidateNotNullOrEmpty]
public string RegistrationDefinitionName { get; set; }
Expand All @@ -50,7 +55,7 @@ public class NewAzureRmManagedServicesAssignment : ManagedServicesCmdletBase
nameOfParameterChanging: "RegistrationDefinitionResourceId",
deprecateByVersion: ManagedServicesUtility.UpcomingVersion,
changeInEfectByDate: ManagedServicesUtility.UpcomingVersionReleaseDate,
ChangeDescription = ManagedServicesUtility.DeprecatedParameterDescription)]
ReplaceMentCmdletParameterName = "RegistrationDefinitionId")]
[Parameter(ParameterSetName = ByResourceIdParameterSet, ValueFromPipelineByPropertyName = true, Mandatory = true, HelpMessage = "The fully qualified resource id of the registration definition.")]
[ValidateNotNullOrEmpty]
[Alias("ResourceId")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
using Microsoft.Azure.Management.ManagedServices.Models;
using Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Extensions;
using Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using Microsoft.WindowsAzure.Commands.Utilities.Common;
using System;
using System.Collections.Generic;
Expand All @@ -23,10 +24,14 @@

namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Commands
{
[WindowsAzure.Commands.Common.CustomAttributes.GenericBreakingChange(
[GenericBreakingChange(
message: "New mandatory parameter 'DisplayName' will be added to represent a user-friendly name for a registration definition",
deprecateByVersion: ManagedServicesUtility.UpcomingVersion,
changeInEfectByDate: ManagedServicesUtility.UpcomingVersionReleaseDate)]
[GenericBreakingChange(
message: "New mandatory parameter 'Authorization' will be added to represent a list containing principal IDs and role definition IDs.",
deprecateByVersion: ManagedServicesUtility.UpcomingVersion,
changeInEfectByDate: ManagedServicesUtility.UpcomingVersionReleaseDate)]
[Cmdlet(
VerbsCommon.New,
Microsoft.Azure.Commands.ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "ManagedServicesDefinition",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.ManagedServices.Extensions
public static class ManagedServicesUtility
{
// TODO: Remove these three string as well as breaking changes attributes for Oct. 27th change
public const string UpcomingVersion = "1.0.3";
public const string UpcomingVersion = "1.3.0";
public const string UpcomingVersionReleaseDate = "10/27/2020";
public const string DeprecatedParameterDescription = "Parameter is being deprecated without being replaced";

Expand Down