Skip to content

Commit 72e5f11

Browse files
authored
Merge pull request #19 from seesharprun/auto-set-dotnet-user-secrets
Set .NET user secrets
2 parents b6ef4dc + 29f636a commit 72e5f11

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

azure.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ hooks:
1515
postprovision:
1616
windows:
1717
run: |
18+
dotnet user-secrets set "AZURE_COSMOS_DB_NOSQL_ENDPOINT" "$env:AZURE_COSMOS_ENDPOINT" --project ./src/web/Cosmos.Samples.NoSQL.Quickstart.Web.csproj
1819
Write-Host ""
1920
Write-Host "View the running web application in Azure Container Apps:"
2021
Write-Host "$env:AZURE_CONTAINER_APP_ENDPOINT" -ForegroundColor Cyan
@@ -23,6 +24,7 @@ hooks:
2324
interactive: true
2425
posix:
2526
run: |
27+
dotnet user-secrets set "AZURE_COSMOS_DB_NOSQL_ENDPOINT" "$AZURE_COSMOS_ENDPOINT" --project ./src/web/Cosmos.Samples.NoSQL.Quickstart.Web.csproj
2628
echo ""
2729
echo "View the running web application in Azure Container Apps:"
2830
echo -e "\033[0;36m$AZURE_CONTAINER_APP_ENDPOINT\033[0m"

0 commit comments

Comments
 (0)