Skip to content

[Network] az network nic create fails #758

Description

Tried creating a NIC for a subnet which did not exist.

az network nic create -g vmrg -n nic2 --vnet-name vnet1 --subnet subnet1

'new' is not valid value for enum <enum 'subnetType'>

The help text reads:

Arguments
    --name -n           [Required]: Name of the new NIC.
    --resource-group -g [Required]: Name of resource group.
    --subnet            [Required]: Name or ID of the resource.  Creates new by default.  Use "" for
                                    none.

It is clear from looking at the ARM template that the subnet must be an existing subnet. It looks like an issue with parameter registration.

Activity

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

Metadata

Metadata

Labels

Networkaz network vnet/lb/nic/dns/etc...bugThis issue requires a change to an existing behavior in the product in order to be resolved.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions