-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az lock create , On sql database causes error #23218
Copy link
Copy link
Open
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Milestone
Metadata
Metadata
Assignees
Labels
ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAuto assign by botService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-identity-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Describe the bug
I tried to create a cannotdeletelock on an sql database.
It works with Powershell New-AzResourceLock but not with azure cli.
Command Name
az lock createErrors:
To Reproduce:
Use this command with an existing sql database.
az lock create --name <lockName> --resource-group <rgName> --lock-type CanNotDelete --resource <servername>/<dbname> --resource-type Microsoft.Sql/servers/databasesExpected Behavior
Creates a lock on the sql db
Environment Summary
Additional Context