Skip to content

Commit 8a94012

Browse files
authored
Merge pull request #69 from Azure-Samples/chore/remove-unused-env-vars-from-scripts
chore: remove unused DTS_URL and TASKHUB_NAME variables from generate…
2 parents 7f8484a + 7405d72 commit 8a94012

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

scripts/generate-settings.ps1

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@ $cosmosEndpoint = ($envValues | Select-String 'COSMOS_ENDPOINT="([^"]*)"').Match
77
$azureOpenAIEndpoint = ($envValues | Select-String 'AZURE_OPENAI_ENDPOINT="([^"]*)"').Matches.Groups[1].Value
88
$projectEndpoint = ($envValues | Select-String 'PROJECT_ENDPOINT="([^"]*)"').Matches.Groups[1].Value
99
$azureWebJobsStorage = ($envValues | Select-String 'AZUREWEBJOBSSTORAGE="([^"]*)"').Matches.Groups[1].Value
10-
$dtsUrl = ($envValues | Select-String 'DTS_URL="([^"]*)"').Matches.Groups[1].Value
11-
$taskhubName = ($envValues | Select-String 'TASKHUB_NAME="([^"]*)"').Matches.Groups[1].Value
12-
13-
# Use default taskhub name if not found
14-
if ([string]::IsNullOrEmpty($taskhubName)) {
15-
$taskhubName = "SnippyTaskHub"
16-
}
1710

1811
# Create or update local.settings.json
1912
Write-Host "Generating local.settings.json in src directory..."

scripts/generate-settings.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ COSMOS_ENDPOINT=$(azd env get-values | grep COSMOS_ENDPOINT | cut -d'"' -f2)
66
AZURE_OPENAI_ENDPOINT=$(azd env get-values | grep AZURE_OPENAI_ENDPOINT | cut -d'"' -f2)
77
PROJECT_ENDPOINT=$(azd env get-values | grep PROJECT_ENDPOINT | cut -d'"' -f2)
88
AZUREWEBJOBSSTORAGE=$(azd env get-values | grep AZUREWEBJOBSSTORAGE | cut -d'"' -f2)
9-
DTS_URL=$(azd env get-values | grep DTS_URL | cut -d'"' -f2)
10-
TASKHUB_NAME=$(azd env get-values | grep TASKHUB_NAME | cut -d'"' -f2)
119

1210
# Create or update local.settings.json
1311
echo "Generating local.settings.json in src directory..."

0 commit comments

Comments
 (0)