Actualiser Home
+3
-3
@@ -51,12 +51,12 @@ Une fois le fichier créer, on lance la commande :
|
||||
|
||||

|
||||
|
||||
# II - Connexion à Azure
|
||||
# II - Actions sur Azure
|
||||
|
||||
az login
|
||||
|
||||
|
||||
## a- Créer un Service Principal dans Azure :
|
||||
## II.1 - Créer un Service Principal dans Azure :
|
||||
|
||||
`az ad sp create-for-rbac --name "AnsibleServicePrincipal" --role="Contributor" --scopes="/subscriptions/<subscription_id>"`
|
||||
|
||||
@@ -78,7 +78,7 @@ autorisations d’accès. |
|
||||
}
|
||||
```
|
||||
|
||||
## b- Configurer Ansible pour utiliser le Service Principal
|
||||
## II.2 - Configurer Ansible pour utiliser le Service Principal
|
||||
|
||||
On utilise un fichier de configuration :
|
||||
Créer un fichier ~/.azure/credentials et ajouter :
|
||||
|
||||
Reference in New Issue
Block a user