Skip to content

Commit f025b42

Browse files
arsheenArsheen Khatib (from Dev Box)NoriZC
authored
Adding restart network virtual appliance powershell cmdlets (#25011)
* Adding restart nva powershell commandlet * Adding the restart powershell commands * Ading the help document * Updating output * Fixing bug * Adding the tests * Adding code required for confirm * Adding support for date time * Adding test * Adding newly generated files * Adding the test recording * Add platypus generated help file * Editing Az.Network.md * Update src/Network/Network/help/Restart-AzNetworkVirtualAppliance.md Co-authored-by: NoriZC <[email protected]> * Adding copyright information to top of file * Adding the help commands * Removing the powershell example prompt --------- Co-authored-by: Arsheen Khatib (from Dev Box) <[email protected]> Co-authored-by: NoriZC <[email protected]>
1 parent f875898 commit f025b42

16 files changed

+13363
-112
lines changed

src/Accounts/Accounts/Utilities/CommandMappings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4768,6 +4768,7 @@
47684768
"Reset-AzVpnGateway": {},
47694769
"Reset-AzVpnSiteLinkConnection": {},
47704770
"Resize-AzVirtualNetworkGateway": {},
4771+
"Restart-AzNetworkVirtualAppliance": {},
47714772
"Set-AzApplicationGateway": {},
47724773
"Set-AzApplicationGatewayAuthenticationCertificate": {},
47734774
"Set-AzApplicationGatewayAutoscaleConfiguration": {},

src/Network/Network.Management.Sdk/Generated/INetworkVirtualAppliancesOperations.cs

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,10 @@ public partial interface INetworkVirtualAppliancesOperations
150150
/// <exception cref="Microsoft.Rest.Azure.CloudException">
151151
/// Thrown when the operation returned an invalid status code
152152
/// </exception>
153-
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse> RestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
153+
/// <exception cref="Microsoft.Rest.SerializationException">
154+
/// Thrown when unable to deserialize the response
155+
/// </exception>
156+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<NetworkVirtualApplianceInstanceIds,NetworkVirtualAppliancesRestartHeaders>> RestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
154157

155158
/// <summary>
156159
/// Lists all Network Virtual Appliances in a resource group.
@@ -247,6 +250,38 @@ public partial interface INetworkVirtualAppliancesOperations
247250
/// </exception>
248251
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<NetworkVirtualAppliance,NetworkVirtualAppliancesCreateOrUpdateHeaders>> BeginCreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualAppliance parameters, System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
249252

253+
/// <summary>
254+
/// Restarts one or more VMs belonging to the specified Network Virtual
255+
/// Appliance.
256+
/// </summary>
257+
/// <remarks>
258+
/// Restarts one or more VMs belonging to the specified Network Virtual
259+
/// Appliance.
260+
/// </remarks>
261+
/// <param name='resourceGroupName'>
262+
/// The name of the resource group.
263+
/// </param>
264+
/// <param name='networkVirtualApplianceName'>
265+
/// The name of Network Virtual Appliance.
266+
/// </param>
267+
/// <param name='networkVirtualApplianceInstanceIds'>
268+
/// Specifies a list of virtual machine instance IDs from the Network Virtual
269+
/// Appliance VM instances.
270+
/// </param>
271+
/// <param name='customHeaders'>
272+
/// The headers that will be added to request.
273+
/// </param>
274+
/// <param name='cancellationToken'>
275+
/// The cancellation token.
276+
/// </param>
277+
/// <exception cref="Microsoft.Rest.Azure.CloudException">
278+
/// Thrown when the operation returned an invalid status code
279+
/// </exception>
280+
/// <exception cref="Microsoft.Rest.SerializationException">
281+
/// Thrown when unable to deserialize the response
282+
/// </exception>
283+
System.Threading.Tasks.Task<Microsoft.Rest.Azure.AzureOperationResponse<NetworkVirtualApplianceInstanceIds,NetworkVirtualAppliancesRestartHeaders>> BeginRestartWithHttpMessagesAsync(string resourceGroupName, string networkVirtualApplianceName, NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default(NetworkVirtualApplianceInstanceIds), System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> customHeaders = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken));
284+
250285
/// <summary>
251286
/// Lists all Network Virtual Appliances in a resource group.
252287
/// </summary>
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Code generated by Microsoft (R) AutoRest Code Generator.
4+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
5+
6+
namespace Microsoft.Azure.Management.Network.Models
7+
{
8+
using System.Linq;
9+
10+
public partial class NetworkVirtualAppliancesRestartHeaders
11+
{
12+
/// <summary>
13+
/// Initializes a new instance of the NetworkVirtualAppliancesRestartHeaders class.
14+
/// </summary>
15+
public NetworkVirtualAppliancesRestartHeaders()
16+
{
17+
CustomInit();
18+
}
19+
20+
/// <summary>
21+
/// Initializes a new instance of the NetworkVirtualAppliancesRestartHeaders class.
22+
/// </summary>
23+
24+
/// <param name="location">
25+
/// </param>
26+
public NetworkVirtualAppliancesRestartHeaders(string location = default(string))
27+
28+
{
29+
this.Location = location;
30+
CustomInit();
31+
}
32+
33+
/// <summary>
34+
/// An initialization method that performs custom operations like setting defaults
35+
/// </summary>
36+
partial void CustomInit();
37+
38+
39+
/// <summary>
40+
/// Gets or sets
41+
/// </summary>
42+
[Newtonsoft.Json.JsonProperty(PropertyName = "Location")]
43+
public string Location {get; set; }
44+
}
45+
}

0 commit comments

Comments
 (0)