Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e9a2299

Browse files
fix
1 parent 5eae488 commit e9a2299

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎samples/manage/azure-sql-db-managed-instance/prepare-subnet/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ To run this sample, you need the following prerequisites.
4242

4343
## Run this sample
4444

45-
Run the script below from either Windows or CloudShell
45+
Run the script below from either Windows or Azure Cloud Shell
4646

4747
```powershell
4848

‎samples/manage/azure-sql-db-managed-instance/prepare-subnet/prepareSubnet.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $virtualNetworkName = $parameters['virtualNetworkName']
66
$subnetName = $parameters['subnetName']
77
$force = $false
88

9-
If($args.Count > 1)
9+
If($args.Length > 1)
1010
{
1111
$force = $args[1]
1212
}
@@ -191,7 +191,7 @@ function Load-RouteTable {
191191
$subnet.RouteTable -ne $null
192192
)
193193
{
194-
$rtSegments = ($subnet.RouteTable.Id).Split("{/}", [System.StringSplitOptions]::RemoveEmptyEntries)
194+
$rtSegments = ($subnet.RouteTable.Id).Split("/", [System.StringSplitOptions]::RemoveEmptyEntries)
195195
$rtName = $rtSegments[-1].Trim()
196196
$rtResourceGroup = $rtSegments[3].Trim()
197197
$routeTable = Get-AzureRmRouteTable -ResourceGroupName $rtResourceGroup -Name $rtName

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /