Skip to content

Commit b9ebdcc

Browse files
committed
adding new cmdlet for vnet failover and insight apis
1 parent 164a7aa commit b9ebdcc

27 files changed

+1171
-1
lines changed

src/Network/Network/Az.Network.psd1

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,13 @@ CmdletsToExport = 'Add-AzApplicationGatewayAuthenticationCertificate',
750750
'Update-AzVirtualRouterPeer', 'Update-AzVirtualWan',
751751
'Update-AzVpnConnection', 'Update-AzVpnGateway',
752752
'Update-AzVpnGatewayNatRule', 'Update-AzVpnServerConfiguration',
753-
'Update-AzVpnServerConfigurationPolicyGroup', 'Update-AzVpnSite'
753+
'Update-AzVpnServerConfigurationPolicyGroup', 'Update-AzVpnSite',
754+
'Get-AzVirtualNetworkGatewayFailoverSingleTestDetail',
755+
'Get-AzVirtualNetworkGatewayFailoverAllTestsDetail',
756+
'Start-AzSiteFailoverTest', 'Stop-AzSiteFailoverTest',
757+
'Get-AzVirtualNetworkGatewayFailoverResiliencyInformation',
758+
'Get-AzVirtualNetworkGatewayFailoverRoutesInformation'
759+
754760

755761
# Variables to export from this module
756762
# VariablesToExport = @()

