Azure / Azure/azure-powershell

Add-AzKeyVaultNetworkRule adds duplicated IPs

Open
#20,605 5 comments 0 reactions 0 assignees View on GitHub
bug customer-reported Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description

Add-AzKeyVaultNetworkRule adds duplicated IPs into the firewall rule while Azure portal doesn't allow IP overlap, can you please enable the overlap IP check in Add-AzKeyVaultNetworkRule.

### Issue script & Debug output

```PowerShell
After the duplicate IPs added into the AKV firewall rule by Add-AzKeyVaultNetworkRule, I got some problem to cleanup the duplicated IPs from azure portal as well, the IPs cannot be removed even it tells the change applied successfully.
```

### Environment data

```PowerShell
n/a
```

### Module versions

```PowerShell
n/a
```

### Error output

```PowerShell
n/a
```

Contributor guide

Open the contributing guide

Research direction

Start at Add-AzKeyVaultNetworkRule and trace how it handles network-rule IPs and validation. Reproduce the duplicate-IP scenario described in the issue, then verify that overlapping IPs are rejected consistently with the Azure portal and that the resulting firewall rule does not contain duplicates.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp, powershell
Domain
cloud, networking, security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.