Skip to content

[ResourceManager] Unable to delete a resource with az resource delete #2695

@tjprescott

Description

@tjprescott

As reported in #2694, I was unable to delete a lock using the az lock delete command. However, since this is an Azure resource, I should be able to delete it using the az resource delete command as a workaround. However, when I tried, I got the following result:

az resource delete --id /subscriptions/xxx-xxx/resourceGroups/tjp-lock/providers/Microsoft.Network/virtualNetworks/vnet1/providers/Microsoft.Authorization/locks/VnetLock

No registered resource provider found for location 'westus' and API version '2017-03-01' for type 'locks'. The supported api-versions are '2015-01-01, 2015-05-01-preview, 2015-06-01, 2016-09-01, 2017-04-01'. The supported locations are ''.

Metadata

Metadata

Assignees

No one assigned

    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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions