From 33858a4f954100b8d1c2e3c7a8769fff45203885 Mon Sep 17 00:00:00 2001 From: Adrian Bonar <56417140+adrianwyatt@users.noreply.github.com> Date: Tue, 20 Jun 2023 14:03:43 -0700 Subject: [PATCH] CopilotChat: deploy webapp typo fix (#1614) Fixes missing "$" in deploy-webapp.ps1, causing a failure in CORS configuration. --- samples/apps/copilot-chat-app/deploy/deploy-webapp.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/apps/copilot-chat-app/deploy/deploy-webapp.ps1 b/samples/apps/copilot-chat-app/deploy/deploy-webapp.ps1 index e4724ef76c14..4f2cda9b5960 100644 --- a/samples/apps/copilot-chat-app/deploy/deploy-webapp.ps1 +++ b/samples/apps/copilot-chat-app/deploy/deploy-webapp.ps1 @@ -86,7 +86,7 @@ if ($LASTEXITCODE -ne 0) { $origin = "https://$webappUrl" Write-Host "Ensuring CORS origin '$origin' to webapi '$webapiName'..." -if (-not ((az webapp cors show --name webapiName --resource-group $ResourceGroupName --subscription $Subscription | ConvertFrom-Json).allowedOrigins -contains $origin)) { +if (-not ((az webapp cors show --name $webapiName --resource-group $ResourceGroupName --subscription $Subscription | ConvertFrom-Json).allowedOrigins -contains $origin)) { az webapp cors add --name $webapiName --resource-group $ResourceGroupName --subscription $Subscription --allowed-origins $origin }