azure-docs-cli
azure-docs-cli copied to clipboard
Surround name with double quotes in group delete command
In my zsh terminal, the original command
% az group delete --name
gives this error
zsh: no such file or directory: msdocs-tutorial-rg-00000000
while the command
% az group delete --name "msdocs-tutorial-rg-00000000" --no-wait
gives the confirmation prompt as indicated by the tip
Are you sure you want to perform this operation? (y/n): y
Learn Build status updates of commit 8d0ea1e:
:white_check_mark: Validation status: passed
| File | Status | Preview URL | Details |
|---|---|---|---|
| docs-ref-conceptual/get-started-tutorial-4-delete-resources.md | :white_check_mark:Succeeded | View |
For more details, please refer to the build report.
For any questions, please:
- Try searching the learn.microsoft.com contributor guides
- Post your question in the Learn support channel
@TysonMN, the <> are intended to indicate "please put your actual value here", but I'm thinking that the absence of double quotes is incorrectly assumed, and this is the problem you are trying to fix?
I was confused by that. I put my value inside the <>.
Sorry for my confusion.
@TysonMN, just to be clear, if your resource group name is "msdocs-rg-12345", your delete command would be ...
az group delete --name msdocs-tutorial-rg-12345 --no-wait
...or with quotes...
az group delete --name "msdocs-tutorial-rg-12345" --no-wait
Thanks for working through the tutorial. We appreciate your feedback.
Yep, I got that working now. I found the tutorial very helpful. My goal is to write a script that can recreate all of the Azure resources that we have created through the GUI. I expect I will be able to achieve that goal without too much difficulty.
The only thing that is unclear via the CLI (and can also be unclear in the GUI) is how much each SKU choice costs. The list of all Azure CLI commands clearly shows what SKU values for possible (for all the create commands that I have looked at so far), but I don't know which one to pick. For my current testing, I would prefer to pick the least expensive option, and then when we want to use the created resources for real, then we pick SKU values to match are expected workloads. However, I don't see any easy way to know which SKU is the least expensive.