question

AvadhootKhandagale-5358 avatar image
0 Votes"
AvadhootKhandagale-5358 asked AvadhootKhandagale-5358 commented

When I run the command below, it shows error bash: syntax error near unexpected token `newline' please tell what to do

az keyvault create \
--resource-group learn-2d1cd2e7-bce6-400b-b21a-88930f4837ac \
--location centralus \
--name <your-unique-vault-name>

The above code is provided by microsoft only.

azure-webappsazure-key-vault
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

bhargaviannadevara-msft avatar image
0 Votes"
bhargaviannadevara-msft answered

@AvadhootKhandagale-5358 Thanks for reaching out. It looks like you tried to run the provided command as is and the command errored out on encountering the < character.

Please replace the placeholder <your-unique-vault-name> with your actual Azure Key Vault name that you intend to create and then try again. Note that the key vault name parameter must be a string of 3 to 24 characters that can contain only numbers (0-9), letters (a-z, A-Z), and hyphens (-).

The following works fine for me:

az keyvault create \
--resource-group myResourceGroup \
--location centralus \
--name myKeyVault

Refer to this quickstart for a step-by-step guide to create an Azure Key Vault resource with Azure CLI: Quickstart: Set and retrieve a secret from Azure Key Vault using Azure CLI

Hope this helps. Do let us know if you still see issues.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.