File tree Expand file tree Collapse file tree
samples/manage/azure-sql-db-managed-instance/attach-jumpbox Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,10 +12,12 @@ $scriptUrlBase = $args[1]
1212
1313if ($virtualMachineName -eq ' ' -or $virtualMachineName -eq $null ) {
1414 $virtualMachineName = ' Jumpbox'
15+ Write-Host " VM Name: 'Jumpbox'." - ForegroundColor Green
1516}
1617
1718if ($managementSubnetName -eq ' ' -or $managementSubnetName -eq $null ) {
1819 $managementSubnetName = ' Management'
20+ Write-Host " Using subnet 'Management'." - ForegroundColor Green
1921}
2022
2123function VerifyPSVersion
@@ -177,6 +179,7 @@ $subnets = $virtualNetwork.Subnets.Name
177179
178180If ($false -eq $subnets.Contains ($managementSubnetName ))
179181{
182+ Write-Host " Creating subnet $managementSubnetName ($managementSubnetPrefix ) in the VNet..." - ForegroundColor Green
180183 $managementSubnetPrefix = CalculateNextAddressPrefix $virtualNetwork 28
181184
182185 $virtualNetwork.AddressSpace.AddressPrefixes.Add ($managementSubnetPrefix )
@@ -201,4 +204,4 @@ $templateParameters = @{
201204 administratorLoginPassword = $administratorLoginPassword
202205}
203206
204- New-AzureRmResourceGroupDeployment - ResourceGroupName $resourceGroupName - TemplateUri ($scriptUrlBase + ' /azuredeploy.json?t=' + [DateTime ]::Now.Ticks) - TemplateParameterObject $templateParameters
207+ # New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateUri ($scriptUrlBase+'/azuredeploy.json?t='+ [DateTime]::Now.Ticks) -TemplateParameterObject $templateParameters
You can’t perform that action at this time.
0 commit comments