> ## Documentation Index
> Fetch the complete documentation index at: https://docs.flexagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# restartVM

> Restarts an Azure Virtual Machine. Target Properties Property Name Property Code Required Description Azure Cloud Account Code FDAZ ACCOUNT CODE Yes T

Restarts an Azure Virtual Machine.

# Target Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Azure Cloud Account Code</td><td>`FDAZ_ACCOUNT_CODE`</td><td>Yes</td><td>The Cloud Account Code of the Azure.</td></tr><tr><td>Azure CLI Path</td><td>`FDAZ_CLI_PATH`</td><td>No</td><td>The path to the directory where Azure CLI is installed.</td></tr></tbody></table>

# Project Properties

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Property Name**</th><th>**Property Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Virtual Machine Resource Id’s</td><td>`FDAZ_VM_RESOURCE_IDS`</td><td>No</td><td>Provide either comma or space separated Resource Ids of the Virtual Machine(s).</td></tr><tr><td>Virtual Machine Name</td><td>`FDAZ_VM_NAME`</td><td>No</td><td>The name of the Virtual Machine to start.</td></tr><tr><td>Resource Group Name</td><td>`FDAZ_RESOURCE_GROUP`</td><td>No</td><td>The name of the Resource Group containing the Virtual Machine.</td></tr></tbody></table>

# Inputs

<table><colgroup><col /><col /><col /><col /></colgroup><tbody><tr><th>**Input Name**</th><th>**Input Code**</th><th>**Required**</th><th>**Description**</th></tr><tr><td>Virtual Machine Resource Id’s</td><td>`FDAZ_INP_VM_RESOURCE_IDS`</td><td>No</td><td>Provide either comma or space separated Resource Ids of the Virtual Machine(s).</td></tr><tr><td>Virtual Machine Name</td><td>`FDAZ_INP_VM_NAME`</td><td>No</td><td>The name of the Virtual Machine to start.</td></tr><tr><td>No Wait</td><td>`FDAZ_INP_VM_NO_WAIT`</td><td>No</td><td>Do Not Wait for Completion of restarting Virtual Machine.</td></tr><tr><td>Force Restart</td><td>`FDAZ_INP_VM_FORCE`</td><td>No</td><td>Force the Virtual Machine to restart by redeploying it.Use if the VM is unresponsive.</td></tr></tbody></table>

# Artifacts

This operation does not produce or consume any artifacts.  

# Endpoint Selection

This operation will select all available endpoints associated to the target.

# Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
