Skip to content
Open
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
4 changes: 2 additions & 2 deletions ApplyAHUB.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $AzureVM = @()
$AzureSQLVM = @()
$AzureSQLDB = @()
$AzureSQLMIList = @()

Set-Item Env:\SuppressAzurePowerShellBreakingChangeWarnings "true"
#Iterate through all subscriptions
foreach ($azSub in $azSubs)
{
Expand Down Expand Up @@ -83,7 +83,7 @@ foreach ($azSub in $azSubs)
$AzureSQLServerDatabases = Get-AzSqlDatabase -ServerName $AzureSQLServer.Name -ResourceGroupName $AzureSQLServer.ResourceGroupName | Where-Object DatabaseName -NE "master"
foreach ($AzureSQLDatabase in $AzureSQLServerDatabases)
{
if ($AzureSQLDatabase.LicenseType -cne "BasePrice")
if ($AzureSQLDatabase.LicenseType -EQ "LicenseIncluded")
{
$string = "[UPDATE] Updating Azure SQL Database with AHUB: "
$string + $AzureSQLDatabase.DatabaseName + $dot
Expand Down