AzureCompute: Get VM Properties
Description
This step retrieves the properties of a specific virtual machine on Azure and returns the details as JSON. You can expand the response to include runtime information (instanceView) or user data. Use this step in workflows that need to check VM status before performing actions, collect configuration details for monitoring dashboards, or audit VM settings for compliance reporting.
Permissions
- Microsoft.Resources/subscriptions/resourceGroups/read
- Microsoft.Compute/virtualMachines/read
API Reference: Get Virtual Machines
Configurations
| Field name | Description |
|---|---|
| Step name | Specify a unique name for the step. |
| CONNECTION tab: | Connection fields |
| Tenant ID | Specify the Tenant ID of Microsoft Account. Data type is String. The field is mandatory. |
| Client ID | Specify the Client ID of the application created in Microsoft Account. Data type is String. The field is mandatory. |
| Client Secret | Specify the Client Secret generated in Microsoft Account. Data type is Secure String. The field is mandatory. |
| Button: Test Connection | Click Test Connection button to verify whether the connection is available or not. |
| INPUT tab: | Input Fields |
| Subscription ID | Specify the subscription ID that uniquely identifies the Microsoft Azure Subscription. Data type is String. The field is mandatory. |
| Resource Group | Specify the name of the resource group. Data type is String. The field is mandatory. Note: Button: Get Click to populate the list of available resource groups. To populate the list, user must specify a valid subscription ID. |
| Virtual Machine Name | Specify the name of the virtual machine to fetch the properties for. Data type is String. The field is mandatory. Note: Click to populate the list of available virtual machines. To populate the list, user must specify a valid resource group and subscription ID. |
| Expand | Use the field if you want to view more details of the virtual machine. Use any of the following options to expand expression to apply on the operation: - instanceView retrieves a snapshot of the runtime properties of the virtual machine that is managed by the platform and can change outside of control plane operations. - userData retrieves the user data property as part of the VM model view that was provided by the user during the VM create or update operation. Default value: instanceView |
| OUTPUT tab: | Output Fields |
| Response JSON | Define the output variable name. It displays JSON of all the properties associated with the virtual machine. Default variable name: ResponseJSON |