Skip to content

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

Open
@bbaabemhp

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamNetworkcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions