I am doing a release pipeline and I cant find a way to use a yaml file during the task of my agent.
What is the best practice to create a Azure Container Group during a release pipeline? I have been looking for documentation at microsoft and cant find proper examples.
I was thinking to use a Azure CLI job and create the ACR as I do it locally with the deploy.yaml file.
az container create --resource-group myResourceGroup --file deploy-aci.yaml
deploy.yaml file example
apiVersion: 2018-10-01
location: northeurope
name: e2e
properties:
containers:
- name: e2etestcafe
properties:
image: n1containers.azurecr.io/e2e/e2etestcafe:latest
resources:
requests:
cpu: 2
memoryInGb: 8
- name: customerportal
properties:
image: n1containers.azurecr.io/e2e/customerportal:latest
resources:
requests:
cpu: 1
memoryInGb: 1
ports:
- port: 80
osType: Linux
tags: null
type: Microsoft.ContainerInstance/containerGroups
I cant find anyway to add a file to this job. I am using the wrong tools to do this, is there a way to make a release pipeline with an existing yaml file that I use to create the Container Group?