Share via


NetworkVirtualApplianceResource.Restart 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 Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds> Restart (Azure.WaitUntil waitUntil, Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds networkVirtualApplianceInstanceIds = default, System.Threading.CancellationToken cancellationToken = default);
abstract member Restart : Azure.WaitUntil * Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds>
override this.Restart : Azure.WaitUntil * Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Network.Models.NetworkVirtualApplianceInstanceIds>
Public Overridable Function Restart (waitUntil As WaitUntil, Optional networkVirtualApplianceInstanceIds As NetworkVirtualApplianceInstanceIds = Nothing, Optional cancellationToken As CancellationToken = Nothing) As 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