azure-docs
azure-docs copied to clipboard
How do you create the definition.json file?
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.
- ID: 9dc95f42-25e6-42ba-a3d9-94ed896d7383
- Version Independent ID: 00936b2f-959b-b55f-60d3-deaa7bea6e17
- Content: Use system-assigned managed identities to access Azure Cosmos DB data
- Content Source: articles/cosmos-db/managed-identity-based-authentication.md
- Service: cosmos-db
- Sub-service: nosql
- GitHub Login: @seesharprun
- Microsoft Alias: sidandrews
@rickvelilla-kr Thank you for your question. We will check and update as appropriate.
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.
We are updating the article to add a note with this information:
It will also link to this article: https://learn.microsoft.com/azure/cloud-shell/using-cloud-shell-editor