@@ -98,6 +98,11 @@ public class SetAzureFirewallPolicyCommand : AzureFirewallPolicyBaseCmdlet
98
98
HelpMessage = "The DNS Setting" ) ]
99
99
public PSAzureFirewallPolicyDnsSettings DnsSetting { get ; set ; }
100
100
101
+ [ Parameter (
102
+ Mandatory = false ,
103
+ HelpMessage = "The SQL related setting" ) ]
104
+ public PSAzureFirewallPolicySqlSettings SqlSetting { get ; set ; }
105
+
101
106
[ Parameter (
102
107
Mandatory = true ,
103
108
ValueFromPipelineByPropertyName = true ,
@@ -231,6 +236,7 @@ public override void Execute()
231
236
this . ThreatIntelWhitelist = this . IsParameterBound ( c => c . ThreatIntelWhitelist ) ? ThreatIntelWhitelist : InputObject . ThreatIntelWhitelist ;
232
237
this . BasePolicy = this . IsParameterBound ( c => c . BasePolicy ) ? BasePolicy : ( InputObject . BasePolicy != null ? InputObject . BasePolicy . Id : null ) ;
233
238
this . DnsSetting = this . IsParameterBound ( c => c . DnsSetting ) ? DnsSetting : ( InputObject . DnsSettings != null ? InputObject . DnsSettings : null ) ;
239
+ this . SqlSetting = this . IsParameterBound ( c => c . SqlSetting ) ? SqlSetting : ( InputObject . SqlSettings != null ? InputObject . SqlSettings : null ) ;
234
240
this . IntrusionDetection = this . IsParameterBound ( c => c . IntrusionDetection ) ? IntrusionDetection : ( InputObject . IntrusionDetection != null ? InputObject . IntrusionDetection : null ) ;
235
241
this . TransportSecurityName = this . IsParameterBound ( c => c . TransportSecurityName ) ? TransportSecurityName : ( InputObject . TransportSecurity ? . CertificateAuthority != null ? InputObject . TransportSecurity . CertificateAuthority . Name : null ) ;
236
242
this . TransportSecurityKeyVaultSecretId = this . IsParameterBound ( c => c . TransportSecurityKeyVaultSecretId ) ? TransportSecurityKeyVaultSecretId : ( InputObject . TransportSecurity ? . CertificateAuthority != null ? InputObject . TransportSecurity . CertificateAuthority . KeyVaultSecretId : null ) ;
@@ -248,6 +254,7 @@ public override void Execute()
248
254
ThreatIntelWhitelist = this . ThreatIntelWhitelist ,
249
255
BasePolicy = this . BasePolicy != null ? new Microsoft . Azure . Management . Network . Models . SubResource ( this . BasePolicy ) : null ,
250
256
DnsSettings = this . DnsSetting ,
257
+ SqlSettings = this . SqlSetting ,
251
258
PrivateRange = this . PrivateRange
252
259
} ;
253
260
@@ -271,6 +278,7 @@ public override void Execute()
271
278
ThreatIntelWhitelist = this . ThreatIntelWhitelist ,
272
279
BasePolicy = BasePolicy != null ? new Microsoft . Azure . Management . Network . Models . SubResource ( BasePolicy ) : null ,
273
280
DnsSettings = this . DnsSetting ,
281
+ SqlSettings = this . SqlSetting ,
274
282
PrivateRange = this . PrivateRange
275
283
} ;
276
284
0 commit comments