Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function Add-AzureWebAppSqlDatabaseContainedUser
Database = $databaseConnection.DatabaseName
Username = $databaseConnection.UserName
Password = $databaseConnection.Password
Query = $Query
Query = $query
EncryptConnection = $true
}
return Invoke-Sqlcmd @commandParameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function Remove-AzureWebAppSqlDatabaseContainedUser
Database = $databaseConnection.DatabaseName
Username = $databaseConnection.UserName
Password = $databaseConnection.Password
Query = $Query
Query = $query
EncryptConnection = $true
}
return Invoke-Sqlcmd @commandParameters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function Test-AzureWebApp
$webApp = Get-AzureWebAppWrapper -ResourceGroupName $ResourceGroupName -WebAppName $WebAppName -Slot $SlotName

# Enforcing the result to be an array so it can be indexed even if there's only one matching hostname.
$url = "${Protocol}://" + ([array]($webApp.EnabledHostNames | Where-Object { $PSItem.EndsWith('.azurewebsites.net') }))[0]
$url = "$($Protocol)://" + ([array]($webApp.EnabledHostNames | Where-Object { $PSItem.EndsWith('.azurewebsites.net') }))[0]

Write-Output ("Testing the `"$SlotName`" Slot of the Web App `"$WebAppName`" through the URL `"$url`".")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ function Get-Maintenance
{
try
{
$url = "${Protocol}://$Hostname/$APIEndpoint" + "?maintenanceName=$MaintenanceName"
$url = "$($Protocol)://$Hostname/$APIEndpoint" + "?maintenanceName=$MaintenanceName"
$authentication = 'Basic ' + [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($Username + ':' + $Password))

$result = Invoke-WebRequest -Uri $url -Method Get -ContentType 'application/json' -Headers @{ Authorization = $authentication }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Start-Maintenance
{
try
{
$url = "${Protocol}://$Hostname/$APIEndpoint" + "?maintenanceName=$MaintenanceName"
$url = "$($Protocol)://$Hostname/$APIEndpoint" + "?maintenanceName=$MaintenanceName"
$authentication = 'Basic ' + [System.Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($Username + ':' + $Password))

if ($BatchSize -lt 1)
Expand Down