Skip to content

Commit f33323c

Browse files
committed
Adding more logs
1 parent 835659f commit f33323c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

samples/manage/azure-sql-db-managed-instance/attach-jumpbox/attachJumpbox.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ $scriptUrlBase = $args[1]
1212

1313
if($virtualMachineName -eq '' -or $virtualMachineName -eq $null) {
1414
$virtualMachineName = 'Jumpbox'
15+
Write-Host "VM Name: 'Jumpbox'." -ForegroundColor Green
1516
}
1617

1718
if($managementSubnetName -eq '' -or $managementSubnetName -eq $null) {
1819
$managementSubnetName = 'Management'
20+
Write-Host "Using subnet 'Management'." -ForegroundColor Green
1921
}
2022

2123
function VerifyPSVersion
@@ -177,6 +179,7 @@ $subnets = $virtualNetwork.Subnets.Name
177179

178180
If($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

0 commit comments

Comments
 (0)