File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,12 @@ function ValidatePolicy {
111
111
exit(1)
112
112
}
113
113
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"
115
115
exit(1)
116
116
}
117
117
118
118
if ($Policy.Sku.Tier -eq "Premium") {
119
- Write-Host "Policy is already premium"
119
+ Write-Host "Policy is already premium" -ForegroundColor Green
120
120
exit(1)
121
121
}
122
122
}
@@ -147,9 +147,14 @@ function TransformPolicyToPremium {
147
147
Name = (GetPolicyNewName -Policy $Policy)
148
148
ResourceGroupName = $Policy.ResourceGroupName
149
149
Location = $Policy.Location
150
- ThreatIntelMode = $Policy.ThreatIntelMode
151
150
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
153
158
Tag = $Policy.Tag
154
159
SkuTier = "Premium"
155
160
}
You can’t perform that action at this time.
0 commit comments