src/Network/Network/ChangeLog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333
- `Get-AzApplicationGatewayFirewallPolicy`
3434
- `Set-AzApplicationGatewayFirewallPolicy`
3535
- `New-AzApplicationGatewayFirewallPolicy`
36+
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverSingleTestDetail` to retrieve details of a single failover test on a virtual network gateway.
37+
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverAllTestsDetail` to list all failover tests for a virtual network gateway.
38+
* Added cmdlet `Start-AzSiteFailoverTest` to initiate a site failover test on a virtual network gateway.
39+
* Added cmdlet `Stop-AzSiteFailoverTest` to stop an ongoing site failover test.
40+
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverResiliencyInformation` to retrieve resiliency information for a virtual network gateway.
41+
* Added cmdlet `Get-AzVirtualNetworkGatewayFailoverRoutesInformation` to get route information for a virtual network gateway.
3642

3743

3844
## Version 7.17.0

src/Network/Network/Common/NetworkResourceManagerProfile.cs

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -920,6 +920,54 @@ private static void Initialize()
920920
// MNM to CNM
921921
cfg.CreateMap<MNM.LoadBalancerHealthPerRulePerBackendAddress, CNM.PSLoadBalancerHealthPerRulePerBackendAddress>();
922922

923+
// ExpressRouteFailoverSingleTestDetails
924+
// CNM to MNM
925+
cfg.CreateMap<CNM.PSExpressRouteFailoverSingleTestDetails, MNM.ExpressRouteFailoverSingleTestDetails>();
926+
927+
// ExpressRouteFailoverSingleTestDetails
928+
// MNM to CNM
929+
cfg.CreateMap<MNM.ExpressRouteFailoverSingleTestDetails, CNM.PSExpressRouteFailoverSingleTestDetails>();
930+
931+
// ExpressRouteFailoverRedundantRoute
932+
// CNM to MNM
933+
cfg.CreateMap<CNM.PSExpressRouteFailoverRedundantRoute, MNM.ExpressRouteFailoverRedundantRoute>();
934+
935+
// ExpressRouteFailoverRedundantRoute
936+
// MNM to CNM
937+
cfg.CreateMap<MNM.ExpressRouteFailoverRedundantRoute, CNM.PSExpressRouteFailoverRedundantRoute>();
938+
939+
// FailoverConnectionDetails
940+
// CNM to MNM
941+
cfg.CreateMap<CNM.PSFailoverConnectionDetails, MNM.FailoverConnectionDetails>();
942+
943+
// FailoverConnectionDetails
944+
// MNM to CNM
945+
cfg.CreateMap<MNM.FailoverConnectionDetails, CNM.PSFailoverConnectionDetails>();
946+
947+
// ExpressRouteFailoverTestDetails
948+
// CNM to MNM
949+
cfg.CreateMap<CNM.PSExpressRouteFailoverTestDetails, MNM.ExpressRouteFailoverTestDetails>();
950+
951+
// ExpressRouteFailoverTestDetails
952+
// MNM to CNM
953+
cfg.CreateMap<MNM.ExpressRouteFailoverTestDetails, CNM.PSExpressRouteFailoverTestDetails>();
954+
955+
// ExpressRouteFailoverCircuitResourceDetails
956+
// CNM to MNM
957+
cfg.CreateMap<CNM.PSExpressRouteFailoverCircuitResourceDetails, MNM.ExpressRouteFailoverCircuitResourceDetails>();
958+
959+
// ExpressRouteFailoverCircuitResourceDetails
960+
// MNM to CNM
961+
cfg.CreateMap<MNM.ExpressRouteFailoverCircuitResourceDetails, CNM.PSExpressRouteFailoverCircuitResourceDetails>();
962+
963+
// ExpressRouteFailoverConnectionResourceDetails
964+
// CNM to MNM
965+
cfg.CreateMap<CNM.PSExpressRouteFailoverConnectionResourceDetails, MNM.ExpressRouteFailoverConnectionResourceDetails>();
966+
967+
// ExpressRouteFailoverConnectionResourceDetails
968+
// MNM to CNM
969+
cfg.CreateMap<MNM.ExpressRouteFailoverConnectionResourceDetails, CNM.PSExpressRouteFailoverConnectionResourceDetails>();
970+
923971
// NatRulePortMapping
924972
// CNM to MNM
925973
cfg.CreateMap<CNM.PSNatRulePortMapping, MNM.NatRulePortMapping>();
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
//
6+
// ----------------------------------------------------------------------------------
7+
8+
namespace Microsoft.Azure.Commands.Network.Models
9+
{
10+
public partial class PSCircuitMetadataMap : PSChildResource
11+
{
12+
public string Name { get; set; }
13+
14+
public string Link { get; set; }
15+
16+
public string Location { get; set; }
17+
}
18+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0
5+
//
6+
// ----------------------------------------------------------------------------------
7+
8+
using Newtonsoft.Json;
9+
using System.Collections.Generic;
10+
11+
namespace Microsoft.Azure.Commands.Network.Models
12+
{
13+
public partial class PSExpressRouteFailoverAllTestDetails : PSTopLevelResource
14+
{
15+
public List<PSExpressRouteFailoverTestDetails> TestDetails { get; set; }
16+
17+
[JsonIgnore]
18+
public string TestDetailsText => JsonConvert.SerializeObject(TestDetails, Formatting.Indented);
19+
}
20+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0
5+
//
6+
// ----------------------------------------------------------------------------------
7+
8+
namespace Microsoft.Azure.Commands.Network.Models
9+
{
10+
public partial class PSExpressRouteFailoverCircuitResourceDetails : PSChildResource
11+
{
12+
public string NrpResourceUri { get; set; }
13+
14+
public string Name { get; set; }
15+
16+
public string ConnectionName { get; set; }
17+
}
18+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0
5+
//
6+
// ----------------------------------------------------------------------------------
7+
8+
namespace Microsoft.Azure.Commands.Network.Models
9+
{
10+
public partial class PSExpressRouteFailoverConnectionResourceDetails : PSChildResource
11+
{
12+
public string NrpResourceUri { get; set; }
13+
14+
public string Name { get; set; }
15+
16+
public string Status { get; set; }
17+
18+
public string LastUpdatedTime { get; set; }
19+
}
20+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0
5+
//
6+
// ----------------------------------------------------------------------------------
7+
8+
using System.Collections.Generic;
9+
10+
namespace Microsoft.Azure.Commands.Network.Models
11+
{
12+
public class PSExpressRouteFailoverRedundantRoute
13+
{
14+
public List<string> PeeringLocations { get; set; }
15+
16+
public List<string> Routes { get; set; }
17+
}
18+
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0 (the "License");
5+
// you may not use this file except in compliance with the License.
6+
// You may obtain a copy of the License at
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
// ----------------------------------------------------------------------------------
14+
15+
using Newtonsoft.Json;
16+
using System.Collections.Generic;
17+
18+
namespace Microsoft.Azure.Commands.Network.Models
19+
{
20+
public class PSExpressRouteFailoverSingleTestDetails : PSChildResource
21+
{
22+
public string PeeringLocation { get; set; }
23+
24+
public string Status { get; set; }
25+
26+
public string StartTimeUtc { get; set; }
27+
28+
public string EndTimeUtc { get; set; }
29+
30+
public List<PSExpressRouteFailoverRedundantRoute> RedundantRoutes { get; set; }
31+
32+
public List<string> NonRedundantRoutes { get; set; }
33+
34+
public bool WasSimulationSuccessful { get; set; }
35+
36+
public List<PSFailoverConnectionDetails> FailoverConnectionDetails { get; set; }
37+
38+
[JsonIgnore]
39+
public string RedundantRoutesText => JsonConvert.SerializeObject(RedundantRoutes, Formatting.Indented);
40+
41+
[JsonIgnore]
42+
public string NonRedundantRoutesText => JsonConvert.SerializeObject(NonRedundantRoutes, Formatting.Indented);
43+
44+
[JsonIgnore]
45+
public string FailoverConnectionDetailsText => JsonConvert.SerializeObject(FailoverConnectionDetails, Formatting.Indented);
46+
}
47+
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// ----------------------------------------------------------------------------------
2+
//
3+
// Copyright Microsoft Corporation
4+
// Licensed under the Apache License, Version 2.0
5+
//
6+
// ----------------------------------------------------------------------------------
7+
8+
using Newtonsoft.Json;
9+
using System.Collections.Generic;
10+
11+
namespace Microsoft.Azure.Commands.Network.Models
12+
{
13+
public class PSExpressRouteFailoverSingleTestDetailsObject : PSTopLevelResource
14+
{
15+
public List<PSExpressRouteFailoverSingleTestDetails> TestDetails { get; set; }
16+
17+
[JsonIgnore]
18+
public string TestDetailsText => JsonConvert.SerializeObject(TestDetails, Formatting.Indented);
19+
}
20+
}

0 commit comments

Comments
 (0)