|
| 1 | +--- |
| 2 | +title: Deploy & manage Azure Container Instances |
| 3 | +description: Automate tasks and workflows that create and manage container deployments in Azure Container Instances by using Azure Logic Apps |
| 4 | +services: logic-apps, container-instances |
| 5 | +ms.service: logic-apps |
| 6 | +ms.suite: integration |
| 7 | +author: dlepow |
| 8 | +ms.author: danlep |
| 9 | +ms.manager: gwallace |
| 10 | +ms.reviewer: estfan, macolso |
| 11 | +ms.topic: article |
| 12 | +tags: connectors |
| 13 | +ms.date: 01/14/2020 |
| 14 | +--- |
| 15 | + |
| 16 | +# Deploy and manage Azure Container Instances by using Azure Logic Apps |
| 17 | + |
| 18 | +With Azure Logic Apps and the Azure Container Instance connector, |
| 19 | +you can set up automated tasks and workflows that deploy and manage [container groups](../container-instances/container-instances-container-groups.md). The Container Instance connector supports the following actions: |
| 20 | + |
| 21 | +* Create or delete a container group |
| 22 | +* Get the properties of a container group |
| 23 | +* Get a list of container groups |
| 24 | +* Get the logs of a container instance |
| 25 | + |
| 26 | +Use these actions in your logic apps for tasks such as running a container workload in response to a Logic Apps trigger. You can also have other actions use the output from Container Instance actions. |
| 27 | + |
| 28 | +This connector provides only actions, so to start your logic app, |
| 29 | +use a separate trigger, such as a **Recurrence** trigger to run a container workload on a regular schedule. Or, you might have need to trigger a container group deployment after an event such as arrival of an Outlook e-mail. |
| 30 | + |
| 31 | +If you're new to logic apps, review |
| 32 | +[What is Azure Logic Apps?](../logic-apps/logic-apps-overview.md) |
| 33 | + |
| 34 | +## Prerequisites |
| 35 | + |
| 36 | +* An Azure subscription. If you don't have an Azure subscription, |
| 37 | +[sign up for a free Azure account](https://azure.microsoft.com/free/). |
| 38 | + |
| 39 | +* Basic knowledge about |
| 40 | +[how to create logic apps](../logic-apps/quickstart-create-first-logic-app-workflow.md) and [how to create and manage container instances](../container-instances/container-instances-quickstart.md) |
| 41 | + |
| 42 | +* The logic app where you want to access your container instances. |
| 43 | +To use an action, start your logic app with another trigger, |
| 44 | +for example, the **Recurrence** trigger. |
| 45 | + |
| 46 | +## Add a Container Instance action |
| 47 | + |
| 48 | +[!INCLUDE [Create connection general intro](../../includes/connectors-create-connection-general-intro.md)] |
| 49 | + |
| 50 | +1. Sign in to the [Azure portal](https://portal.azure.com), |
| 51 | +and open your logic app in Logic App Designer, if not open already. |
| 52 | + |
| 53 | +1. Choose a path: |
| 54 | + |
| 55 | + * Under the last step where you want to add an action, |
| 56 | + choose **New step**. |
| 57 | + |
| 58 | + -or- |
| 59 | + |
| 60 | + * Between the steps where you want to add an action, |
| 61 | + move your pointer over the arrow between steps. |
| 62 | + Choose the plus sign (**+**) that appears, |
| 63 | + and then select **Add an action**. |
| 64 | + |
| 65 | +1. In the search box, enter "container instance" as your filter. |
| 66 | +Under the actions list, select the Azure Container Instance connector action you want. |
| 67 | + |
| 68 | +1. Provide a name for your connection. |
| 69 | + |
| 70 | +1. Provide the necessary details for your selected action |
| 71 | +and continue building your logic app's workflow. |
| 72 | + |
| 73 | + For example, select **Create container group** and enter the properties for a container group and one or more container instances in the group, as shown in the following image (partial detail): |
| 74 | + |
| 75 | +  |
| 76 | + |
| 77 | +## Connector reference |
| 78 | + |
| 79 | +For technical details about triggers, actions, and limits, which are |
| 80 | +described by the connector's OpenAPI (formerly Swagger) description, |
| 81 | +review the connector's [reference page](/connectors/aci/) or container group [YAML reference](../container-instances/container-instances-reference-yaml.md). |
| 82 | + |
| 83 | +## Next steps |
| 84 | + |
| 85 | +* See a [sample logic app](https://github.com/Azure-Samples/aci-logicapps-integration) that runs a container in Azure Container Instances to analyze the sentiment of e-mail or Twitter text |
| 86 | + |
| 87 | +* Learn about other [Logic Apps connectors](../connectors/apis-list.md) |
0 commit comments