> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# container_instance

# `prefect_azure.container_instance`

Helpers for the Azure Container Instance worker.

Use a work pool of type `azure-container-instance` and an Azure Container
Instance worker to run flow runs in Azure Container Instances.

Examples:

```bash theme={null}
prefect work-pool create --type azure-container-instance my-aci-work-pool
prefect worker start --pool my-aci-work-pool --type azure-container-instance
```

## Classes

### `ContainerGroupProvisioningState` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect\_azure/container\_instance.py#L33](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect_azure/container_instance.py#L33)</sup>

Terminal provisioning states for ACI container groups. Per the Azure docs,
the states in this Enum are the only ones that can be relied on as dependencies.

### `ContainerRunState` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect\_azure/container\_instance.py#L43](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect_azure/container_instance.py#L43)</sup>

Terminal run states for ACI containers.

### `ACRManagedIdentity` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect\_azure/container\_instance.py#L52](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect_azure/container_instance.py#L52)</sup>

Use a Managed Identity to access Azure Container registry. Requires the
user-assigned managed identity be available to the ACI container group.

### `AzureContainerInstanceJobResult` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect\_azure/container\_instance.py#L74](https://github.com/PrefectHQ/prefect/blob/main/src/integrations/prefect-azure/prefect_azure/container_instance.py#L74)</sup>

Legacy result type retained for compatibility with earlier integrations.
