Home Search

DriveWorks Pro 22
AZPPGetVirtualMachines

Send Feedback

AZPPGetVirtualMachines

Returns an array of all Virtual Machines connected to the Azure subscription (where the app permissions allow the Virtual Machine to be read).

Ensure the DriveWorks PowerPack for Microsoft Azure is correctly configured to authenticate with a Microsoft Azure account.

Syntax

AZPPGetVirtualMachines()

The data will automatically refresh when a Specification is started.

Examples

RuleResultMeaning
AZPPGetVirtualMachines(){"Name", "Id", "ResourceGroup", "RegionName", "PowerState", "ProvisioningState"; "MyExampleVM", "65A5C12D-A8AF-41AE-A576-26608C35232F", "MyResourceGroup", "uksouth", "Running", "Succeeded"}This is the array that will be created with the properties of each Virtual Machine connected to an Azure subscription.

Example Result as a Table

NameIDResourceGroupRegionNamePowerStateProvisioningState
MyExampleVM65A5C12D-A8AF-41AE-A576-26608C35232FMyResourceGroupuksouthRunningSucceeded

More Information

DriveWorks can be hosted on Microsoft Azure, for more information see Microsoft Azure.

More information on the PowerState and ProvisioningState fields and expected values can be found in the following Microsoft articles: