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
11 changes: 11 additions & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@
--->

## Upcoming Release
* Updated planning to deprecate warnings for the following cmdlets
-`New-AzVirtualHubRoute`
-`New-AzVirtualHubRouteTable`
-`Add-AzVirtualHubRoute`
-`Add-AzVirtualHubRouteTable`
-`Get-AzVirtualHubRouteTable`
-`Remove-AzVirtualHubRouteTable`
* Added planning to deprecate warnings on the argument `RouteTable` for the following cmdlets
-`New-AzVirtualHub`
-`Set-AzVirtualHub`
-`Update-AzVirtualHub`

## Version 4.1.0
* [Breaking Change] Removed parameter `HostedSubnet` and added `Subnet` instead
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ public class NewAzureRmVirtualHubCommand : VirtualHubBaseCmdlet
HelpMessage = "The hub virtual network connections associated with this Virtual Hub.")]
public PSHubVirtualNetworkConnection[] HubVnetConnection { get; set; }

public const String RTv1ChangeDesc = "Parameter is being deprecated without being replaced. Use *VHubRouteTable* commands.";
[CmdletParameterBreakingChange("RouteTable", ChangeDescription = RTv1ChangeDesc)]
[Parameter(
Mandatory = false,
HelpMessage = "The route table associated with this Virtual Hub.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

[CmdletDeprecation(ReplacementCmdletName = "Add-AzVirtualHubRoute")]
[CmdletDeprecation(ReplacementCmdletName = "New-AzVHubRoute")]
[Cmdlet(
VerbsCommon.New,
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRoute",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

[CmdletDeprecation(ReplacementCmdletName = "Add-AzVirtualHubRouteTable")]
[CmdletDeprecation(ReplacementCmdletName = "New-AzVHubRouteTable")]
[Cmdlet(VerbsCommon.New,
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRouteTable",
SupportsShouldProcess = false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using System.Linq;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

[Cmdlet("Set",
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHub",
Expand Down Expand Up @@ -72,6 +73,8 @@ public class SetAzureRmVirtualHubCommand : VirtualHubBaseCmdlet
[ValidateNotNullOrEmpty]
public PSVirtualHub InputObject { get; set; }

public const String RTv2ChangeDesc = "Parameter is being deprecated without being replaced. Use *VHubRouteTable* commands.";
[CmdletParameterBreakingChange("RouteTable", ChangeDescription = RTv2ChangeDesc)]
[Parameter(
Mandatory = true,
HelpMessage = "The route tables associated with this Virtual Hub.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public class UpdateAzureRmVirtualHubCommand : VirtualHubBaseCmdlet
HelpMessage = "The hub virtual network connections associated with this Virtual Hub.")]
public PSHubVirtualNetworkConnection[] HubVnetConnection { get; set; }

public const String RTv1ChangeDesc = "Parameter is being deprecated without being replaced. Use *VHubRouteTable* commands.";
[CmdletParameterBreakingChange("RouteTable", ChangeDescription = RTv1ChangeDesc)]
[Parameter(
Mandatory = false,
HelpMessage = "The route table associated with this Virtual Hub.")]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Commands.Network.Models;
using System.Linq;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

[CmdletDeprecation(ReplacementCmdletName = "New-AzVHubRoute")]
[Cmdlet(
VerbsCommon.Add,
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRoute",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Commands.Network.Models;
using System.Linq;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

[CmdletDeprecation(ReplacementCmdletName = "New-AzVHubRouteTable")]
[Cmdlet(VerbsCommon.Add,
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRouteTable",
SupportsShouldProcess = false),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.Azure.Management.Network.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;
using System;
using System.Collections.Generic;
using System.Management.Automation;

[CmdletDeprecation(ReplacementCmdletName = "Get-AzVHubRouteTable")]
[Cmdlet(VerbsCommon.Get,
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRouteTable",
DefaultParameterSetName = CortexParameterSetNames.ByVirtualHubName),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ namespace Microsoft.Azure.Commands.Network
using Microsoft.Azure.Commands.Network.Models;
using Microsoft.Azure.Commands.ResourceManager.Common.ArgumentCompleters;
using Microsoft.Azure.Management.Internal.Resources.Utilities.Models;
using Microsoft.WindowsAzure.Commands.Common.CustomAttributes;

[CmdletDeprecation(ReplacementCmdletName = "Remove-AzVHubRouteTable")]
[Cmdlet(VerbsCommon.Remove,
ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "VirtualHubRouteTable",
DefaultParameterSetName = CortexParameterSetNames.ByVirtualHubRouteTableName,
Expand Down