title | description | author | ms.author | ms.topic | ms.custom | ms.subservice | ms.date |
---|---|---|---|---|---|---|---|
Deploy an Azure Kubernetes application by using an ARM template |
Learn how to deploy an Azure Kubernetes application by using an ARM template. |
maanasagovi |
maanasagovi |
conceptual |
devx-track-arm-template |
aks-developer |
05/15/2023 |
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.
First, you need to select the Kubernetes application that you want to deploy in the Azure portal.
-
In the Azure portal, go to the Marketplace page.
-
Select your Kubernetes application.
-
Select the required plan.
-
Select the Usage Information + Support tab. Copy the values for
publisherID
,productID
, andplanID
. You'll need these values later.:::image type="content" source="media/deploy-application-template/usage-information.png" alt-text="Screenshot showing the Usage Information + Support tab for a Kubernetes application.":::
Continue on to generate the ARM template for your deployment.
-
Select the Create button.
-
Fill out all the application (extension) details.
-
At the bottom of the Review + Create tab, select Download a template for automation.
:::image type="content" source="media/deploy-application-template/download-template.png" alt-text="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.
:::image type="content" source="media/deploy-application-template/download-arm-template.png" alt-text="Screenshot showing an ARM template for a Kubernetes application.":::
-
Download the ARM template and save it to a file on your computer.
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>
Once you've accepted the terms, you can deploy your ARM template. For instructions, see Tutorial: Create and deploy your first ARM template.
- Learn about Kubernetes applications available through Marketplace.
- Learn about cluster extensions.