New-AzureRemoteAppVNet

Creates an Azure RemoteApp virtual network.

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Azure Service Manager (ASM) APIs. This legacy PowerShell module isn't recommended when creating new resources since ASM is scheduled for retirement. For more information, see Azure Service Manager retirement.

The Az PowerShell module is the recommended PowerShell module for managing Azure Resource Manager (ARM) resources with PowerShell.

Syntax

New-AzureRemoteAppVNet
   -VNetName <String>
   -VirtualNetworkAddressSpace <String[]>
   -LocalNetworkAddressSpace <String[]>
   -DnsServerIpAddress <String[]>
   -VpnDeviceIpAddress <String>
   [-Location] <String>
   -GatewayType <GatewayType>
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

The New-AzureRemoteAppVNet cmdlet creates an Azure RemoteApp virtual network.

Examples

Example 1: Create a virtual network

PS C:\> New-AzureRemoteAppVnet -VNetName "ContosoVNet" -DnsServerIpAddress "192.168.0.5" -LocalNetworkAddressSpace "192.168.0.0/24" -Location "Central US" -VirtualNetworkAddressSpace "10.10.0.0/24" -VpnDeviceIpAddress "131.107.33.200" -GatewayType StaticRouting

TrackingId

----------

b0ca9d1b-d1b9-4f24-9a08-5e021926587f

This command creates a virtual network named ContosoVNet.

To determine the status of the operation, use the Get-AzureRemoteAppOperationResult cmdlet with the tracking ID that this cmdlet returns.

Parameters

-DnsServerIpAddress

Specifies an array of the IPv4 addresses of the DNS servers.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-GatewayType

Specifies the type of gateway routing to use. The acceptable values for this parameter are: StaticRouting or DynamicRouting.

Type:GatewayType
Accepted values:StaticRouting, DynamicRouting
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-LocalNetworkAddressSpace

Specifies an array of strings that specify the local network address space, in Classless Interdomain Routing (CIDR) notation. This address space must not overlap with the virtual network address space that the VirtualNetworkAddressSpace parameter specifies.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Location

Specifies the location in which to create the virtual network.

Type:String
Position:2
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type:AzureSMProfile
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VirtualNetworkAddressSpace

Specifies an array of string that specify the virtual network address space in CIDR notation. This must be in the private IP address range and cannot overlap with the local network address space that the LocalNetworkAddressSpace parameter specifies.

Type:String[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VNetName

Specifies the name of the Azure RemoteApp virtual network.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-VpnDeviceIpAddress

Specifies the address of the virtual private network (VPN) device. This must be a public-facing address.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False