@@ -231,12 +231,27 @@ module api './app/api.bicep' = {
231231 }
232232}
233233
234- // App outputs
235- output APPLICATIONINSIGHTS_CONNECTION_STRING string = monitoring .outputs .applicationInsightsConnectionString
236- output AZURE_LOCATION string = location
237- output AZURE_TENANT_ID string = tenant ().tenantId
238- output SERVICE_API_NAME string = api .outputs .SERVICE_API_NAME
239- output AZURE_FUNCTION_NAME string = api .outputs .SERVICE_API_NAME
240- output COSMOS_ENDPOINT string = cosmosDb .outputs .documentEndpoint
241- output OPENAI_ENDPOINT string = openai .outputs .aiServicesEndpoint
234+ // ==================================
235+ // Outputs
236+ // ==================================
237+ // Define outputs needed specifically for configuring local.settings.json
238+ // Use 'azd env get-values' to retrieve these after provisioning.
239+ // WARNING: Secrets (Keys, Connection Strings) are output directly and will be visible in deployment history.
240+ // Output names directly match the corresponding keys in local.settings.json for easier mapping.
241+
242+ @description ('Cosmos DB connection string (includes key). Output name matches the COSMOS_CONN key in local settings.' )
243+ output COSMOS_CONN string = cosmosDb .outputs .connectionString
244+
245+ @description ('Connection string for the Azure AI Project. Output name matches the PROJECT_CONNECTION_STRING key in local settings.' )
242246output PROJECT_CONNECTION_STRING string = aiProject .outputs .projectConnectionString
247+
248+ @description ('Endpoint for Azure OpenAI services. Output name matches the AZURE_OPENAI_ENDPOINT key in local settings.' )
249+ output AZURE_OPENAI_ENDPOINT string = openai .outputs .azureOpenAIServiceEndpoint
250+
251+ @description ('Primary key for Azure OpenAI services. Output name matches the AZURE_OPENAI_KEY key in local settings.' )
252+ // @secure() - issue with latest bicep version, set secure in cognitive services module
253+ output AZURE_OPENAI_KEY string = openai .outputs .primaryKey
254+
255+ @description ('Name of the deployed Azure Function App.' )
256+ output AZURE_FUNCTION_NAME string = api .outputs .SERVICE_API_NAME // Function App Name
257+
0 commit comments