-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az resource delete --resource-group $ResourceGroupName --ids $azCliIds fails #24855
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 botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamact-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.feature-request
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 botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamact-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.feature-request
I'm trying to use delete command of az cli and pass it a list of ids built by powershell
This is the code
I get this error
The error is wrong because the ids are built from az itself.
If I take literally paste the results of $azCliIds then it works fine, i.e.
It appears if ids contain any type of quote around it the cli doesn't like it.
If $azCliIds contains a single item then it works as well