Skip to content

Commit

Permalink
Removed maximum number for IpAddressRange and `VirtualNetworkResour…
Browse files Browse the repository at this point in the history
…ceId` in `*-AzKeyVaultNetworkRuleSet*` (#22192)

* Update KeyVaultNetworkRuleSetBase.cs

* Update NewAzureKeyVaultNetworkRuleSetObject.cs

* Update ChangeLog.md
  • Loading branch information
BethanyZhou authored Jul 5, 2023
1 parent 6ed31c8 commit 3b70692
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/KeyVault/KeyVault/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- Additional information about change #1
-->
## Upcoming Release
* Removed maximum number for `IpAddressRange` and `VirtualNetworkResourceId` in `*-AzKeyVaultNetworkRuleSet*` from client side. [#22137]

## Version 4.10.0
* Added breaking change announcement for parameter `SoftDeleteRetentionInDays` in `New-AzKeyVaultManagedHsm`. The parameter `SoftDeleteRetentionInDays` is becoming mandatory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ public class KeyVaultNetworkRuleSetBase : KeyVaultManagementCmdletBase
/// </summary>
[Parameter(Mandatory = false,
HelpMessage = "Specifies allowed network IP address range of network rule.")]
[ValidateCount(0, 127)]
public string[] IpAddressRange { get; set; }

/// <summary>
/// Virtual network resource IDs for network rule set
/// </summary>
[Parameter(Mandatory = false,
HelpMessage = "Specifies allowed virtual network resource identifier of network rule.")]
[ValidateCount(0, 127)]
public string[] VirtualNetworkResourceId { get; set; }

/// <summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ public class NewAzureKeyVaultNetworkRuleSetObject : KeyVaultManagementCmdletBase

[Parameter(Mandatory = false,
HelpMessage = "Specifies allowed network IP address range of network rule.")]
[ValidateCount(0, 127)]
[ValidateNotNull]
public string[] IpAddressRange { get; set; }

[Parameter(Mandatory = false,
HelpMessage = "Specifies allowed virtual network resource identifier of network rule.")]
[ValidateCount(0, 127)]
[ValidateNotNull]
public string[] VirtualNetworkResourceId { get; set; }

Expand All @@ -62,4 +60,4 @@ public override void ExecuteCmdlet()
));
}
}
}
}

0 comments on commit 3b70692

Please sign in to comment.