> ## 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.

# deleteVM

> Deletes an Azure Virtual Machine. Target Properties Property Name Property Code Required Description Azure Subscription ID FDAZ SUBSCRIPTION ID Yes Th

Deletes 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 Subscription ID</td><td>`FDAZ_SUBSCRIPTION_ID`</td><td>Yes</td><td>The ID of the subscription to manage</td></tr><tr><td>Azure Keystore Path</td><td>`FDAZ_KEYSTORE_PATH`</td><td>Yes</td><td>The path to the JKS containing the management certificate.</td></tr><tr><td>Azure Keystore Password</td><td>`FDAZ_KEYSTORE_PASSWORD`</td><td>Yes</td><td>The password for the `Azure Keystore Path`</td></tr><tr><td>Azure Active Directory Domain</td><td>`FDAZ_AD_DOMAIN`</td><td>Yes</td><td>The domain name of the AAD to access.</td></tr><tr><td>Azure Application Client ID</td><td>`FDAZ_CLIENT_ID`</td><td>Yes</td><td>The Client ID assigned to FlexDeploy</td></tr><tr><td>Azure Application Client Key</td><td>`FDAZ_CLIENT_KEY`</td><td>Yes</td><td>The key assigned to FlexDeploy</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>Classic VM</td><td>`FDAZ_VM_CLASSIC`</td><td>Yes</td><td>Boolean, whether or not the VM is "classic"</td></tr><tr><td>VM Name</td><td>`FDAZ_VM_NAME`</td><td>Yes</td><td>The name of the VM to start.</td></tr><tr><td>Service Name</td><td>`FDAZ_SERVICE_NAME`</td><td>No</td><td>The name of the cloud service the VM is running on. Required if `Classic VM `is set to true.</td></tr><tr><td>Deployment Name</td><td>`FDAZ_DEPLOYMENT_NAME`</td><td>No</td><td>The name of the deployment that created the VM. Required if `Classic VM `is set to false.</td></tr><tr><td>Resource Group Name</td><td>`FDAZ_RG_NAME`</td><td>No</td><td>The name of the resource group containing the VM. Required if `Classic VM `is set to false.</td></tr><tr><td>Delete Media</td><td>`FDAZ_DELETE_MEDIA`</td><td>No</td><td>Boolean, whether or not to delete the disks and source blobs when deleting the VM.</td></tr><tr><td>Continue on Error</td><td>`FDAZ_CONTINUE_ON_ERROR`</td><td>No</td><td>Optionally do not fail the workflow if deleting the VM fails.</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.
