From 83d8432595f59e7bc1dd4cbe4e16f60b327ec531 Mon Sep 17 00:00:00 2001 From: LaylaLiu-gmail <38268900+LaylaLiu-gmail@users.noreply.github.com> Date: Fri, 29 Jul 2022 03:32:10 +0000 Subject: [PATCH] Enable Dapr AI Connection string for Microsoft.App connected environment (#19974) * Enable Dapr AI Connection string for Microsoft.App connected environment * Fix dapr ai connection string * remove read * remove read permission of dapr ai connection string and instrument key for managed environment * fixes for comments --- .../preview/2022-06-01-preview/ConnectedEnvironments.json | 5 +++++ .../preview/2022-06-01-preview/ManagedEnvironments.json | 8 -------- .../examples/ConnectedEnvironments_CreateOrUpdate.json | 3 ++- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json index b980a55abb91..c7e144a9a558 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ConnectedEnvironments.json @@ -403,6 +403,11 @@ "staticIp": { "description": "Static IP of the connectedEnvironment", "type": "string" + }, + "daprAIConnectionString": { + "type": "string", + "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", + "x-ms-secret": true } }, "x-ms-client-flatten": true diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json index c55763d79546..6ba95e726ed6 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/ManagedEnvironments.json @@ -751,19 +751,11 @@ "daprAIInstrumentationKey": { "type": "string", "description": "Azure Monitor instrumentation key used by Dapr to export Service to Service communication telemetry", - "x-ms-mutability": [ - "create", - "read" - ], "x-ms-secret": true }, "daprAIConnectionString": { "type": "string", "description": "Application Insights connection string used by Dapr to export Service to Service communication telemetry", - "x-ms-mutability": [ - "create", - "read" - ], "x-ms-secret": true }, "vnetConfiguration": { diff --git a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json index c8bebf4f2f98..75364d7af1e8 100644 --- a/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json +++ b/specification/app/resource-manager/Microsoft.App/preview/2022-06-01-preview/examples/ConnectedEnvironments_CreateOrUpdate.json @@ -13,7 +13,8 @@ "environmentEnvelope": { "location": "East US", "properties": { - "staticIp": "1.2.3.4" + "staticIp": "1.2.3.4", + "daprAIConnectionString": "InstrumentationKey=00000000-0000-0000-0000-000000000000;IngestionEndpoint=https://northcentralus-0.in.applicationinsights.azure.com/" } } },