Category : azure-cli

JenkinsFile import hudson.model.* SERVICE_PRINCIPAL = env.SERVICE_PRINCIPAL SERVICE_PRINCIPAL_SECRET = env.SERVICE_PRINCIPAL_SECRET TENTANT_ID = env.TENTANT_ID SUBSCRIPTION = env.SUBSCRIPTION SSH_KEY = env.SSH_KEY timestamps { node(‘master’) { stage("Cleanup existing Jenkins workspace") { sh "rm -rf ./*" } stage(‘Build’) { echo ‘Building..’ } stage(‘Test’) { echo ‘Testing..’ sh""" # clear previous instances az account clear; # az login az login –service-principal ..

Read more

I am deploying MongoDB container as Azure container instance in a group using Azure CLI YAML script. Here I am using a Azure file share as a mount volume, while using this mount volume the authentication is not enabled in MongoDB. Though without mount volume it is working fine. Here is my YAML script: apiVersion: ..

Read more

I am setting up a cicd pipeline that runs on kubernetes. The image builder is kaniko and it must push to azure acr. So, I’ve set up a kaniko + azure cli image with the following dockerfile: FROM gcr.io/kaniko-project/executor:latest as kaniko FROM alpine:latest COPY –from=kaniko /kaniko /kaniko RUN ls / ENV DOCKER_CONFIG /kaniko/.docker ENV SSL_CERT_DIR=/kaniko/ssl/certs ..

Read more

I would like to create a SQL Server container in Azure CLI with the following statement: az container create –resource-group rgtest gt; –name db_test > –image mcr.microsoft.com/mssql/server:2017-CU16-ubuntu > –environment-variables ACCEPT_EULA=Y MSSQL_SA_PASSWORD= password_test > –dns-name-label dns_test > –cpu 2 > –memory 2 > –port 1433 I was expecting a JSON output that contains all the details ..

Read more

i am facing a realy strange error with a Bitbucket Pipeline. I want to deploy a dockr container in Azure and use the CLI command: az container create –resource-group $RG_DEV –name foo –image $ARCLOGINSERVER/fooo:latest –cpu 1 –memory 2 –registry-login-server $ARCLOGINSERVER –registry-username $AZURE_REGISTRY_USER_DEV –registry-password $AZURE_REGISTRY_PW_DEV –dns-name-label foo-app –ports 80 –ip-address Public –secrets secretCredentials=$CREDENTIALS –secrets-mount-path /mnt/secrets with ..

Read more

I am using minikube to develop my Kubernetes application. I have a private azure registry where my images are saved. Whenever I start the app, k8s start to pull an image. It throws the following error Failed to pull image "myregistry.azurecr.io/myapp:mytag": rpc error: code = Unknown desc = Error response from daemon: Get https://myregistry.azurecr.io/v2/myapp/manifests/mytag: unauthorized: ..

Read more

I am using mssql server image in Azure Container Instance. Without mounting any volumes, ACI is created successfully and works fine. But when I mount a volume, to persist data even after restart of the container, made of Azure Storage account (File share), ACI is created successfully but the database could not be accessed. log ..

Read more