Quickstart: Create a service connection in Azure Container Apps from the Azure portal (preview)
Article
This quickstart shows you how to connect Azure Container Apps to other Cloud resources using the Azure portal and Service Connector. Service Connector lets you quickly connect compute services to cloud services, while managing your connection's authentication and networking settings.
This feature in Container Apps is currently in preview.
See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
Use Service Connector to create a new service connection in Container Apps.
Select the Search resources, services and docs (G +/) search bar at the top of the Azure portal, type Container Apps in the filter and select Container Apps.
Select the name of the Container Apps resource you want to connect to a target resource.
Select Service Connector (preview) from the left table of contents. Then select Create.
Select or enter the following settings.
Setting
Example
Description
Container
my-container-app
The container of your container app.
Service type
Storage - Blob
The type of service you're going to connect to your container.
Subscription
my-subscription
The subscription that contains your target service (the service you want to connect to). The default value is the subscription that this container app is in.
Connection name
storageblob_700ae
The connection name that identifies the connection between your container app and target service. Use the connection name provided by Service Connector or choose your own connection name.
Storage account
my-storage-account
The target storage account you want to connect to. If you choose a different service type, select the corresponding target service instance.
Client type
.NET
The application stack that works with the target service you selected. The default value is None, which generates a list of configurations. If you know about the app stack or the client SDK in the container you selected, select the same app stack for the client type.
Select Next: Authentication to choose an authentication method: system-assigned managed identity (SMI), user-assigned managed identity (UMI), connection string, or service principal.
System-assigned managed identity is the recommended authentication option. Select System-assigned managed identity to connect through an identity that's automatically generated in Microsoft Entra ID and tied to the lifecycle of the service instance.
Select User-assigned managed identity to authenticate through a standalone identity assigned to one or more instances of an Azure service. Select a subscription that contains a user-assigned managed identity, and select the identity.
If you don't have one yet, create a user-assigned managed identity:
Open the Azure platform in a new tab and search for Managed identities.
Select Managed identities and select Create
Enter a subscription, resource group, region and instance name
Select Review + create and the Create
Once your managed identity has been deployed, go to your Service Connector tab, select Previous and then Next to refresh the form's data, and under User-assigned managed identity, select the identity you created.
Select Service principal to use a service principal that defines the access policy and permissions for the user/application in Microsoft Entra ID.
Select a service principal from the list and enter a secret
Warning
Microsoft recommends that you use the most secure authentication flow available. The authentication flow described in this procedure requires a very high degree of trust in the application, and carries risks that are not present in other flows. You should only use this flow when other more secure flows, such as managed identities, aren't viable.
Select Connection string to generate or configure one or multiple key-value pairs with pure secrets or tokens.
Select Next: Networking to select the network configuration and select Configure firewall rules to enable access to target service so that your container can reach the Blob Storage.
Select Next: Review + Create to review the provided information. Running the final validation takes a few seconds.
Select Create to create the service connection. The operation can take up to a minute to complete.
View service connections
Container Apps connections are displayed under Settings > Service Connector (preview). Select > to expand the list and see the properties required by your application.
Select your connection and then Validate to prompt Service Connector to check your connection.
Select Learn more to review the connection validation details.
Next steps
Check the guide below for more information about Service Connector:
This module guides users through creating, configuring, and managing Container Apps and their environments. It also explores ingress options, scaling, instance management, and security considerations with best practices for configuring Azure Container Apps.
Build end-to-end solutions in Microsoft Azure to create Azure Functions, implement and manage web apps, develop solutions utilizing Azure storage, and more.