Skip to content

Commit 7cd8470

Browse files
Merge pull request #224223 from NiviShenker/StandardToPremiumScriptFix
Standard to premium script fix
2 parents 94fdf61 + d6bb20e commit 7cd8470

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

articles/firewall/premium-migrate.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,12 @@ function ValidatePolicy {
111111
exit(1)
112112
}
113113
if ($Policy.GetType().Name -ne "PSAzureFirewallPolicy") {
114-
Write-Host "Resource must be of type Microsoft.Network/firewallPolicies" -ForegroundColor Red
114+
Write-Error "Resource must be of type Microsoft.Network/firewallPolicies"
115115
exit(1)
116116
}
117117
118118
if ($Policy.Sku.Tier -eq "Premium") {
119-
Write-Host "Policy is already premium"
119+
Write-Host "Policy is already premium" -ForegroundColor Green
120120
exit(1)
121121
}
122122
}
@@ -147,9 +147,14 @@ function TransformPolicyToPremium {
147147
Name = (GetPolicyNewName -Policy $Policy)
148148
ResourceGroupName = $Policy.ResourceGroupName
149149
Location = $Policy.Location
150-
ThreatIntelMode = $Policy.ThreatIntelMode
151150
BasePolicy = $Policy.BasePolicy.Id
152-
DnsSetting = $Policy.DnsSettings
151+
ThreatIntelMode = $Policy.ThreatIntelMode
152+
ThreatIntelWhitelist = $Policy.ThreatIntelWhitelist
153+
PrivateRange = $Policy.PrivateRange
154+
DnsSetting = $Policy.DnsSettings
155+
SqlSetting = $Policy.SqlSetting
156+
ExplicitProxy = $Policy.ExplicitProxy
157+
DefaultProfile = $Policy.DefaultProfile
153158
Tag = $Policy.Tag
154159
SkuTier = "Premium"
155160
}

0 commit comments

Comments
 (0)