Skip to content
Closed
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
8 changes: 7 additions & 1 deletion src/Network/Network/Az.Network.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,13 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
'Update-AzVirtualRouterPeer', 'Update-AzVirtualWan',
'Update-AzVpnConnection', 'Update-AzVpnGateway',
'Update-AzVpnGatewayNatRule', 'Update-AzVpnServerConfiguration',
'Update-AzVpnServerConfigurationPolicyGroup', 'Update-AzVpnSite'
'Update-AzVpnServerConfigurationPolicyGroup', 'Update-AzVpnSite',
'Get-AzVirtualNetworkGatewayFailoverSingleTestDetail',
'Get-AzVirtualNetworkGatewayFailoverAllTestsDetail',
'Start-AzSiteFailoverTest', 'Stop-AzSiteFailoverTest',
'Get-AzVirtualNetworkGatewayFailoverResiliencyInformation',
'Get-AzVirtualNetworkGatewayFailoverRoutesInformation'


# Variables to export from this module
# VariablesToExport = @()
Expand Down
6 changes: 6 additions & 0 deletions src/Network/Network/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@
- `Get-AzApplicationGatewayFirewallPolicy`
- `Set-AzApplicationGatewayFirewallPolicy`
- `New-AzApplicationGatewayFirewallPolicy`
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverSingleTestDetail` to retrieve details of a single failover test on a virtual network gateway.
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverAllTestsDetail` to list all failover tests for a virtual network gateway.
* Added cmdlet `Start-AzSiteFailoverTest` to initiate a site failover test on a virtual network gateway.
* Added cmdlet `Stop-AzSiteFailoverTest` to stop an ongoing site failover test.
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverResiliencyInformation` to retrieve resiliency information for a virtual network gateway.
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverRoutesInformation` to get route information for a virtual network gateway.


## Version 7.17.0
Expand Down
48 changes: 48 additions & 0 deletions src/Network/Network/Common/NetworkResourceManagerProfile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -920,6 +920,54 @@ private static void Initialize()
// MNM to CNM
cfg.CreateMap<MNM.LoadBalancerHealthPerRulePerBackendAddress, CNM.PSLoadBalancerHealthPerRulePerBackendAddress>();

// ExpressRouteFailoverSingleTestDetails
// CNM to MNM
cfg.CreateMap<CNM.PSExpressRouteFailoverSingleTestDetails, MNM.ExpressRouteFailoverSingleTestDetails>();

// ExpressRouteFailoverSingleTestDetails
// MNM to CNM
cfg.CreateMap<MNM.ExpressRouteFailoverSingleTestDetails, CNM.PSExpressRouteFailoverSingleTestDetails>();

// ExpressRouteFailoverRedundantRoute
// CNM to MNM
cfg.CreateMap<CNM.PSExpressRouteFailoverRedundantRoute, MNM.ExpressRouteFailoverRedundantRoute>();

// ExpressRouteFailoverRedundantRoute
// MNM to CNM
cfg.CreateMap<MNM.ExpressRouteFailoverRedundantRoute, CNM.PSExpressRouteFailoverRedundantRoute>();

// FailoverConnectionDetails
// CNM to MNM
cfg.CreateMap<CNM.PSFailoverConnectionDetails, MNM.FailoverConnectionDetails>();

// FailoverConnectionDetails
// MNM to CNM
cfg.CreateMap<MNM.FailoverConnectionDetails, CNM.PSFailoverConnectionDetails>();

// ExpressRouteFailoverTestDetails
// CNM to MNM
cfg.CreateMap<CNM.PSExpressRouteFailoverTestDetails, MNM.ExpressRouteFailoverTestDetails>();

// ExpressRouteFailoverTestDetails
// MNM to CNM
cfg.CreateMap<MNM.ExpressRouteFailoverTestDetails, CNM.PSExpressRouteFailoverTestDetails>();

// ExpressRouteFailoverCircuitResourceDetails
// CNM to MNM
cfg.CreateMap<CNM.PSExpressRouteFailoverCircuitResourceDetails, MNM.ExpressRouteFailoverCircuitResourceDetails>();

// ExpressRouteFailoverCircuitResourceDetails
// MNM to CNM
cfg.CreateMap<MNM.ExpressRouteFailoverCircuitResourceDetails, CNM.PSExpressRouteFailoverCircuitResourceDetails>();

// ExpressRouteFailoverConnectionResourceDetails
// CNM to MNM
cfg.CreateMap<CNM.PSExpressRouteFailoverConnectionResourceDetails, MNM.ExpressRouteFailoverConnectionResourceDetails>();

// ExpressRouteFailoverConnectionResourceDetails
// MNM to CNM
cfg.CreateMap<MNM.ExpressRouteFailoverConnectionResourceDetails, CNM.PSExpressRouteFailoverConnectionResourceDetails>();

// NatRulePortMapping
// CNM to MNM
cfg.CreateMap<CNM.PSNatRulePortMapping, MNM.NatRulePortMapping>();
Expand Down
18 changes: 18 additions & 0 deletions src/Network/Network/Models/PSCircuitMetadataMap.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
//
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.Network.Models
{
public partial class PSCircuitMetadataMap : PSChildResource
{
public new string Name { get; set; }

public string Link { get; set; }

public string Location { get; set; }
}
}
20 changes: 20 additions & 0 deletions src/Network/Network/Models/PSExpressRouteFailoverAllTestDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

