[Issue] Deploy failed to SWA with Still in WaitingForDeployment state
- [ ] Make sure you've installed the latest version using instructions in the wiki
Output from azd version
Run azd version and copy and paste the output here: azd version 1.5.0 (commit 012ae734904e0c376ce5074605a6d0d3f05789ee)
Describe the bug Deploy SWA fails - appears to be unique to my environment/sub. @shibbas is able to deploy successfully.
To Reproduce
- New github clone on mac m1 - commit 56b2d62898c209b9910168d7387436c6ceabdaa5
- run dev container in local vscode
azd auth loginazd up- fails on deployazd deploy webapp --debugfails with 2023/12/06 23:19:24 main.go:48: Retry: exit due to non-retriable status code (x) Failed: Deploying service webapp
ERROR: failed deploying service 'webapp': failing invoking action 'deploy', failed verifying static web app deployment. Still in WaitingForDeployment state 6. Can reproduce on new environment with same code over and over.
Expected behavior Error with information on what the problem is - why is SWA in a perpetual waiting state?
Environment Information on your environment: * Language name and version * OS : mac m1 sonoma 14.1.2 * VSCode:
```
Version: 1.84.2 (Universal)
Commit: 1a5daa3a0231a0fbba4f14db7ec463cf99d7768e
Date: 2023-11-09T10:52:33.687Z (3 wks ago)
Electron: 25.9.2
ElectronBuildId: 24603566
Chromium: 114.0.5735.289
Node.js: 18.15.0
V8: 11.4.183.29-electron.0
OS: Darwin arm64 23.1.0
```
Additional context
node ➜ /workspaces/azure-search-openai-javascript (main) $ azd deploy webapp --debug
2023/12/06 23:18:08 main.go:54: azd version: 1.5.0 (commit 012ae734904e0c376ce5074605a6d0d3f05789ee)
2023/12/06 23:18:08 main.go:208: using cached latest version: 1.5.0 (expires on: 2023-12-07T16:14:35Z)
2023/12/06 23:18:08 project.go:113: Reading project from file '/workspaces/azure-search-openai-javascript/azure.yaml'
2023/12/06 23:18:08 cobra_builder.go:141: Resolved action 'azd-deploy-action'
2023/12/06 23:18:08 middleware.go:124: running middleware 'debug'
2023/12/06 23:18:08 middleware.go:124: running middleware 'experimentation'
2023/12/06 23:18:08 experimentation.go:42: assignment context: initflow_t:78271;0g5ad841:76970;
2023/12/06 23:18:08 middleware.go:124: running middleware 'telemetry'
2023/12/06 23:18:08 telemetry.go:50: TraceID: 77bd5b617252baf79f3f2bc8d671b9e2
2023/12/06 23:18:08 middleware.go:124: running middleware 'hooks'
2023/12/06 23:18:08 hooks.go:156: service 'indexer' does not require any command hooks.
2023/12/06 23:18:08 hooks.go:156: service 'search' does not require any command hooks.
2023/12/06 23:18:08 command_runner.go:307: Run exec: 'docker --version' , exit code: 0
-------------------------------------stdout-------------------------------------------
Docker version 20.10.24, build 297e128
2023/12/06 23:18:08 docker.go:254: docker version: Docker version 20.10.24, build 297e128
2023/12/06 23:18:08 docker.go:185: determining version from docker --version string: Docker version 20.10.24, build 297e128
2023/12/06 23:18:08 docker.go:197: extracted docker version: 20.10.24, build: 297e128 from version string
2023/12/06 23:18:08 command_runner.go:307: Run exec: 'node --version' , exit code: 0
-------------------------------------stdout-------------------------------------------
v18.19.0
2023/12/06 23:18:08 ensure.go:47: Skipping install check for 'SWA CLI'. It was previously confirmed.
Deploying services (azd deploy)
|=== | Deploying service webapp (Installing NPM dependencies)2023/12/06 23:18:12 command_runner.go:307: Run exec: 'npm install' , exit code: 0
-------------------------------------stdout-------------------------------------------
> [email protected] prepare
> simple-git-hooks || echo 'simple-git-hooks install skipped'
[INFO] Successfully set the pre-commit with command: npx lint-staged
[INFO] Successfully set all git hooks
up to date, audited 1096 packages in 3s
207 packages are looking for funding
run `npm fund` for details
1 moderate severity vulnerability
To address all issues, run:
npm audit fix
Run `npm audit` for details.
|===== | Deploying service webapp (Running NPM package script)2023/12/06 23:18:21 command_runner.go:307: Run exec: 'npm run build --if-present' , exit code: 0
-------------------------------------stdout-------------------------------------------
> [email protected] build
> tsc && vite build
Using search API base URL: ""
vite v4.4.11 building for production...
transforming...
✓ 1217 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html 0.72 kB │ gzip: 0.37 kB
dist/assets/github-fab00c2d.svg 0.96 kB │ gzip: 0.51 kB
dist/assets/OneShot-a2862c5d.css 0.83 kB │ gzip: 0.38 kB
dist/assets/index-6c2776d6.css 2.89 kB │ gzip: 1.09 kB
dist/assets/NoPage-ba292630.js 0.18 kB │ gzip: 0.18 kB │ map: 0.34 kB
dist/assets/fluentui-icons-06c16992.js 2.41 kB │ gzip: 1.25 kB │ map: 538.27 kB
dist/assets/OneShot-5f267c9c.js 4.25 kB │ gzip: 1.59 kB │ map: 13.87 kB
dist/assets/index-99f64f9d.js 147.08 kB │ gzip: 48.58 kB │ map: 324.76 kB
dist/assets/fluentui-react-940740d6.js 202.33 kB │ gzip: 58.10 kB │ map: 941.59 kB
dist/assets/vendor-d59d4031.js 310.32 kB │ gzip: 105.15 kB │ map: 1,287.38 kB
✓ built in 6.57s
|== | Deploying service webapp (Copying deployment package)2023/12/06 23:18:22 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:22 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/resources?%24filter=REDACTED&api-version=2021-04-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armresources/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
|==== | Deploying service webapp (Copying deployment package)2023/12/06 23:18:22 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/432.431501ms, OpTime=432.497917ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/resources?%24filter=REDACTED&api-version=2021-04-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armresources/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 366
Content-Type: application/json; charset=utf-8
Date: Wed, 06 Dec 2023 23:18:21 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: e6327abf-25d1-4065-88d4-8069ca894878
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
2023/12/06 23:18:22 main.go:48: Retry: response 200
2023/12/06 23:18:22 main.go:48: Retry: exit due to non-retriable status code
2023/12/06 23:18:22 hooks_runner.go:162: Executing script '/tmp/azd-predeploy-1512142233.sh'
|===== | Deploying service webapp (Copying deployment package)
> [email protected] build
> tsc && vite build
|====== | Deploying service webapp (Copying deployment package)Using search API base URL: "https://search.thankfulgrass-7707573c.eastus2.azurecontainerapps.io"
vite v4.4.11 building for production...
✓ 1217 modules transformed.
dist/index.html 0.72 kB │ gzip: 0.37 kB
dist/assets/github-fab00c2d.svg 0.96 kB │ gzip: 0.51 kB
dist/assets/OneShot-a2862c5d.css 0.83 kB │ gzip: 0.38 kB
dist/assets/index-6c2776d6.css 2.89 kB │ gzip: 1.09 kB
dist/assets/NoPage-ba292630.js 0.18 kB │ gzip: 0.18 kB │ map: 0.34 kB
dist/assets/fluentui-icons-06c16992.js 2.41 kB │ gzip: 1.25 kB │ map: 538.27 kB
dist/assets/OneShot-2df7113b.js 4.25 kB │ gzip: 1.59 kB │ map: 13.87 kB
dist/assets/index-bdbef00f.js 147.14 kB │ gzip: 48.61 kB │ map: 324.76 kB
dist/assets/fluentui-react-940740d6.js 202.33 kB │ gzip: 58.10 kB │ map: 941.59 kB
dist/assets/vendor-d59d4031.js 310.32 kB │ gzip: 105.15 kB │ map: 1,287.38 kB
✓ built in 6.54s
2023/12/06 23:18:32 command_runner.go:307: Run exec: ' /tmp/azd-predeploy-1512142233.sh' , exit code: 0
Additional env:
AZURE_OPENAI_SERVICE=<redacted>
AZURE_LOCATION=<redacted>
AZURE_OPENAI_EMBEDDING_DEPLOYMENT=<redacted>
AZURE_RESOURCE_GROUP=<redacted>
AZURE_SEARCH_SERVICE=<redacted>
SERVICE_SEARCH_RESOURCE_EXISTS=<redacted>
AZURE_STORAGE_ACCOUNT=<redacted>
AZURE_ENV_NAME=<redacted>
AZURE_SEARCH_INDEX=<redacted>
AZURE_STORAGE_RESOURCE_GROUP=<redacted>
WEBAPP_URI=<redacted>
SERVICE_INDEXER_IMAGE_NAME=<redacted>
AZURE_OPENAI_CHATGPT_MODEL=<redacted>
AZURE_CONTAINER_REGISTRY_ENDPOINT=<redacted>
AZURE_OPENAI_RESOURCE_GROUP=<redacted>
INDEXER_API_URI=<redacted>
BACKEND_URI=<redacted>
ALLOWED_ORIGINS=<redacted>
AZURE_FORMRECOGNIZER_RESOURCE_GROUP=<redacted>
AZURE_CONTAINER_REGISTRY_NAME=<redacted>
SEARCH_API_URI=<redacted>
AZURE_TENANT_ID=<redacted>
SERVICE_INDEXER_RESOURCE_EXISTS=<redacted>
AZURE_OPENAI_CHATGPT_DEPLOYMENT=<redacted>
AZURE_SEARCH_SERVICE_RESOURCE_GROUP=<redacted>
AZURE_STORAGE_CONTAINER=<redacted>
SERVICE_SEARCH_IMAGE_NAME=<redacted>
AZURE_SUBSCRIPTION_ID=<redacted>
AZURE_FORMRECOGNIZER_SERVICE=<redacted>
AZURE_OPENAI_EMBEDDING_MODEL=<redacted>
| =| Deploying service webapp (Retrieving deployment token)2023/12/06 23:18:32 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:32 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
POST https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/listSecrets?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
| | Deploying service webapp (Retrieving deployment token)2023/12/06 23:18:33 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/234.809459ms, OpTime=235.660334ms) -- RESPONSE RECEIVED
POST https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/listSecrets?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 373
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:18:32 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Writes: REDACTED
X-Ms-Request-Id: c1dfd74d-f810-45ee-8203-97e59629219f
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:18:33 main.go:48: Retry: response 200
2023/12/06 23:18:33 main.go:48: Retry: exit due to non-retriable status code
2023/12/06 23:18:33 swa.go:72: SWA Deploy: TenantId: 51397421-87d6-42c1-8bab-98305329d75c, SubscriptionId: b57b253a-e19e-4a9c-a0c0-a5062910a749, ResourceGroup: rg-dfberry-vscode-js-fe-3, ResourceName: webapp, Environment: default
|= | Deploying service webapp (Uploading deployment artifacts)2023/12/06 23:18:36 command_runner.go:307: Run exec: 'npx -y @azure/[email protected] deploy --tenant-id 51397421-87d6-42c1-8bab-98305329d75c --subscription-id b57b253a-e19e-4a9c-a0c0-a5062910a749 --resource-group rg-dfberry-vscode-js-fe-3 --app-name webapp --app-location ./packages/webapp --output-location dist --env default --no-use-keychain --deployment-token <redacted>' , exit code: 0
-------------------------------------stdout-------------------------------------------
Welcome to Azure Static Web Apps CLI (1.0.6)
Deploying front-end files from folder:
/workspaces/azure-search-openai-javascript/packages/webapp/dist
Deploying to environment: default
Deploying project to Azure Static Web Apps...
-------------------------------------stderr-------------------------------------------
- Preparing deployment. Please wait...
2023/12/06 23:18:36 service_target_staticwebapp.go:116:
Welcome to Azure Static Web Apps CLI (1.0.6)
Deploying front-end files from folder:
/workspaces/azure-search-openai-javascript/packages/webapp/dist
Deploying to environment: default
Deploying project to Azure Static Web Apps...
- Preparing deployment. Please wait...
| =| Deploying service webapp (Verifying deployment)2023/12/06 23:18:36 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:36 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
|= | Deploying service webapp (Verifying deployment)2023/12/06 23:18:36 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/355.094792ms, OpTime=355.16575ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:18:35 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 533c5d41-f831-4fc4-a5b1-902ebdb8a086
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:18:36 main.go:48: Retry: response 200
2023/12/06 23:18:36 main.go:48: Retry: exit due to non-retriable status code
| ===| Deploying service webapp (Verifying deployment)2023/12/06 23:18:41 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:41 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
| =| Deploying service webapp (Verifying deployment)2023/12/06 23:18:41 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/311.717042ms, OpTime=311.800042ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:18:41 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 2acee06f-f89a-4397-926e-993add819cb0
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:18:41 main.go:48: Retry: response 200
2023/12/06 23:18:41 main.go:48: Retry: exit due to non-retriable status code
| ====| Deploying service webapp (Verifying deployment)2023/12/06 23:18:46 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:46 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
| ==| Deploying service webapp (Verifying deployment)2023/12/06 23:18:47 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/342.762917ms, OpTime=342.846667ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:18:47 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 275b4879-670a-4bc4-a607-ac8506c95460
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:18:47 main.go:48: Retry: response 200
2023/12/06 23:18:47 main.go:48: Retry: exit due to non-retriable status code
| ======| Deploying service webapp (Verifying deployment)2023/12/06 23:18:52 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:52 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
| ====| Deploying service webapp (Verifying deployment)2023/12/06 23:18:52 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/231.371666ms, OpTime=232.009ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:18:52 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 89a50276-f7d5-4ec4-a6b3-5c696ec331bc
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:18:52 main.go:48: Retry: response 200
2023/12/06 23:18:52 main.go:48: Retry: exit due to non-retriable status code
|====== | Deploying service webapp (Verifying deployment)2023/12/06 23:18:57 main.go:48: Retry: =====> Try=1
2023/12/06 23:18:57 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
| ======| Deploying service webapp (Verifying deployment)2023/12/06 23:18:57 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/320.378875ms, OpTime=320.444917ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:18:57 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 2de34ab3-0bbb-4fd9-ad59-4dcb81c57e7c
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:18:57 main.go:48: Retry: response 200
2023/12/06 23:18:57 main.go:48: Retry: exit due to non-retriable status code
|===== | Deploying service webapp (Verifying deployment)2023/12/06 23:19:02 main.go:48: Retry: =====> Try=1
2023/12/06 23:19:02 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
|====== | Deploying service webapp (Verifying deployment)2023/12/06 23:19:03 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/227.724292ms, OpTime=227.962375ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:19:03 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 13e843dd-e8b9-45f6-9152-65066f9234e9
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:19:03 main.go:48: Retry: response 200
2023/12/06 23:19:03 main.go:48: Retry: exit due to non-retriable status code
|=== | Deploying service webapp (Verifying deployment)2023/12/06 23:19:08 main.go:48: Retry: =====> Try=1
2023/12/06 23:19:08 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
|==== | Deploying service webapp (Verifying deployment)2023/12/06 23:19:08 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/329.471209ms, OpTime=329.500584ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:19:08 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 2e2fb917-e292-4e29-8574-88c1784c3914
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:19:08 main.go:48: Retry: response 200
2023/12/06 23:19:08 main.go:48: Retry: exit due to non-retriable status code
|= | Deploying service webapp (Verifying deployment)2023/12/06 23:19:13 main.go:48: Retry: =====> Try=1
2023/12/06 23:19:13 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
|=== | Deploying service webapp (Verifying deployment)2023/12/06 23:19:13 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/317.754542ms, OpTime=317.888458ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:19:13 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 97acee68-3bb9-402f-a0f2-d5705caac78f
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:19:13 main.go:48: Retry: response 200
2023/12/06 23:19:13 main.go:48: Retry: exit due to non-retriable status code
| | Deploying service webapp (Verifying deployment)2023/12/06 23:19:18 main.go:48: Retry: =====> Try=1
2023/12/06 23:19:18 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
|== | Deploying service webapp (Verifying deployment)2023/12/06 23:19:19 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/407.772625ms, OpTime=407.890917ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:19:19 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 2cd84d9c-810c-47a6-bab1-500dae6e88cd
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:19:19 main.go:48: Retry: response 200
2023/12/06 23:19:19 main.go:48: Retry: exit due to non-retriable status code
| =| Deploying service webapp (Verifying deployment)2023/12/06 23:19:24 main.go:48: Retry: =====> Try=1
2023/12/06 23:19:24 main.go:48: Request: ==> OUTGOING REQUEST (Try=1)
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
| | Deploying service webapp (Verifying deployment)2023/12/06 23:19:24 main.go:48: Response: ==> REQUEST/RESPONSE (Try=1/314.204333ms, OpTime=314.278208ms) -- RESPONSE RECEIVED
GET https://management.azure.com/subscriptions/b57b253a-e19e-4a9c-a0c0-a5062910a749/resourceGroups/rg-dfberry-vscode-js-fe-3/providers/Microsoft.Web/staticSites/webapp/builds/default?api-version=2021-03-01
Accept: application/json
Authorization: REDACTED
User-Agent: azsdk-go-armappservice/v1.0.0 (go1.21.0 X:loopvar; linux),azdev/1.5.0 (Go go1.21.0 X:loopvar; linux/arm64)
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
--------------------------------------------------------------------------------
RESPONSE Status: 200 OK
Cache-Control: no-cache
Content-Length: 604
Content-Type: application/json
Date: Wed, 06 Dec 2023 23:19:24 GMT
Expires: -1
Pragma: no-cache
Strict-Transport-Security: REDACTED
X-Aspnet-Version: REDACTED
X-Cache: REDACTED
X-Content-Type-Options: REDACTED
X-Ms-Correlation-Request-Id: 77bd5b617252baf79f3f2bc8d671b9e2
X-Ms-Ratelimit-Remaining-Subscription-Reads: REDACTED
X-Ms-Request-Id: 323da53e-53ad-4d9a-962a-8c64d03bc457
X-Ms-Routing-Request-Id: REDACTED
X-Msedge-Ref: REDACTED
X-Powered-By: REDACTED
2023/12/06 23:19:24 main.go:48: Retry: response 200
2023/12/06 23:19:24 main.go:48: Retry: exit due to non-retriable status code
(x) Failed: Deploying service webapp
ERROR: failed deploying service 'webapp': failing invoking action 'deploy', failed verifying static web app deployment. Still in WaitingForDeployment state
@weikanglim can you triage it?
@dfberry Thanks for the issue! At a glance, azd is working as expected but timed out waiting for the static web app deployment. We'll need help from our friends on the service-side to troubleshoot further.
Out of curiosity, were you able to visit Diagnose and solve problems -> Content Deployment tab on the Static Web App resource (picture below)? If it persists, creating a support ticket with the X-Ms-Correlation-Request-Id or TraceId attached would be helpful for the service teams to help troubleshoot.
I'm hitting this too @weikanglim
Looking at the Content Deployment area it shows no deployments in the last 24 hours (despite trying three time in the last three hours).
Here's a X-MS-Correlation-Request-Id for you to track - 7cca6885546e1482058db90f2c7188a0
@aaronpowell @dfberry have you been hitting this issue lately?
@weikanglim any findings?
Yes, issue is still there
I am experiencing the same behavior and have nothing in my content deployments history either.
ERROR: failed deploying service 'frontend': failed verifying static web app deployment. Still in WaitingForDeployment state
If it helps triage/troubleshoot:
- I have defined 'frontend' as a service in my azure.yaml for azd
- My Bicep for SWA is defined as follows, calling the Azure Verified Module corresponding to SWA:
module staticSite 'br/public:avm/res/web/static-site:0.3.0' = { name: 'staticSiteDeployment' scope : rg params: { name: '${abbrs.webStaticSites}${resourceToken}' location: 'eastus2' sku: 'Standard' managedIdentities: { systemAssigned: true } allowConfigFileUpdates: true appSettings: { WEBSITES_CONTAINER_START_TIME_LIMIT : 1800 } tags: union(tags, { 'azd-service-name': 'frontend' }) } }
I was hoping the appSetting above (found in some other post) would help, but it hasn't.
I have also run into this one @weikanglim and @kristenwomack. Deploying with the static web apps CLI works every time though.
@nzthiago thanks for bumping this up. Is this intermittent or it always fails? do you have any sample for this?
@v-xuto can you try to repro?
It's part of a large sample that includes a lot of other moving parts here in this repo and branch - https://github.com/nzthiago/Durable-Task-Scheduler/tree/durable-maf-agents
But it seems to happen pretty much every time on a new deployment when the static web app is new.
Looks like this is the only sample in that repo using SWA @nzthiago https://github.com/nzthiago/Durable-Task-Scheduler/tree/3eb15a20daa5126943e60adf99c0e3f1f1764a5a/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator Can you confirm this is where you see the issue?
The sample has a valid swa-cli.config.json, I'm surprised it fails. When this file is present, azd delegates the full deployment (build + deploy) to the swa-cli. I'll try to give it a try as well.
In the original issue, there is no swa-cli.config.json - in which case azd uses swa-cli only to deploy (azd does the building).
@rajeshkamal5050 We have been able to reproduce this issue with https://github.com/nzthiago/Durable-Task-Scheduler/tree/durable-maf-agents/samples/durable-functions/dotnet/AiAgentTravelPlanOrchestrator:
-
Using
azd deploy web, the deployment process gets stuck at "Waiting for deployment". -
Using
npx swa deploy, it can be deployed successfully.
Environment:
- OS: Mac arm, Windows
- Azd version: azd version 1.22.0 (commit c9ab0f2dcc59298e258032e804b2d3c85338c56c).
- Node version: v22.15.1
- Npm version: 11.3.0