forked from Azure-Samples/azure-search-openai-demo-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.txt
76 lines (71 loc) · 6.02 KB
/
test.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using Azure.Identity;
using Microsoft.Extensions.Configuration;
public static class KeyVaultConfigurationBuilderExtensions
{
public static IConfigurationBuilder AddAzureKeyVault(this IConfigurationBuilder builder, string keyVaultName)
{
var azureKeyVaultEndpoint = Environment.GetEnvironmentVariable("AZURE_KEY_VAULT_ENDPOINT") ?? throw new InvalidOperationException("Azure Key Vault endpoint is not set.");
ArgumentNullException.ThrowIfNullOrEmpty(azureKeyVaultEndpoint);
var keyVaultUri = new Uri(azureKeyVaultEndpoint);
builder.AddAzureKeyVault(keyVaultUri, new DefaultAzureCredential());
return builder;
}
}
APPLICATIONINSIGHTS_CONNECTION_STRING="InstrumentationKey=3cb6b9dd-9621-4fa2-9a31-a282cf9b0c9b;IngestionEndpoint=https://eastus-8.in.applicationinsights.azure.com/;LiveEndpoint=https://eastus.livediagnostics.monitor.azure.com/;ApplicationId=bb267ed9-ae57-4428-b4a1-bba494c9fbde"
APPLICATIONINSIGHTS_NAME="appi-yxbuwmswtbugu"
AZD_PIPELINE_PROVIDER="github"
AZD_PREPDOCS_RAN="true"
AZURE_COMPUTERVISION_RESOURCE_GROUP=""
AZURE_COMPUTERVISION_SERVICE=""
AZURE_COMPUTERVISION_SERVICE_ENDPOINT=""
AZURE_CONTAINER_ENVIRONMENT_NAME="cae-yxbuwmswtbugu"
AZURE_CONTAINER_REGISTRY_ENDPOINT="cryxbuwmswtbugu.azurecr.io"
AZURE_CONTAINER_REGISTRY_NAME="cryxbuwmswtbugu"
AZURE_CONTAINER_REGISTRY_RESOURCE_GROUP="cryxbuwmswtbugu"
AZURE_ENV_NAME="azure-search-openai-demo-csharp-dev"
AZURE_FORMRECOGNIZER_RESOURCE_GROUP="rg-azure-search-openai-demo-csharp"
AZURE_FORMRECOGNIZER_SERVICE="cog-fr-yxbuwmswtbugu"
AZURE_FORMRECOGNIZER_SERVICE_ENDPOINT="https://cog-fr-yxbuwmswtbugu.cognitiveservices.azure.com/"
AZURE_KEY_VAULT_ENDPOINT="https://kv-yxbuwmswtbugu.vault.azure.net/"
AZURE_KEY_VAULT_NAME="kv-yxbuwmswtbugu"
AZURE_KEY_VAULT_RESOURCE_GROUP="rg-azure-search-openai-demo-csharp"
AZURE_LOCATION="eastus"
AZURE_OPENAI_CHATGPT_DEPLOYMENT="chat"
AZURE_OPENAI_CHATGPT_MODEL_NAME="gpt-35-turbo"
AZURE_OPENAI_CHATGPT_MODEL_VERSION="0613"
AZURE_OPENAI_EMBEDDING_DEPLOYMENT="embedding"
AZURE_OPENAI_ENDPOINT="https://cog-yxbuwmswtbugu.openai.azure.com/"
AZURE_OPENAI_RESOURCE_GROUP="rg-azure-search-openai-demo-csharp"
AZURE_OPENAI_RESOURCE_LOCATION="eastus"
AZURE_OPENAI_SERVICE="cog-yxbuwmswtbugu"
AZURE_PIPELINE_CLIENT_ID="1c2dabc3-a1d1-410f-bde3-7404e74b1eee"
AZURE_RESOURCE_GROUP="rg-azure-search-openai-demo-csharp"
AZURE_SEARCH_INDEX="gptkbindex"
AZURE_SEARCH_SERVICE="gptkb-yxbuwmswtbugu"
AZURE_SEARCH_SERVICE_ENDPOINT="https://gptkb-yxbuwmswtbugu.search.windows.net/"
AZURE_SEARCH_SERVICE_RESOURCE_GROUP="rg-azure-search-openai-demo-csharp"
AZURE_STORAGE_ACCOUNT="styxbuwmswtbugu"
AZURE_STORAGE_BLOB_ENDPOINT="https://styxbuwmswtbugu.blob.core.windows.net/"
AZURE_STORAGE_CONTAINER="content"
AZURE_STORAGE_RESOURCE_GROUP="rg-azure-search-openai-demo-csharp"
AZURE_SUBSCRIPTION_ID="bfb3a031-f26f-4783-b278-60173de9ccf4"
AZURE_TENANT_ID="e362c86f-e64a-4e58-b26a-c8bf314b1093"
OPENAI_EMBEDDING_DEPLOYMENT="text-embedding-ada-002"
SERVICE_FUNCTION_IDENTITY_PRINCIPAL_ID="3bd0ae1a-3bdb-42c7-809a-48d9cc9a2e61"
SERVICE_WEB_IDENTITY_NAME="id-web-yxbuwmswtbugu"
SERVICE_WEB_IMAGE_NAME="cryxbuwmswtbugu.azurecr.io/azure-search-openai-demo-csharp/web-azure-search-openai-demo-csharp:azd-deploy-1724348205"
SERVICE_WEB_NAME="ca-web-yxbuwmswtbugu"
SERVICE_WEB_RESOURCE_EXISTS="false"
USE_AOAI="true"
USE_VISION="false"
ZURE_ENV_NAME="azure-search-openai-demo-csharp-dev"
AzureOpenAiChatGptDeployment="chat"
AzureOpenAiServiceEndpoint="https://cog-yxbuwmswtbugu.openai.azure.com/"
AzureStorageAccountEndpoint="https://styxbuwmswtbugu.blob.core.windows.net/"
AzureStorageContainer="content"
AzureOpenAiEmbeddingDeployment="embedding"
AzureOpenAiServiceEndpoint="https://cog-yxbuwmswtbugu.openai.azure.com/"
AzureSearchIndex="gptkbindex"
AzureSearchServiceEndpoint="https://gptkb-yxbuwmswtbugu.search.windows.net/"
OpenAIApiKey="sk-og2vq2cEbh4tmDmWhrfz48N7suD1XouTYX-8uASwy3T3BlbkFJBzcHL0NBm9hRU2OPR-_2hpCy376bEkrDeu6BM7dlkA"
Azure.Identity.CredentialUnavailableException: DefaultAzureCredential failed to retrieve a token from the included credentials. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/defaultazurecredential/troubleshoot - EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot - WorkloadIdentityCredential authentication unavailable. The workload options are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/workloadidentitycredential/troubleshoot - ManagedIdentityCredential authentication unavailable. No response received from the managed identity endpoint. - Visual Studio Token provider can't be accessed at /home/vscode/.IdentityService/AzureServiceAuth/tokenprovider.json - Please run 'az login' to set up account - Az.Accounts module >= 2.2.0 is not installed. - Please run 'azd auth login' from a command prompt to authenticate before using this credential. ---> System.AggregateException: Multiple exceptions were encountered while attempting to authenticate. (EnvironmentCredential authentication unavailable. Environment variables are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/environmentcredential/troubleshoot) (WorkloadIdentityCredential authentication unavailable. The workload options are not fully configured. See the troubleshooting guide for more information. https://aka.ms/azsdk/net/identity/workloadidentitycredential/troubleshoot) (ManagedIdentityCredential authentication unavailable. No response received from the managed identity endpoint.) (Visual Studio Token provider can't be accessed at /home/vscode/.IdentityService/AzureServiceAuth/tokenprovider.json) (Please run 'az login' to set up account) (Az.Accounts module >= 2.2.0 is not installed.) (Please run 'azd auth login' from a command prompt to authenticate before using this credential.) ---> Azure.Identity.CredentialUnavailableException: EnvironmentCredential authentication unavailable.