> For the complete documentation index, see [llms.txt](https://docs.prismacloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.prismacloud.io/content-collections/runtime-security/install/deploy-defender/app-embedded/deploy-app-embedded-new-aci.md).

# Deploy App-Embedded Defender on ACI

The App-Embedded Defender for Azure Container Instances (ACI) is deployed at the ACI container group level, which enables you to protect all containers in a container group through the ACI deployment YAML.

Use the following procedure to deploy and validate the Prisma Cloud App-Embedded Defender for an ACI container group:

## Prerequisites

* An Azure account with a subscription.
* The Azure CLI installed and configured.
* Access to the Prisma Cloud Console.
* A YAML file that defines the ACI container group you want to protect.

## Deployment Procedure

Follow these steps to generate and deploy the YAML file required for deploying the GCR app-embedded defender. Follow these steps to generate and deploy the YAML file required for deploying an ACI container group with the Prisma Cloud app-embedded defender for ACI.

### Configure the defender and generate the deployment YAML

1. Go to **Manage > Defenders > Defenders: Deployed**.
2. Select **Manual deploy**.
3. Open **Basic Settings**:
   1. Select **Single Defender** as the deployment method.
   2. Select **Container Defender App-Embedded** as the defender type.
   3. Select **ACI container group** as the deployment type.
4. Generate the protected deployment YAML: Submit a valid ACI deployment YAML to the Prisma Cloud Console. The console modifies this YAML to include the defender’s init container and other essential settings.
   1. Enter a valid ACI deployment YAML in **Insert deployment definition**.

      For more information about ACI container group deployment YAML, see [YAML reference: Azure Container Instances](https://learn.microsoft.com/en-us/azure/container-instances/container-instances-reference-yaml).
   2. Click **Generate protected deployment definition**.
   3. The output is displayed in **Generated deployment definition**. Copy the YAML generated by Prisma Cloud Console for deployment in your Azure cloud.

### Deploy the generated YAML in ACI

After the console processes your original YAML file, it will return a modified version that includes the defender instrumentation.

1. Save the YAML generated by the Prisma Cloud Console to a file. For example, `defended-service.yaml`.
2. (If required) Create a resource group:

   `az group create --name <RESOURCE-GROUP-NAME> --location eastus`
3. Deploy this YAML in ACI by running the following command: `az container create --resource-group <RESOURCE-GROUP-NAME> --file defended-deploy-aci.yaml`

## Validate Defender Visibility

The app-embedded defender is an init container that executes and terminates upon completion. You can verify the successful deployment of the defender and your ACI container group within the Azure Cloud environment and the Prisma Cloud Console using the following steps.

### In ACI:

1. To verify that the container group and the app-embedded defender are running, run the command: `az container show --resource-group <RESOURCE-GROUP-NAME> --name <CONTAINER-GROUP-NAME> --output table`

A successful deployment will show `provisioningState` as `Succeeded` and `instanceView.state` as `Running`.

### In the Prisma Cloud Console

1. Onboard the ACI container group in Prisma Cloud. See the Prisma Cloud documentation for account setup procedures.
2. Go to **Radar > Defenders > Deployed defenders**.
3. Filter the view to locate your new Defender. It will be uniquely identified by a combination of its provider, container name, container group, and resource group.

## Run Cloud Discovery

Run a cloud discovery scan to ensure the Prisma Cloud Console accurately correlates the running defender with the discovered ACI container group.

1. In the Prisma Cloud Console, manually initiate a cloud discovery scan for the relevant ACI container group.
2. When the scan is complete, go to the **Radar** view.
3. Locate the **container group** asset for your deployment and confirm its status in the **Is Defended** column.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.prismacloud.io/content-collections/runtime-security/install/deploy-defender/app-embedded/deploy-app-embedded-new-aci.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
