Azure / Azure/azure-powershell

Get-AzVirtualNetworkUsageList should return the actual current value rather than 0 for delegated subnets

Open
#21,716 5 comments 0 reactions 0 assignees View on GitHub
act-quality-productivity-squad customer-reported needs-team-attention Network - Virtual Network question Service Attention
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
3d 14h
Merged PRs (30d)
54

Description

### Description

> ### `Get-AzVirtualNetworkUsageList` returns CurrentValue as 0 when subnet is delegated

**Describe the bug**
It should return the actual value rather than 0, we cant clearly see how many ips are used by the resource when the subnet is delegated.

**To Reproduce**
run Get-AzVirtualNetworkUsageList -ResourceGroupName "xyz-rg" -Name "xyz-vnet"

**Expected behavior**
It should return the actual value in the CurrentValue property to help us identity how many resources can be deployed of similar types when the subnet is delegated

### Script or Debug output

```PowerShell
Get-AzVirtualNetworkUsageList
```

### Environment data

_No response_

### Module versions

_No response_

### Error output

```PowerShell
returns currentvalue of 0
```

Contributor guide

Open the contributing guide

Research direction

Start by running Get-AzVirtualNetworkUsageList -ResourceGroupName "xyz-rg" -Name "xyz-vnet" against a delegated subnet and inspect how CurrentValue is obtained. Compare the reported 0 with the actual resources or IP usage; done means the cmdlet returns the current delegated-subnet value instead of 0.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.