The Azure Virtual Machine (VM) actions let you manage the lifecycle of your Azure VM directly from your workflows.
Stop a virtual machine
This action stops an Azure VM using the Azure Compute VM - Power Off REST API.
Input field | Optionality | Type | Description |
|---|---|---|---|
clientId | Required | String | An Azure Service Principal |
clientSecret | Required | String | An Azure Service Principal |
tenantId | Required | String | The Azure tenant identifier. Can be passed as a secret. |
subscriptionId | Required | String | The Azure subscription identifier. For example, |
resourceGroupName | Required | String | The name of the resource group that contains the virtual machine. For example, |
vmName | Required | String | The name of the virtual machine to stop. For example, |
skipShutdown | Optional | Boolean | Whether to skip the shutdown and power off the virtual machine immediately. Accepts |
selectors | Optional | List | A list of selectors used to extract specific values from the response. For example, |
Output field | Type | Description |
|---|---|---|
success | Boolean |
|
errorMessage | String | Failure reason as message. |
response | Object |
|
name: azure-stop-vmdescription: 'This stops a virtual machine'steps: - name: azure_vm_stop_3 type: action action: azure.vm.stop version: 1 inputs: clientId: ${{ :secrets:azure-client-id }} clientSecret: ${{ :secrets:azure-client-secret }} tenantId: ${{ :secrets:azure-client-tenant }} subscriptionId: "12345678-1234-1234-1234-123456789abc" resourceGroupName: "my-resource-group" virtualMachineName: ‘my-demo-vm' next: end