using Newtonsoft.Json;
using System.Collections.Generic;

namespace Microsoft.Azure.Commands.Network.Models
{
public partial class PSExpressRouteFailoverAllTestDetails : PSTopLevelResource
{
public List<PSExpressRouteFailoverTestDetails> TestDetails { get; set; }

[JsonIgnore]
public string TestDetailsText => JsonConvert.SerializeObject(TestDetails, Formatting.Indented);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.Network.Models
{
public partial class PSExpressRouteFailoverCircuitResourceDetails : PSChildResource
{
public string NrpResourceUri { get; set; }

public new string Name { get; set; }

public string ConnectionName { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.Network.Models
{
public partial class PSExpressRouteFailoverConnectionResourceDetails : PSChildResource
{
public string NrpResourceUri { get; set; }

public new string Name { get; set; }

public string Status { get; set; }

public string LastUpdatedTime { get; set; }
}
}
18 changes: 18 additions & 0 deletions src/Network/Network/Models/PSExpressRouteFailoverRedundantRoute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

using System.Collections.Generic;

namespace Microsoft.Azure.Commands.Network.Models
{
public class PSExpressRouteFailoverRedundantRoute
{
public List<string> PeeringLocations { get; set; }

public List<string> Routes { get; set; }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ----------------------------------------------------------------------------------

using Newtonsoft.Json;
using System.Collections.Generic;

namespace Microsoft.Azure.Commands.Network.Models
{
public class PSExpressRouteFailoverSingleTestDetails : PSChildResource
{
public string PeeringLocation { get; set; }

public string Status { get; set; }

public string StartTimeUtc { get; set; }

public string EndTimeUtc { get; set; }

public List<PSExpressRouteFailoverRedundantRoute> RedundantRoutes { get; set; }

public List<string> NonRedundantRoutes { get; set; }

public bool WasSimulationSuccessful { get; set; }

public List<PSFailoverConnectionDetails> FailoverConnectionDetails { get; set; }

[JsonIgnore]
public string RedundantRoutesText => JsonConvert.SerializeObject(RedundantRoutes, Formatting.Indented);

[JsonIgnore]
public string NonRedundantRoutesText => JsonConvert.SerializeObject(NonRedundantRoutes, Formatting.Indented);

[JsonIgnore]
public string FailoverConnectionDetailsText => JsonConvert.SerializeObject(FailoverConnectionDetails, Formatting.Indented);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

using Newtonsoft.Json;
using System.Collections.Generic;

namespace Microsoft.Azure.Commands.Network.Models
{
public class PSExpressRouteFailoverSingleTestDetailsObject : PSTopLevelResource
{
public List<PSExpressRouteFailoverSingleTestDetails> TestDetails { get; set; }

[JsonIgnore]
public string TestDetailsText => JsonConvert.SerializeObject(TestDetails, Formatting.Indented);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

using Newtonsoft.Json;
using System.Collections.Generic;

namespace Microsoft.Azure.Commands.Network.Models
{
public class PSExpressRouteFailoverStopApiParameters
{
public string PeeringLocation { get; set; }

public bool WasSimulationSuccessful { get; set; }

public List<PSFailoverConnectionDetails> Details { get; set; }

[JsonIgnore]
public string DetailsText => JsonConvert.SerializeObject(Details, Formatting.Indented);
}
}
42 changes: 42 additions & 0 deletions src/Network/Network/Models/PSExpressRouteFailoverTestDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

using Newtonsoft.Json;
using System.Collections.Generic;

namespace Microsoft.Azure.Commands.Network.Models
{
public class PSExpressRouteFailoverTestDetails : PSChildResource
{
public string PeeringLocation { get; set; }

public string Status { get; set; }

public string StartTime { get; set; }

public string EndTime { get; set; }

public string TestType { get; set; }

public string TestGuid { get; set; }

public List<PSExpressRouteFailoverCircuitResourceDetails> Circuits { get; set; }

public List<PSExpressRouteFailoverConnectionResourceDetails> Connections { get; set; }

public List<string> Issues { get; set; }

[JsonIgnore]
public string CircuitsText => JsonConvert.SerializeObject(Circuits, Formatting.Indented);

[JsonIgnore]
public string ConnectionsText => JsonConvert.SerializeObject(Connections, Formatting.Indented);

[JsonIgnore]
public string IssuesText => JsonConvert.SerializeObject(Issues, Formatting.Indented);
}
}
18 changes: 18 additions & 0 deletions src/Network/Network/Models/PSFailoverConnectionDetails.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
// ----------------------------------------------------------------------------------
//
// Copyright Microsoft Corporation
// Licensed under the Apache License, Version 2.0
//
// ----------------------------------------------------------------------------------

namespace Microsoft.Azure.Commands.Network.Models
{
public class PSFailoverConnectionDetails
{
public string FailoverConnectionName { get; set; }

public string FailoverLocation { get; set; }

public bool IsVerified { get; set; }
}
}
Loading