Création d'un container dans Azure (PS)

Cette méthode utilise le module Azure CLI. Il est disponible autant sur Windows que sur Unix. Les commandes suivantes sont fonctionnelles pour PowerShell.

1

Install powershell component

## AzureCLI paquet installation
winget install Microsoft.AzureCLI
2

Login to azure CLI

## Login to azure
az login

## Login with eduvaud account
3

Create container

## Create container (username and password to add)
az container create `
  --resource-group <RG_NAME> `
  --name hello-container `
  --image hello-world `
  --os-type Linux `
  --cpu 1 `
  --memory 1.5 `
  --ports 80 `
  --dns-name-label hello-test-1 `
  --registry-login-server index.docker.io `
  --registry-username "<DOCKERHUB_USERNAME>" `
  --registry-password "<DOCKERHUB_TOKEN>" `
  --location westeurope

Last updated