Share via


NetworkVirtualApplianceResource.RestartAsync Method

Definition

Restarts one or more VMs belonging to the specified Network Virtual Appliance.

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/restart
  • Operation Id: NetworkVirtualAppliances_Restart
  • Default Api Version: 2024-03-01
  • Resource: NetworkVirtualApplianceResource
public virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds>> RestartAsync (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default, System.Threading.CancellationToken cancellationToken = default);
abstract member RestartAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds>>
override this.RestartAsync : Azure.WaitUntil * Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds>>
Public Overridable Function RestartAsync (waitUntil As WaitUntil, Optional networkVirtualApplianceInstanceIds As NetworkVirtualApplianceInstanceIds = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of NetworkVirtualApplianceInstanceIds))

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

networkVirtualApplianceInstanceIds
NetworkVirtualApplianceInstanceIds

Specifies a list of virtual machine instance IDs from the Network Virtual Appliance VM instances.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Applies to