Editar

Partilhar via


New-AzNetworkVirtualAppliance

Create a Network Virtual Appliance resource.

Syntax

New-AzNetworkVirtualAppliance
   -Name <String>
   -ResourceGroupName <String>
   -Location <String>
   -VirtualHubId <String>
   -Sku <PSVirtualApplianceSkuProperties>
   -VirtualApplianceAsn <Int32>
   [-Identity <PSManagedServiceIdentity>]
   [-BootStrapConfigurationBlob <String[]>]
   [-CloudInitConfigurationBlob <String[]>]
   [-CloudInitConfiguration <String>]
   [-Tag <Hashtable>]
   [-Force]
   [-AsJob]
   [-AdditionalNic <PSVirtualApplianceAdditionalNicProperties[]>]
   [-InternetIngressIp <PSVirtualApplianceInternetIngressIpsProperties[]>]
   [-NetworkProfile <PSVirtualApplianceNetworkProfile>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetworkVirtualAppliance
   -ResourceId <String>
   -Location <String>
   -VirtualHubId <String>
   -Sku <PSVirtualApplianceSkuProperties>
   -VirtualApplianceAsn <Int32>
   [-Identity <PSManagedServiceIdentity>]
   [-BootStrapConfigurationBlob <String[]>]
   [-CloudInitConfigurationBlob <String[]>]
   [-CloudInitConfiguration <String>]
   [-Tag <Hashtable>]
   [-Force]
   [-AsJob]
   [-AdditionalNic <PSVirtualApplianceAdditionalNicProperties[]>]
   [-InternetIngressIp <PSVirtualApplianceInternetIngressIpsProperties[]>]
   [-NetworkProfile <PSVirtualApplianceNetworkProfile>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzNetworkVirtualAppliance command creates a Network Virtual Appliance(NVA) resource in Azure.

Examples

Example 1

$sku=New-AzVirtualApplianceSkuProperty -VendorName "barracudasdwanrelease" -BundledScaleUnit 1 -MarketPlaceVersion 'latest'

$hub=Get-AzVirtualHub -ResourceGroupName testrg -Name hub

$nva=New-AzNetworkVirtualAppliance -ResourceGroupName testrg -Name nva -Location eastus2 -VirtualApplianceAsn 1270 -VirtualHubId $hub.Id -Sku $sku -CloudInitConfiguration "echo Hello World!"

Creates a new Network Virtual Appliance resource in resource group: testrg.

Example 2

$sku=New-AzVirtualApplianceSkuProperty -VendorName "ciscosdwantest" -BundledScaleUnit 4 -MarketPlaceVersion '17.6.03'

$hub=Get-AzVirtualHub -ResourceGroupName testrg -Name hub

$additionalNic=New-AzVirtualApplianceAdditionalNicProperty -NicName "sdwan" -HasPublicIp $true

$nva=New-AzNetworkVirtualAppliance -ResourceGroupName testrg -Name nva -Location eastus2 -VirtualApplianceAsn 65222 -VirtualHubId $hub.Id -Sku $sku -CloudInitConfiguration "echo Hello World!" -AdditionalNic $additionalNic

Creates a new Network Virtual Appliance resource in resource group: testrg with additional nic "sdwan" and a public IP attached to "sdwan" nic.

Example 3

$sku=New-AzVirtualApplianceSkuProperty -VendorName "ciscosdwantest" -BundledScaleUnit 4 -MarketPlaceVersion '17.6.03'
$hub=Get-AzVirtualHub -ResourceGroupName testrg -Name hub
$id1 = "/subscriptions/{subscriptionid}/resourceGroups/testrg/providers/Microsoft.Network/publicIPAddresses/{publicip1name}"
$pip2 = Get-AzPublicIpAddress -Name publicip2name
$id2 = $pip2.Id
$IngressIps=New-AzVirtualApplianceInternetIngressIpsProperty -InternetIngressPublicIpId $id1, $id2
$nva=New-AzNetworkVirtualAppliance -ResourceGroupName testrg -Name nva -Location eastus2 -VirtualApplianceAsn 65222 -VirtualHubId $hub.Id -Sku $sku -CloudInitConfiguration "echo Hello World!" -InternetIngressIp $IngressIps

Creates a new Network Virtual Appliance resource in resource group: testrg with 2 Internet Ingress Public IPs attached to it.

Example 4

$sku = New-AzVirtualApplianceSkuProperty -VendorName "ciscosdwantest" -BundledScaleUnit 4 -MarketPlaceVersion '17.6.03'
$hub = Get-AzVirtualHub -ResourceGroupName testrg -Name hub

$ipConfig1 = New-AzVirtualApplianceIpConfiguration -Name "publicnicipconfig" -Primary $true
$ipConfig2 = New-AzVirtualApplianceIpConfiguration -Name "publicnicipconfig-2" -Primary $false
$nicConfig1 = New-AzVirtualApplianceNetworkInterfaceConfiguration -NicType "PublicNic" -IpConfiguration $ipConfig1, $ipConfig2

$ipConfig3 = New-AzVirtualApplianceIpConfiguration -Name "privatenicipconfig" -Primary $true
$ipConfig4 = New-AzVirtualApplianceIpConfiguration -Name "privatenicipconfig-2" -Primary $false
$nicConfig2 = New-AzVirtualApplianceNetworkInterfaceConfiguration -NicType "PrivateNic" -IpConfiguration $ipConfig3, $ipConfig4
$networkProfile = New-AzVirtualApplianceNetworkProfile -NetworkInterfaceConfiguration $nicConfig1, $nicConfig2

$nva = New-AzNetworkVirtualAppliance -ResourceGroupName testrg -Name nva -Location eastus2 -VirtualApplianceAsn 65222 -VirtualHubId $hub.Id -Sku $sku -CloudInitConfiguration "echo Hello World!" -NetworkProfile $networkProfile

Creates a new Network Virtual Appliance resource in resource group: testrg with network profile containing 2 IP configurations on both network interfaces.

Parameters

-AdditionalNic

The AdditionalNic Properties of the Virtual Appliance.

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

-AsJob

Run cmdlet in the background

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

-BootStrapConfigurationBlob

The Bootstrap configuration blob URL.

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

-CloudInitConfiguration

The Cloudinit configuration as plain text.

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

-CloudInitConfigurationBlob

The Cloudinit configuration blob storage URL.

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Force

Do not ask for confirmation if you want to overwrite a resource

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

-Identity

The Managed identity.

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

-InternetIngressIp

The Internet Ingress IPs to be attached to the Virtual Appliance.

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

-Location

The public IP address location.

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

-Name

The resource name.

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

-NetworkProfile

The Network Profile to be attached to the Virtual Appliance.

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

-ResourceGroupName

The resource group name.

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

-ResourceId

The resource Id.

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

-Sku

The Sku of the Virtual Appliance.

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

-Tag

A hashtable which represents resource tags.

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

-VirtualApplianceAsn

The ASN number of the Virtual Appliance.

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

-VirtualHubId

The Resource Id of the Virtual Hub.

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

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

PSVirtualApplianceSkuProperties

Int32

PSManagedServiceIdentity

String[]

Hashtable

Outputs

PSNetworkVirtualAppliance