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

How do you create the definition.json file?

Open rickvelilla-kr opened this issue 1 year ago • 1 comments

How do you create a json file when you are in the Azure CLI? The step is assumed, but not expounded upon. My CLI session is ephemeral so I don't think I can just upload a file. Does this have to be done using the bash version of the CLI?


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

rickvelilla-kr avatar Jun 02 '23 20:06 rickvelilla-kr

@rickvelilla-kr Thank you for your question. We will check and update as appropriate.

Oury-MSFT avatar Jun 02 '23 22:06 Oury-MSFT

Good point @rickvelilla-kr. If you're using a tool like Azure Cloud Shell you can either use touch definition.json to create a file in Bash.

Or you could use code . to open a Visual Studio Code -like editor directly in the Cloud Shell. You can edit or add files there. If you want to persist your files, they need to be in the ./clouddrive folder.

seesharprun avatar Jun 05 '23 14:06 seesharprun

We are updating the article to add a note with this information:

image

It will also link to this article: https://learn.microsoft.com/azure/cloud-shell/using-cloud-shell-editor

seesharprun avatar Jun 05 '23 16:06 seesharprun