Skip to content

Commit

Permalink
Update GHA workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
justinyoo committed Nov 24, 2023
1 parent d6e0ac7 commit f3fd8ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/azure-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ jobs:
shell: pwsh
run: |
$instances = @()
$aoais = az resource list -g rg-${{ vars.AZURE_ENV_NAME }} --query "[?type=='Microsoft.CognitiveServices/accounts'].name"
$aoais = az resource list -g rg-${{ vars.AZURE_ENV_NAME }} --query "[?type=='Microsoft.CognitiveServices/accounts'].name" | ConvertFrom-Json
$aoais | ForEach-Object {
$name = $_
$endpoint = az cognitiveservices account show -g rg-${{ vars.AZURE_ENV_NAME }} -n $name --query "properties.endpoint" -o tsv
$apiKey = az cognitiveservices account keys list -g rg-${{ vars.AZURE_ENV_NAME }} -n $name --query "key1" -o tsv
$instance = @{ Endpoint = $endpoint; ApiKey = $apiKey; }
$instances.Add($instance)
$instances += $instance
}
Copy-Item -Path ./src/AzureOpenAIProxy.AppHost/appsettings.Development.sample.json `
Expand Down

0 comments on commit f3fd8ef

Please sign in to comment.