Skip to content

Commit 0484c2e

Browse files
committed
Changes based on PR Comments
1 parent d17e316 commit 0484c2e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Network/Network/AzureFirewall/NetworkRule/NewAzureFirewallNetworkRuleCommand.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ public class NewAzureFirewallNetworkRuleCommand : NetworkBaseCmdlet
5151

5252
[Parameter(
5353
Mandatory = false,
54-
HelpMessage = "The destination FQDNs of the rule")]
54+
HelpMessage = "The destination FQDN of the rule")]
5555
[ValidateNotNullOrEmpty]
56-
public string[] DestinationFqdns { get; set; }
56+
public string[] DestinationFqdn { get; set; }
5757

5858
[Parameter(
5959
Mandatory = true,
@@ -76,22 +76,22 @@ public override void Execute()
7676
{
7777
base.Execute();
7878

79-
if (DestinationFqdns != null)
79+
if (DestinationFqdn != null)
8080
{
81-
foreach (string fqdn in DestinationFqdns)
81+
foreach (string fqdn in DestinationFqdn)
8282
{
8383
ValidateIsFqdn(fqdn);
8484
}
8585
}
8686

8787
// Only one of DestinationAddress or DestinationFqdns is allowed
88-
if ((DestinationAddress != null) && (DestinationFqdns != null))
88+
if ((DestinationAddress != null) && (DestinationFqdn != null))
8989
{
9090
throw new ArgumentException("Both DestinationAddress and DestinationFqdns not allowed");
9191
}
9292

9393
// One of DestinationAddress or DestinationFqdns must be present
94-
if ((DestinationAddress == null) && (DestinationFqdns == null))
94+
if ((DestinationAddress == null) && (DestinationFqdn == null))
9595
{
9696
throw new ArgumentException("Either DestinationAddress or DestinationFqdns is required");
9797
}
@@ -103,7 +103,7 @@ public override void Execute()
103103
Protocols = this.Protocol?.ToList(),
104104
SourceAddresses = this.SourceAddress?.ToList(),
105105
DestinationAddresses = this.DestinationAddress?.ToList(),
106-
DestinationFqdns = this.DestinationFqdns?.ToList(),
106+
DestinationFqdns = this.DestinationFqdn?.ToList(),
107107
DestinationPorts = this.DestinationPort?.ToList()
108108
};
109109
WriteObject(networkRule);

0 commit comments

Comments
 (0)