mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
fix
This commit is contained in:
@@ -42,7 +42,7 @@ To run this sample, you need the following prerequisites.
|
||||
|
||||
## Run this sample
|
||||
|
||||
Run the script below from either Windows or CloudShell
|
||||
Run the script below from either Windows or Azure Cloud Shell
|
||||
|
||||
```powershell
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ $virtualNetworkName = $parameters['virtualNetworkName']
|
||||
$subnetName = $parameters['subnetName']
|
||||
$force = $false
|
||||
|
||||
If($args.Count > 1)
|
||||
If($args.Length > 1)
|
||||
{
|
||||
$force = $args[1]
|
||||
}
|
||||
@@ -191,7 +191,7 @@ function Load-RouteTable {
|
||||
$subnet.RouteTable -ne $null
|
||||
)
|
||||
{
|
||||
$rtSegments = ($subnet.RouteTable.Id).Split("{/}", [System.StringSplitOptions]::RemoveEmptyEntries)
|
||||
$rtSegments = ($subnet.RouteTable.Id).Split("/", [System.StringSplitOptions]::RemoveEmptyEntries)
|
||||
$rtName = $rtSegments[-1].Trim()
|
||||
$rtResourceGroup = $rtSegments[3].Trim()
|
||||
$routeTable = Get-AzureRmRouteTable -ResourceGroupName $rtResourceGroup -Name $rtName
|
||||
|
||||
Reference in New Issue
Block a user