You will need about one minute to read this article.
Deployments to Azure can be done using the Azure CLI directly on a Codeship Basic build machine similar to how you might use the CLI locally.
You will need to install the CLI, configure your authentication with environment variables and then define the CLI commands you want to run as a custom-script deployment pipeline.
The Azure CLI does not come pre-installed on Codeship Basic build machines.
Please add the following command in the Setup Commands section of your test settings to install the Azure CLI:
pip install azure-cli
The easiest way to keep the authentication secure is to use environment variables to store the username and password, and to pass those to your Azure login commands.
You will need to create a new custom-script deployment pipeline to run the Azure CLI commands you need for your deployment.
These commands will run every time the branch the deployment pipeline is associated with is updated. They are not Codeship specific and will be standard Azure CLI input.
Read more about the Azure CLI for more information on using the CLI as well as complete documentation on what commands can be run with it.
Do you think we need to improve this article? If so, please submit our feedback form to help us improve this article!