> For the complete documentation index, see [llms.txt](https://documentation.atempo.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.atempo.com/miria-4.6/admin-guide/appendix/appendix-e-additional-information-on-azure-portal-cli.md). Agents can also search and read this documentation through its [MCP server](https://documentation.atempo.com/~gitbook/mcp).

# APPENDIX E : Additional information on Azure portal/CLI

To access Azure storage with the API libadaazure, you need to collect some information:

* Storage Account: you can find it (\<storage\_account>) at the top of the left pane of the\
  storage account page (<mark style="color:blue;">Figure 49</mark>).
* Access Key: to access the access keys, you need to click on the Access keys tab on the\
  left pane of the storage account page (<mark style="color:blue;">Figure 49</mark>).

<figure><img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FTmJO4wY4MvNjcOjBT5G8%2Fimage.png?alt=media&amp;token=26051e90-c3c5-4a53-84fb-225aa806aaf4" alt=""><figcaption></figcaption></figure>

* Resource groups: You can find it on the Azure portal home page (\<resource\_group>)\
  (<mark style="color:blue;">Figure 50</mark>)

<figure><img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FzEBCKw0z0Lo9vZkINkVH%2Fimage.png?alt=media&amp;token=c3829e56-3521-44e4-b7b3-34ad22460fb2" alt=""><figcaption></figcaption></figure>

* **Subscription ID:** on the Azure portal home page (\<subscription\_id>), click on the\
  Subscription ID tab. Check then if Azure is Account admin (Figure 51) and copy the\
  Subscription ID.

<figure><img src="https://2203078701-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fw5h0P6nnTAuQFNt2ofjn%2Fuploads%2FN9hndd14VkfLAE64JTtq%2Fimage.png?alt=media&amp;token=9f61bf20-0e14-4729-aa76-9d61401d8482" alt=""><figcaption></figcaption></figure>

* For the following information, see the following procedure on how to use Azure in\
  command line:
  * Tenant ID.
  * Web app ID.
  * Web app password.

**To use Azure in command line**

1. Install Azure CLI, by following the steps detailed [here](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest\&tabs=azure-cli\&pivots=winget).
2. Enter the login: az login
3. Create a service principal:

   ```bash
   az ad sp create-for-rbac -n --role Contributor --scopes/subscriptions/<subscription_id>/resourceGroups/<resource_group>/providers/Microsoft.Storage/storageAccounts/<storage_account>
   ```

   Replace `<subscription_id>`, `<resource_group>`, and `<storage_account>` with your values.

   The response contains `appId`, `displayName`, `password`, and `tenant`:

   ```json
   {
     "appId": "415e422e-8578-4c82-8136-461436fcde34",
     "displayName": "WebAppMiria",
     "password": "meO8Q~xBqUSJLSsJW4L718yjG5Bwo98Fmawa3dzT",
     "tenant": "4f54b732-c1ab-45cb-5aa7-f529e4739924"
   }
   ```

**To enable versioning on the Azure storage account home page**

1. Click the **Overview** tab on the left pane.
2. Click on **Versioning** in the properties tab.
3. In the **Tracking section**, check the box Enable versioning for blobs.
4. Select the option **Keep all versions** in the **Enable versioning** for blobs drop-down list. This option activates a personal management of the retentions. The option **Delete versions after** would imply a default retention to the versions.
5. Check the **Enable version-level immutability support** option in the Access control section to be able to use immutability object lock.

> **Important**: The Enable version-level immutability support option can be enabled only during storage account creation.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://documentation.atempo.com/miria-4.6/admin-guide/appendix/appendix-e-additional-information-on-azure-portal-cli.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
