Azure Container Apps Environment not setting daprAIConnectionString nor daprAIInstrumentationKey using azure cli or PoweShell

Francisco Tineo Mateo 0 Reputation points
2024-11-13T20:16:26.4733333+00:00

We're deploying an Azure Container Application Environment and trying to setup the Dapr Connection String and Dapr Instrumentation Key. We get the same outcome whether we create using the az cli (version 2.66.0) command, PowerShell or Terraform.

PowerShell command:

New-AzContainerAppManagedEnv `
  -ResourceGroupName "<ResourceGroupName>" `
  -Location "<Location>" `
  -Name "<EnvironmentName>" `
  -DaprAiConnectionString "<DaprAiConnectionString>" `
  -DaprAiInstrumentationKey "<DaprAiInstrumentationKey>" `
  -VnetConfigurationInternal `
  -WorkloadProfile $workloadProfile `
  -VnetConfigurationInfrastructureSubnetId "<InfrastructureSubnetId>"

Azure CLI command:

az containerapp env create `
  -g <ResourceGroupName> `
  -l <Location> `
  -n <EnvironmentName> `
  -w `
  --logs-workspace-id "<LogsWorkspaceId>" `
  -d $APP_INSIGHTS_CONNECTION_STRING `
  --dapr-instrumentation-key $APP_INSIGHTS_INSTRUMENTATION_KEY `
  --internal-only true `
  --logs-destination log-analytics `
  -s "/subscriptions/<SubscriptionId>/resourceGroups/<ResourceGroupName>/providers/Microsoft.Network/virtualNetworks/<VirtualNetworkName>/subnets/<SubnetName>"
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
469 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.