Bewerken

Delen via


Deploy an Azure Kubernetes application by using an ARM template

To deploy a Kubernetes application programmatically through Azure CLI, you select the Kubernetes application and settings, generate an ARM template, accept legal terms and conditions, and finally deploy the ARM template.

Select Kubernetes application

First, you need to select the Kubernetes application that you want to deploy in the Azure portal.

  1. In the Azure portal, go to the Marketplace page.

  2. Select your Kubernetes application.

  3. Select the required plan.

  4. Select the Usage Information + Support tab. Copy the values for publisherID, productID, and planID. You'll need these values later.

    Screenshot showing the Usage Information + Support tab for a Kubernetes application.

Generate ARM template

Continue on to generate the ARM template for your deployment.

  1. Select the Create button.

  2. Fill out all the application (extension) details.

  3. At the bottom of the Review + Create tab, select Download a template for automation.

    Screenshot showing the option to download a template for a Kubernetes application.

    If all the validations are passed, you'll see the ARM template in the editor.

    Screenshot showing an ARM template for a Kubernetes application.

  4. Download the ARM template and save it to a file on your computer.

Accept terms and agreements

Before you can deploy a Kubernetes application, you need to accept its terms and agreements. To do so, use Azure CLI or Azure PowerShell. Be sure to use the values you copied for plan-publisher, plan-offerID, and plan-name in your command.

az vm image terms accept --offer <Product ID> --plan <Plan ID> --publisher <Publisher ID>

Note

Although this Azure CLI command is for VMs, it also works for containers. For more information, see the az cm image terms reference.

## Get-AzureRmMarketplaceTerms -Publisher <Publisher ID> -Product <Product ID> -Name <Plan ID>

Deploy ARM template

Once you've accepted the terms, you can deploy your ARM template. For instructions, see Tutorial: Create and deploy your first ARM template.

Next steps