From 026aa977445533aa68045802ff308f2b1d5511fb Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Fri, 23 Jan 2026 22:54:00 +0000 Subject: [PATCH 1/3] fix security issue with playwright/test 1.49.1 (#6592) --- ext/vscode/package-lock.json | 70 ++---------------------------------- 1 file changed, 3 insertions(+), 67 deletions(-) diff --git a/ext/vscode/package-lock.json b/ext/vscode/package-lock.json index 74f3dfdd325..f16a63bf04d 100644 --- a/ext/vscode/package-lock.json +++ b/ext/vscode/package-lock.json @@ -19,7 +19,6 @@ }, "devDependencies": { "@azure/core-auth": "~1", - "@playwright/test": "~1.49", "@types/chai": "~5", "@types/mocha": "~10", "@types/node": "~20", @@ -925,22 +924,6 @@ "node": ">=14" } }, - "node_modules/@playwright/test": { - "version": "1.49.1", - "resolved": "https://registry.npmjs.org/@playwright/test/-/test-1.49.1.tgz", - "integrity": "sha512-Ky+BVzPz8pL6PQxHqNRW1k3mIyv933LML7HktS8uik0bUXNCdPhoS/kLihiO1tMf/egaJb4IutXd7UywvXEW+g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright": "1.49.1" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/@polka/url": { "version": "1.0.0-next.29", "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.29.tgz", @@ -3948,21 +3931,6 @@ "node": ">=14.14" } }, - "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "hasInstallScript": true, - "license": "MIT", - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -6227,38 +6195,6 @@ "node": ">=8" } }, - "node_modules/playwright": { - "version": "1.49.1", - "resolved": "https://registry.npmjs.org/playwright/-/playwright-1.49.1.tgz", - "integrity": "sha512-VYL8zLoNTBxVOrJBbDuRgDWa3i+mfQgDTrL8Ah9QXZ7ax4Dsj0MSq5bYgytRnDVVe+njoKnfsYkH3HzqVj5UZA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "playwright-core": "1.49.1" - }, - "bin": { - "playwright": "cli.js" - }, - "engines": { - "node": ">=18" - }, - "optionalDependencies": { - "fsevents": "2.3.2" - } - }, - "node_modules/playwright-core": { - "version": "1.49.1", - "resolved": "https://registry.npmjs.org/playwright-core/-/playwright-core-1.49.1.tgz", - "integrity": "sha512-BzmpVcs4kE2CH15rWfzpjzVGhWERJfmnXmniSyKeRZUs9Ws65m+RGIi7mjJK/euCegfn3i7jvqWeWyHe9y3Vgg==", - "dev": true, - "license": "Apache-2.0", - "bin": { - "playwright-core": "cli.js" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/pluralize": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/pluralize/-/pluralize-8.0.0.tgz", @@ -7787,9 +7723,9 @@ "license": "MIT" }, "node_modules/undici": { - "version": "7.16.0", - "resolved": "https://registry.npmjs.org/undici/-/undici-7.16.0.tgz", - "integrity": "sha512-QEg3HPMll0o3t2ourKwOeUAZ159Kn9mx5pnzHRQO8+Wixmh88YdZRiIwat0iNzNNXn0yoEtXJqFpyW7eM8BV7g==", + "version": "7.19.0", + "resolved": "https://registry.npmjs.org/undici/-/undici-7.19.0.tgz", + "integrity": "sha512-Heho1hJD81YChi+uS2RkSjcVO+EQLmLSyUlHyp7Y/wFbxQaGb4WXVKD073JytrjXJVkSZVzoE2MCSOKugFGtOQ==", "dev": true, "license": "MIT", "engines": { From ded7e02bbb98231ce1d7ddf73ee479d99f90da4d Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Sat, 21 Feb 2026 02:57:45 +0000 Subject: [PATCH 2/3] registry update for appservice extension --- cli/azd/extensions/registry.json | 73 ++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) diff --git a/cli/azd/extensions/registry.json b/cli/azd/extensions/registry.json index 6d9eec411e0..156129f547b 100644 --- a/cli/azd/extensions/registry.json +++ b/cli/azd/extensions/registry.json @@ -3036,6 +3036,79 @@ } } ] + }, + { + "id": "azure.appservice", + "namespace": "appservice", + "displayName": "Azure App Service", + "description": "Extension for managing Azure App Service resources.", + "versions": [ + { + "version": "0.1.0", + "capabilities": [ + "custom-commands", + "metadata" + ], + "usage": "azd appservice \u003ccommand\u003e [options]", + "examples": [ + { + "name": "swap", + "description": "Swap deployment slots for an App Service.", + "usage": "azd appservice swap --service \u003cservice-name\u003e --src \u003csource-slot\u003e --dst \u003cdestination-slot\u003e" + } + ], + "artifacts": { + "darwin/amd64": { + "checksum": { + "algorithm": "sha256", + "value": "556e61f1cccb7fe30018c0a8e4bea6a5c2dfeacae280cace3884df14ae5b9757" + }, + "entryPoint": "azure-appservice-darwin-amd64", + "url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-appservice_0.1.0/azure-appservice-darwin-amd64.zip" + }, + "darwin/arm64": { + "checksum": { + "algorithm": "sha256", + "value": "702c687a99fb5465a0ccce2ca5f0827e0da2d8e7a39ff86f1a0361296bb80a47" + }, + "entryPoint": "azure-appservice-darwin-arm64", + "url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-appservice_0.1.0/azure-appservice-darwin-arm64.zip" + }, + "linux/amd64": { + "checksum": { + "algorithm": "sha256", + "value": "2fb4efb9e2dfdbfa9ad1d54483213d38dec19361343eeb75615353a7d93a3448" + }, + "entryPoint": "azure-appservice-linux-amd64", + "url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-appservice_0.1.0/azure-appservice-linux-amd64.tar.gz" + }, + "linux/arm64": { + "checksum": { + "algorithm": "sha256", + "value": "69204c40496bff0d6677ab8eb811d20173806a588b8f89572ab38157328c812a" + }, + "entryPoint": "azure-appservice-linux-arm64", + "url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-appservice_0.1.0/azure-appservice-linux-arm64.tar.gz" + }, + "windows/amd64": { + "checksum": { + "algorithm": "sha256", + "value": "2306b741af14700cd65cb6efe16adac4050c7c84413c7dd74376c40e952dc1ee" + }, + "entryPoint": "azure-appservice-windows-amd64.exe", + "url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-appservice_0.1.0/azure-appservice-windows-amd64.zip" + }, + "windows/arm64": { + "checksum": { + "algorithm": "sha256", + "value": "fc08097662690218d2ab4a42d2bb634b4ec05722fdfaf9f97b30b5b570f5a790" + }, + "entryPoint": "azure-appservice-windows-arm64.exe", + "url": "https://github.com/Azure/azure-dev/releases/download/azd-ext-azure-appservice_0.1.0/azure-appservice-windows-arm64.zip" + } + } + } + ] } ] } \ No newline at end of file From 50edf8205daa9da526e3996661e443fd8cb12ee0 Mon Sep 17 00:00:00 2001 From: Victor Vazquez Date: Sat, 21 Feb 2026 03:59:12 +0000 Subject: [PATCH 3/3] test snaps --- cli/azd/cmd/testdata/TestFigSpec.ts | 57 +++++++++++++++++++ .../testdata/TestUsage-azd-appservice.snap | 16 ++++++ cli/azd/cmd/testdata/TestUsage-azd.snap | 1 + 3 files changed, 74 insertions(+) create mode 100644 cli/azd/cmd/testdata/TestUsage-azd-appservice.snap diff --git a/cli/azd/cmd/testdata/TestFigSpec.ts b/cli/azd/cmd/testdata/TestFigSpec.ts index e01aa6cb8b1..4331253233d 100644 --- a/cli/azd/cmd/testdata/TestFigSpec.ts +++ b/cli/azd/cmd/testdata/TestFigSpec.ts @@ -1061,6 +1061,49 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['appservice'], + description: 'Extension for managing Azure App Service resources.', + subcommands: [ + { + name: ['swap'], + description: 'Swap deployment slots for an App Service.', + options: [ + { + name: ['--dst'], + description: 'The destination slot name. Use @main for production.', + args: [ + { + name: 'dst', + }, + ], + }, + { + name: ['--service'], + description: 'The name of the service to swap slots for.', + args: [ + { + name: 'service', + }, + ], + }, + { + name: ['--src'], + description: 'The source slot name. Use @main for production.', + args: [ + { + name: 'src', + }, + ], + }, + ], + }, + { + name: ['version'], + description: 'Display the version of the extension.', + }, + ], + }, { name: ['auth'], description: 'Authenticate with Azure.', @@ -2967,6 +3010,20 @@ const completionSpec: Fig.Spec = { }, ], }, + { + name: ['appservice'], + description: 'Extension for managing Azure App Service resources.', + subcommands: [ + { + name: ['swap'], + description: 'Swap deployment slots for an App Service.', + }, + { + name: ['version'], + description: 'Display the version of the extension.', + }, + ], + }, { name: ['auth'], description: 'Authenticate with Azure.', diff --git a/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap b/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap new file mode 100644 index 00000000000..98cf944304d --- /dev/null +++ b/cli/azd/cmd/testdata/TestUsage-azd-appservice.snap @@ -0,0 +1,16 @@ + +Extension for managing Azure App Service resources. + +Usage + azd appservice [flags] + +Global Flags + -C, --cwd string : Sets the current working directory. + --debug : Enables debugging and diagnostics logging. + --docs : Opens the documentation for azd appservice in your web browser. + -h, --help : Gets help for appservice. + --no-prompt : Accepts the default value instead of prompting, or it fails if there is no default. + +Find a bug? Want to let us know how we're doing? Fill out this brief survey: https://aka.ms/azure-dev/hats. + + diff --git a/cli/azd/cmd/testdata/TestUsage-azd.snap b/cli/azd/cmd/testdata/TestUsage-azd.snap index 9b12faf0c6f..1bb17712fed 100644 --- a/cli/azd/cmd/testdata/TestUsage-azd.snap +++ b/cli/azd/cmd/testdata/TestUsage-azd.snap @@ -39,6 +39,7 @@ Commands Enabled extensions commands ai : Commands for the ai extension namespace. + appservice : Extension for managing Azure App Service resources. coding-agent : This extension configures GitHub Copilot Coding Agent access to Azure concurx : Concurrent execution for azd deployment demo : This extension provides examples of the AZD extension framework.