Get-VBRAzureVM
Short Description
Returns Azure VMs.
Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License
Syntax
|
Get-VBRAzureVM -Subscription <VBRAzureSubscription> -Location <VBRAzureLocation> [<CommonParameters>] |
Detailed Description
This cmdlet returns Azure VMs.
Parameters
|
Parameter |
Description |
Type |
Required |
Position |
Accept Pipeline Input |
|---|---|---|---|---|---|
|
Location |
Specifies Microsoft Azure region.
Accepts the |
True |
Named |
False |
|
|
Subscription |
Specifies subscriptions associated with a Microsoft Azure account.
Accepts the |
True |
Named |
False |
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.
Output Object
Examples
Getting Azure VMs
This example shows how to get Azure VMs.
|
$account = Get-VBRAzureAccount -Type ResourceManager -Name "AzureRM@tech.com" $subscription = Get-VBRAzureSubscription -Account $account $location = Get-VBRAzureLocation -Subscription $subscription $VMs = Get-VBRAzureVM -Subscription $subscription -Location $location |
Perform the following steps:
- Run the
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify theTypeand theNameparameter values. Save the result to the$accountvariable. - Run the
Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the$accountvariable as theAccountparameter value. Save the result to the$subscriptionvariable. - Run the
Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription. cmdlet. Set the$subscriptionvariable as theSubscriptionparameter value. Save the result to the$locationvariable. - Run the
Get-VBRAzureVMcmdlet. Set the$subscriptionvariable as theSubscriptionparameter value. Set the$locationvariable as theLocationparameter value. Save the result to the$VMsvariable.
Related Commands
Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication.Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account.Get-VBRAzureLocationReturns geographic locations of Microsoft Azure datacenters available for a subscription.