Get-VBRAzureVirtualNetworkSubnet

Short Description

Returns Microsoft Azure virtual network subnets available for a subscription.

Platform: VMware, Hyper-V

Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VBRAzureVirtualNetworkSubnet -Network <VBRAzureVirtualNetwork> [-Name <String[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns virtual network subnets available for a Microsoft Azure subscription.

Important

This cmdlet does not support Microsoft Azure accounts with the Azure Service Manager type of a subscription (ASM, also known as a "classic" type subscription).

Parameters

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Name

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

String[]

False

Named

False

Network

Specifies the virtual network. The cmdlet will return subnets of this virtual network.

VBRAzureVirtualNetwork

True

Named

True (ByPropertyName, ByValue)

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see Microsoft Docs.

Output Object

VBRAzureNetworkSubnet

Examples

Get-VBRAzureVirtualNetworkSubnetExample 1. Getting All Virtual Network Subnets Available for Subscription

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

$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"

$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

$network = Get-VBRAzureVirtualNetwork -Subscription $subscription -Name "VeeamInternalNetwork"

Get-VBRAzureVirtualNetworkSubnet -Network $network

Perform the following steps:

  1. Run the Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save it to the $account variable.
  2. Run the Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save it to the $subscription variable.
  3. Run the Get-VBRAzureVirtualNetworkReturns Microsoft Azure virtual networks available for a subscription. cmdlet. Set the $subscription variable as the Subscription parameter value. Save it to the $network variable.
  4. Run the Get-VBRAzureVirtualNetworkSubnet cmdlet. Set the $network variable as the Network parameter value.

Get-VBRAzureVirtualNetworkSubnetExample 2. Getting Virtual Network Subnet by Name

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

$account = Get-VBRAzureAccount -Name "RestoreToAzureRM@Veeam.com"

$subscription = Get-VBRAzureSubscription -Account $account -Name "VeeamDirectRestore2Azure"

$network = Get-VBRAzureVirtualNetwork -Subscription $subscription -Name "VeeamInternalNetwork"

Get-VBRAzureVirtualNetworkSubnet -Network $network -Name "VeeamInternalSubnet"

Perform the following steps:

  1. Run the Get-VBRAzureAccountReturns Microsoft Azure accounts added to Veeam Backup & Replication. cmdlet. Specify the Name parameter value. Save it to the $account variable.
  2. Run the Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account. cmdlet. Set the $account variable as the Account parameter value. Specify the Name parameter value. Save it to the $subscription variable.
  3. Run the Get-VBRAzureVirtualNetworkReturns Microsoft Azure virtual networks available for a subscription. cmdlet. Set the $subscription variable as the Subscription parameter value. Save it to the $network variable.
  4. Run the Get-VBRAzureVirtualNetworkSubnet cmdlet. Set the $network variable as the Network parameter value. Specify the Name parameter value.

Get-VBRAzureSubscriptionReturns subscriptions associated with a Microsoft Azure account.

Page updated 2026-08-19

Page content applies to build 13.1.1.18