< Back

Invoke-ProvAzureVMAction

Sun Jan 19, 2020 5:38 pm

NAME Invoke-ProvAzureVMAction



SYNOPSIS

Start/Stop/Restart/Deallocate Azure virtual machine.





SYNTAX

Invoke-ProvAzureVMAction -Action <string> -AuthContext <object> -Name <string> -ResourceGroup <string>

-SubscriptionId <Guid> [-ApiVersion <string>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-AuthContext <object>

The authorization context obtain with "Get-ProvAzureAuthContext".



Store the output of this command in a variable and use it as input value for this parameter"



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Action <string>

The action to be invoke: Start - The operation to start a virtual machine. Stop - The operation to power off

(stop) a virtual machine. The virtual machine can be restarted with the same provisioned resources. You are

still charged for this virtual machine. Deallocate - Shuts down the virtual machine and releases the compute

resources. You are not billed for the compute resources that this virtual machine uses. Restart - The

operation to restart a virtual machine. Redeploy - The operation to redeploy a virtual machine.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-SubscriptionId <Guid>

The GUID of the Azure Subscription where the virtual machines have been created.



Required? true

Position? named

Default value 00000000-0000-0000-0000-000000000000

Accept pipeline input? false

Accept wildcard characters? false



-ResourceGroup <string>

The name of the Azure Resource Group contains the virtual machine.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <string>

The name of the virtual machine.



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ApiVersion <string>

The version of the API to use.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Net.HttpStatusCode







RELATED LINKS