azure-docs-cli icon indicating copy to clipboard operation
azure-docs-cli copied to clipboard

Surround name with double quotes in group delete command

Open TysonMN opened this issue 1 year ago • 1 comments

In my zsh terminal, the original command

% az group delete --name --no-wait

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

TysonMN avatar May 03 '24 11:05 TysonMN

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:

@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?

dbradish-microsoft avatar May 08 '24 16:05 dbradish-microsoft

I was confused by that. I put my value inside the <>.

Sorry for my confusion.

TysonMN avatar May 11 '24 06:05 TysonMN

@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.

dbradish-microsoft avatar May 13 '24 16:05 dbradish-microsoft

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.

TysonMN avatar May 13 '24 18:05 TysonMN