あなたは次のようなコマンドを使用して、すべてのルート名を取得できます。
$table = Get-AzureRmRouteTable -ResourceGroupName "TestGP" -Name "routetable"
# All the routes name will be stored in $routes
$routes = @()
foreach ($routeName in $table.Routes)
{
$routes += $i.Name
}
# Custom code here
その後することができますループ路線名や更新のルートのように:
foreach ($routeName in $routes)
{
Set-AzureRmRouteConfig -Name $routeName -RouteTable $table -AddressPrefix <address prefix> -NextHopType <type>
}
# Sets the goal state for route table
Set-AzureRmRouteTable -RouteTable $table
パーフェクト、私が探していただけのものを、ありがとう! –