你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzVirtualRouterAutoScaleConfiguration
Create a VirtualRouterAutoScaleConfiguration object for a Virtual Hub.
Syntax
New-AzVirtualRouterAutoScaleConfiguration
-MinCapacity <Int32>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The New-AzVirtualRouterAutoScaleConfiguration cmdlet creates a virtual hub autoscale configuration object.
Examples
Example 1
New-AzResourceGroup -Location "West US" -Name "testRG"
$virtualWan = New-AzVirtualWan -ResourceGroupName "testRG" -Name "myVirtualWAN" -Location "West US"
$autoscale = New-AzVirtualRouterAutoScaleConfiguration -MinCapacity 3
New-AzVirtualHub -VirtualWan $virtualWan -ResourceGroupName "testRG" -Name "westushub" -AddressPrefix "10.0.1.0/24" -VirtualRouterAutoScaleConfiguration $autoscale
Remove-AzVirtualHub -ResourceGroupName "testRG" -Name "westushub"
The above will create a resource group "testRG", a Virtual WAN and a Virtual Hub in West US in that resource group in Azure. The virtual hub will have the address space "10.0.1.0/24" and minimum capacity 3.
It then deletes the virtual hub using its ResourceGroupName and ResourceName.
Parameters
-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 |
-MinCapacity
The minimum number of scale units for VirtualHub Router.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None