Azure / Azure/azure-cli

az network manager ipam-pool update command does not support the optional parameter of --address-prefixes

Open
#31,751 2 comments 0 reactions 1 assignee Claimed by @necusjz View on GitHub
act-quality-productivity-squad Auto-Assign Azure CLI Team Network question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

az network manager ipam-pool update
https://learn.microsoft.com/en-us/cli/azure/network/manager/ipam-pool?view=azure-cli-latest#az-network-manager-ipam-pool-update

**Is your feature request related to a problem? Please describe.**

The az network manager ipam-pool update command does not support the optional parameter of --address-prefixes. --address-prefixes is important because currently other tooling (PS, portal, etc.) enable ipam pool address prefix growth, i.e. going from [10.0.0.0/16] to [10.0.0.0/15] or adding another prefix [10.0.0.0/16] -> [10.0.0.0/16, 192.168.0.0/16]. However, this behavior is not currently enabled in CLI.

**Describe the solution you'd like**

We need the az network manager ipam-pool update command to support the optional parameter of --address-prefixes.

**Describe alternatives you've considered**

Have tried multiple iterations of the following:
az network manager ipam-pool update --name "childpoolsdktest" --network-manager-name "ipam-test-nm" --resource-group "ipam-test-rg" --subscription "c9295b92-3574-4021-95a1-26c8f74f8359" --description "New Description" --add properties.addressPrefixes "[10.0.0.0/15]"

But always get:
Operation returned an invalid status 'Bad Request'

**Additional context**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.