편집

다음을 통해 공유


Restart-AzNetworkVirtualAppliance

Restarts a virtual machine instance in the Network Virtual Appliance or all the instances in a Network Virtual Appliance.

Syntax

Restart-AzNetworkVirtualAppliance
       -ResourceGroupName <String>
       -Name <String>
       [-InstanceId <String[]>]
       [-AsJob]
       [-DefaultProfile <IAzureContextContainer>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]
Restart-AzNetworkVirtualAppliance
       [-InstanceId <String[]>]
       -ResourceId <String>
       [-AsJob]
       [-DefaultProfile <IAzureContextContainer>]
       [-WhatIf]
       [-Confirm]
       [<CommonParameters>]

Description

The Restart-AzNetworkVirtualAppliance cmdlet restarts the virtual machine instances associated with a Network Virtual Appliance (NVA).This cmdlet can also be used to restart a specific virtual machine associates with the NVA by using the InstanceId parameter.

Examples

Example 1

Restart-AzNetworkVirtualAppliance -Name testNvaName -ResourceGroupName testRgName -InstanceId "1","0"

This command restarts the instances with ID "1" and ID "0" of the network virtual appliance named "testNvaName" that belongs to the resource group named "testRgName".

Example 2

Restart-AzNetworkVirtualAppliance -Name testNvaName -ResourceGroupName testRgName

This command restarts all the instances of the network virtual appliance named "testNvaName" that belongs to the resource group named "testRgName".

Parameters

-AsJob

Run cmdlet in the background

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InstanceId

Network Virtual Appliance instance ids to be restarted

Type:String[]
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-Name

The Network Virtual Appliance name.

Type:String
Aliases:VirtualApplianceName, NvaName, NetworkVirtualApplianceName
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceGroupName

The resource group name.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ResourceId

The resource Id.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

String[]

Outputs

PSNetworkVirtualApplianceRestartOperationStatusResponse