Azure / Azure/azure-cli-extensions

Is it possible to create NIC with dynamic private IP allocation?

Open
#8,265 1 comment 0 reactions 1 assignee Claimed by @necusjz View on GitHub
Auto-Assign Azure CLI Team customer-reported Network question
Dominant language
Python
Stars
454
Forks
1.7k
Avg merge
2d 19h
Merged PRs (30d)
64

Description

### Describe the bug

Not a bug, but I didn't see any possibility to create a Nic with dynamic allocation of private IP Address

### Related command

az network nic create

### Errors

No option --private-ip-address-allocation Dynamic

### Issue script & Debug output

az network nic create \
--resource-group "$RESOURCE_GROUP" \
--name "$NIC_NAME" \
--vnet-name "$VNET_NAME" \
--subnet "$SUBNET_NAME" \
--network-security-group "$NSG_NAME" \
--location "$LOCATION" \
--ip-forwarding false \
--private-ip-address "" \
--private-ip-address-allocation Dynamic

### Expected behavior

It should create Nic with dynamic private ip address

### Environment Summary

azure-cli 2.65.0

### Additional context

_No response_

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.