Skip to content

[Resource] 'az resource tag' fails when tagging VNET #763

Description

Running:

az resource tag -n {vnet} -g {rg} --resource-type Microsoft.Network/virtualNetworks --tags a=b

Gives the following error:

AddressSpace of the virtual network /subscriptions/.../resourceGroups/{rg}/providers/Microsoft.Network/virtualNetworks/{vnet} does not have any address prefixes in addressPrefixes array. AddressSpace and prefixes must be specified within properties object.

This seems to be a bug in the implementation of resource tag that could affect more resources besides just VNET.

Activity

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

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupResource ManagerbugThis 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