> 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/miria-4.6-fr/guide-dadministration/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).

# ANNEXE E : Informations complémentaires sur le portail/la CLI Azure

Pour accéder au stockage Azure avec l'API libadaazure, vous devez collecter certaines informations :

* **Storage Account :** vous pouvez le trouver (\<storage\_account>) en haut du volet gauche de la page du compte de stockage (<mark style="color:blue;">Figure 49</mark>).
* **Access Key :** pour accéder aux clés d'accès, cliquez sur l'onglet Access keys dans le volet gauche de la page du compte de stockage (<mark style="color:blue;">Figure 49</mark>).

<figure><img src="https://2410808067-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHXOzb6HGS3xzO9nq5sNJ%2Fuploads%2Fgit-blob-79da77685c890faa6ff7a2a0066be8f913be2837%2Fimage%20(327).png?alt=media" alt=""><figcaption></figcaption></figure>

* **Resource groups :** vous pouvez le trouver sur la page d'accueil du portail Azure (\<resource\_group>) (<mark style="color:blue;">Figure 50</mark>)

<figure><img src="https://2410808067-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHXOzb6HGS3xzO9nq5sNJ%2Fuploads%2Fgit-blob-30e79ef98a7aab290b565c23873f508313a15f44%2Fimage%20(328).png?alt=media" alt=""><figcaption></figcaption></figure>

* **Subscription ID :** sur la page d'accueil du portail Azure (\<subscription\_id>), cliquez sur\
  l'onglet Subscription ID. Vérifiez ensuite si Azure est Account admin (Figure 51), puis copiez le Subscription ID.

<figure><img src="https://2410808067-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHXOzb6HGS3xzO9nq5sNJ%2Fuploads%2Fgit-blob-c7e3c57733671e5919a0afb316b0ce15285fd641%2Fimage%20(329).png?alt=media" alt=""><figcaption></figcaption></figure>

* Pour les informations suivantes, reportez-vous à la procédure ci-dessous expliquant comment utiliser Azure en ligne de commande :
  * Tenant ID.
  * Web app ID.
  * Web app password.

**Pour utiliser Azure en ligne de commande**

1. Installez Azure CLI en suivant les étapes détaillées [ici](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-windows?view=azure-cli-latest\&tabs=azure-cli\&pivots=winget).
2. Saisissez la commande de connexion : az login
3. Créez un principal de service (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>
   ```

   Remplacez `<subscription_id>`, `<resource_group>` et `<storage_account>` par vos valeurs.

   La réponse contient `appId`, `displayName`, `password` et `tenant` :

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

**Pour activer le versioning sur la page d'accueil du compte de stockage Azure**

1. Cliquez sur l'onglet **Overview** dans le volet gauche.
2. Cliquez sur **Versioning** dans l'onglet des propriétés.
3. Dans la **section Tracking**, cochez la case Enable versioning for blobs.
4. Sélectionnez l'option **Keep all versions** dans la liste déroulante **Enable versioning for blobs**. Cette option active une gestion personnalisée des rétentions. L'option **Delete versions after** impliquerait une rétention par défaut pour les versions.
5. Cochez l'option **Enable version-level immutability support** dans la section Access control pour pouvoir utiliser le verrouillage d'objet immuable (object lock).

> **Important** : l'option Enable version-level immutability support ne peut être activée que lors de la création du compte de stockage.


---

# 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/miria-4.6-fr/guide-dadministration/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.
