Skip to content

Commit 8f2a43c

Browse files
committed
Warn users of upcoming Tag behavior changes in ARM cmdlets
1 parent c9bb67d commit 8f2a43c

File tree

6 files changed

+7
-3
lines changed

6 files changed

+7
-3
lines changed

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/FindAzureResourceGroupCmdlet.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ protected override void OnEndProcessing()
4848
/// </summary>
4949
private void RunCmdlet()
5050
{
51+
this.WriteWarning("The usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
52+
5153
PaginatedResponseHelper.ForEach(
5254
getFirstPage: () => this.GetResourceGroups(),
5355
getNextPage: nextLink => this.GetNextLink<JObject>(nextLink),

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/FindAzureResourceCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ public sealed class FindAzureResourceCmdlet : ResourceManagerCmdletBase
149149
protected override void OnProcessRecord()
150150
{
151151
base.OnProcessRecord();
152+
this.WriteWarning("The usability of TagName and TagValue parameters in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
152153
}
153154

154155
/// <summary>

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/NewAzureResourceCmdlet.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ public sealed class NewAzureResourceCmdlet : ResourceManipulationCmdletBase
8787
protected override void OnProcessRecord()
8888
{
8989
base.OnProcessRecord();
90+
this.WriteWarning("The usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
9091

9192
var resourceId = this.GetResourceId();
9293
this.ConfirmAction(

src/ResourceManager/Resources/Commands.ResourceManager/Cmdlets/Implementation/Resource/SetAzureResourceCmdlet.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected override void OnProcessRecord()
8484

8585
if(!string.IsNullOrEmpty(this.ODataQuery))
8686
{
87-
this.WriteWarning("The ODataQuery parameter is being deprecated in Set-AzureRmResource cmdlet and will be removed in a future release.");
87+
this.WriteWarning("The ODataQuery parameter is being deprecated in Set-AzureRmResource cmdlet and will be removed in a future release. Also, the usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
8888
}
8989

9090
var resourceId = this.GetResourceId();

src/ResourceManager/Resources/Commands.Resources/ResourceGroups/NewAzureResourceGroupCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class NewAzureResourceGroupCommand : ResourcesBaseCmdlet
4444

4545
public override void ExecuteCmdlet()
4646
{
47-
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
47+
WriteWarning("The output object type of this cmdlet will be modified in a future release. Also, the usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
4848
CreatePSResourceGroupParameters parameters = new CreatePSResourceGroupParameters
4949
{
5050
ResourceGroupName = Name,

src/ResourceManager/Resources/Commands.Resources/ResourceGroups/SetAzureResourceGroupCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class SetAzureResourceGroupCommand : ResourcesBaseCmdlet
5252

5353
public override void ExecuteCmdlet()
5454
{
55-
WriteWarning("The output object type of this cmdlet will be modified in a future release.");
55+
WriteWarning("The output object type of this cmdlet will be modified in a future release. Also, the usability of Tag parameter in this cmdlet will be modified in a future release. This will impact creating, updating and appending tags for Azure resources. For more details about the change, please visit https://github.com/Azure/azure-powershell/issues/726#issuecomment-213545494");
5656
UpdatePSResourceGroupParameters parameters = new UpdatePSResourceGroupParameters
5757
{
5858
ResourceGroupName = Name ?? ResourceIdentifier.FromResourceGroupIdentifier(this.Id).ResourceGroupName,

0 commit comments

Comments
 (0)