Replies: 2 comments
-
Beta Was this translation helpful? Give feedback.
-
|
They aren't implemented yet, but on my list of how to implement/design. At a high-level I imagine that One thing you can do today is is disable public network access: var aca = builder.AddAzureContainerAppEnvironment("aca")
.ConfigureInfrastructure(infra =>
{
var env = infra.GetProvisionableResources().OfType<ContainerAppManagedEnvironment>().Single();
env.PublicNetworkAccess = ContainerAppPublicNetworkAccess.Disabled;
});Adding the private DNS zones and private endpoint is a bit harder - thus why it isn't done yet. But it should be possible using Azure.Provisioning.Dns and Azure.Provisioning.Network APIs - dropping down to the C# bicep APIs to get the correct bicep generated. I opened Support ACA Private Endpoints (microsoft/aspire#16213) to track this work. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://aspire.dev/integrations/cloud/azure/azure-virtual-network/#complete-example demos an example of a publicly-exposed ACA environment. The "For more information" link mostly describes configuring an Internal ACA environment, but there doesn't appear to be a way to do this in Aspire.
The above code deploys the Container Apps Environment with a public IP address only, without Private Endpoints or IPs on the vnet.
The extension method
AzurePrivateEndpointExtensions.AddPrivateEndpointsupports targets ofIAzurePrivateEndpointTarget, of whichAzureContainerAppEnvironmentResourcedoes not implement. Resources which implement this interface are limited to KeyVault, Sql, and Storage.Can someone please confirm that Internal Container Apps Environments are not supported in Aspire?
I would appreciate suggestions on how to implement this - should I implement my own version of
AddPrivateEndpointagainst theAzureContainerAppEnvironmentResource? Should I publish the container apps outside of aspire and somehow deploy to an existing container apps environment? Or script the private endpoint creation once aspire deploys? Inject custom bicep templates somehow?TLDR: Sample code has a "For more information" link on Internal Container Apps Environment - this functionality is currently missing, while the documentation does not highlight the current and/or intended scope of the integration.
Beta Was this translation helpful? Give feedback.
All reactions