Help Center
Choose product document...
Veeam Backup & Replication 9.5
PowerShell Reference

Get-VBRAzureVirtualNetwork

Short Description

Returns Microsoft Azure virtual networks available for a subscription.

Applies to

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Get-VBRAzureVirtualNetwork -Subscription <VBRAzureSubscription> [-Name <string[]>]  [<CommonParameters>]

Detailed Description

This cmdlet returns virtual networks available for a Microsoft Azure subscription.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Subscription

Specifies the subscription. The cmdlet will return virtual networks associated with this subscription.

True

Named

True (ByValue,
ByProperty
Name)

False

Name

Specifies the array of names. The cmdlet will return virtual networks that match the specified names.

False

Named

False

True

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information about common parameters, see http://go.microsoft.com/fwlink/p/?LinkID=113216.

Return Type

VBRAzureVirtualNetwork

Example 1

This example shows how to get all virtual networks associated with a subscription.

  1. Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
  2. Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save it to the $subscription variable.
  3. Run Get-VBRAzureVirtualNetwork with the $subscription variable.

PS C:\PS> $account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"

PS C:\PS> $subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

PS C:\PS> Get-VBRAzureVirtualNetwork -Subscription $subscription

Example 2

This example shows how to get a virtual network by the virtual network name.

  1. Run Get-VBRAzureAccount to get the account. Save it to the $account variable.
  2. Run Get-VBRAzureSubscription with the $account variable to get the subscription. Save the subscription to the $subscription variable.
  3. Run Get-VBRAzureVirtualNetwork with the $subscription variable. Specify the name of the virtual network you want to get.

PS C:\PS> $account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"

PS C:\PS> $subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

PS C:\PS> Get-VBRAzureVirtualNetwork -Subscription $subscription -Name "VeeamInternalNetwork"

Related Commands

Get-VBRAzureSubscription

Veeam Large Logo

User Guide for VMware vSphere

User Guide for Microsoft Hyper-V

Enterprise Manager User Guide

Veeam Cloud Connect Guide

Veeam Backup Explorers User Guide

PowerShell Reference

RESTful API Reference

Veeam Backup FREE Edition User Guide

Veeam Backup for Microsoft Office 365

Veeam ONE Documentation

Veeam Agent for Windows Documentation

Veeam Agent for Linux Documentation

Veeam Management Pack Documentation