Container releases - az container release

Set up automated builds and deployments for a multi-container Docker application.

These commands are in preview.

Commands

az container release create Creates a build definition that automates building and pushing Docker images to an Azure container registry, and creates a release definition that automates deploying container images from a container registry to an Azure container service.
az container release list Lists all the release definitions that are deployed to a given Azure container service.

az container release create

Source repository must define a docker-compose.yml file.

az container release create --target-name
--target-resource-group
[--registry-name]
[--registry-resource-id]
[--remote-access-token]
[--remote-branch]
[--remote-url]
[--vsts-account-name]
[--vsts-project-name]

Required Parameters

--target-name
Name of the Azure Container Service cluster to deploy containers to.
--target-resource-group
Name of the Azure Container Service cluster's resource group.

Optional Parameters

--registry-name -r
Azure Container Registry name to which container images will be pushed after each build, and pulled from to deploy container instances. If you have an existing registry at myregistry-{accountname}.azureacr.io, then set this parameter value to myregistry. A new Azure Container Registry is created if this parameter value is omitted or does not exist.
--registry-resource-id
Azure container registry resource id. Specifies an existing Azure container registry. e.g. /subscriptions/{subscriptionId}/resourcegroups/{resourceGroup}/providers/Microsoft.ContainerRegistry/registries/{registryName}.
--remote-access-token -t
GitHub personal access token (minimum permission is "repo"). Required if the source repository is in GitHub.
--remote-branch -b
Remote branch of the GitHub or VSTS source repository that will be built and deployed. If omitted refs/heads/master will be selected.
--remote-url -u
Remote url of the GitHub or VSTS source repository that will be built and deployed. Example: https://github.com/myaccount/myrepository.git. If omitted, a source repository will be searched for in the current working directory.
--vsts-account-name
VSTS account name to create the build and release definitions. If you have an existing VSTS account at myvstsaccount.visualstudio.com, then set this parameter value to myvstsaccount. A new VSTS account is created if parameter value is omitted or does not exist.
--vsts-project-name
VSTS project name to create the build and release definitions. A new VSTS project is created if omitted or does not exist.

az container release list

Lists all the release definitions that are deployed to a given Azure container service.

az container release list --target-name
--target-resource-group

Required Parameters

--target-name
Name of the Azure Container Service cluster to deploy containers to.
--target-resource-group
Name of the Azure Container Service cluster's resource group.