Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
aaf27f2
Wip
MicroFish91 Feb 19, 2025
149eb14
WIP: Advanced create scaffold done
MicroFish91 Feb 24, 2025
2b14722
WIP: ContainerAppListStep
MicroFish91 Feb 27, 2025
42bc11a
WIP: First pass needs test
MicroFish91 Feb 27, 2025
7e0e6b3
Misc fixes
MicroFish91 Feb 28, 2025
9ab8315
Misc
MicroFish91 Feb 28, 2025
9a50407
WIP: Basic almost done
MicroFish91 Mar 2, 2025
5bad23c
WIP: Mostly working on all fronts minus updated pick filters
MicroFish91 Mar 2, 2025
069eda8
Misc changes and todos
MicroFish91 Mar 3, 2025
40b315e
Misc
MicroFish91 Mar 3, 2025
570c755
Core logic mostly working
MicroFish91 Mar 3, 2025
f7de2a0
Add name suggestion logic
MicroFish91 Mar 3, 2025
5a81bb5
Update location logic
MicroFish91 Mar 4, 2025
c1ef5fc
Move managed environment prompt first and update locations logic
MicroFish91 Mar 5, 2025
e13e6ae
Merge with main
MicroFish91 Jul 7, 2025
66ad27a
Most of the core logic, needs testing
MicroFish91 Jul 8, 2025
b749915
Clean up auto context population
MicroFish91 Jul 8, 2025
8f3b048
Rename pick strategies
MicroFish91 Jul 8, 2025
2fc34be
Remove some todos
MicroFish91 Jul 8, 2025
63f8333
API changes
MicroFish91 Jul 8, 2025
f9ef062
Update step order
MicroFish91 Jul 9, 2025
09025a0
Merge with main
MicroFish91 Aug 23, 2025
5275048
Nit formatting
MicroFish91 Aug 23, 2025
63de6ea
Remove readme
MicroFish91 Aug 23, 2025
4182ccf
Make sure tree item deployment still works well
MicroFish91 Aug 23, 2025
b1ebac5
Move step order
MicroFish91 Aug 23, 2025
4f67144
Small fix
MicroFish91 Aug 23, 2025
c4deb93
Use enum
MicroFish91 Aug 24, 2025
efd8a27
Update changelog
MicroFish91 Aug 25, 2025
f5cc187
Update managed environment list step
MicroFish91 Aug 25, 2025
4d843b2
Rename method
MicroFish91 Aug 25, 2025
993e38d
Simplify boolean expression
MicroFish91 Aug 25, 2025
34b9cc2
Add deployment mode telemetry
MicroFish91 Aug 25, 2025
48af602
Add more telemetry
MicroFish91 Aug 25, 2025
3c36a95
Formatting
MicroFish91 Aug 25, 2025
666b13d
Clean more stuff up
MicroFish91 Aug 25, 2025
6b22fe8
Update starting resources step
MicroFish91 Aug 25, 2025
c0a9fee
Reduce duplicates in telemetry
MicroFish91 Aug 25, 2025
4f49a71
Add flag
MicroFish91 Aug 26, 2025
301512e
Simplify setting related resources
MicroFish91 Aug 27, 2025
d0e61a4
Simplify some more
MicroFish91 Aug 27, 2025
18f3788
Misc changes
MicroFish91 Aug 28, 2025
e888533
Remove support for managed environment items
MicroFish91 Aug 28, 2025
588639f
Update walkthrough
MicroFish91 Aug 29, 2025
f7fbfd7
Add more details for basic create
MicroFish91 Aug 29, 2025
771eb2e
Merge branch 'mwf/tame-scarlet' of https://github.com/microsoft/vscod…
MicroFish91 Aug 29, 2025
563a58a
Rethrow better error message
MicroFish91 Sep 1, 2025
05ed036
Update formatting
MicroFish91 Sep 1, 2025
1dbd11d
Merge branch 'main' of https://github.com/microsoft/vscode-azureconta…
MicroFish91 Sep 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions resources/walkthrough/add-workspace-project.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
| Prompt | Value |
|--------|-------|
| Pick a repository source | Select: <b>Clone from GitHub</b> |
| Enter a repository name | [https://github.com/Azure-Samples/containerapps-albumapi-javascript]() |
| Provide repository URL | [https://github.com/Azure-Samples/containerapps-albumapi-javascript]() |
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

git.clone prompt sequence has changed - updated accordingly

| Select a folder to clone the project into | Select a repository destination. |
| Open the project | Select: <b>Open</b> |
2 changes: 1 addition & 1 deletion resources/walkthrough/clean-up-resources.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
| Prompt | Value |
|--------|-------|
| Select subscription | Select the Azure subscription used in the previous step. |
| Select resource group(s) | Select <b>my-container-env</b> and press enter. |
| Select resource group(s) | Select <b>contoso-env</b> and press enter. |
| Confirm resources to delete | Select: <b>Delete</b> |
11 changes: 6 additions & 5 deletions resources/walkthrough/create-and-deploy.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
| Prompt | Value |
|--------|-------|
| Select subscription | Select the Azure subscription you want to use. |
| Select a container apps environment | Select: <b>Create new container apps environment</b>. You will only be asked this question if you have existing container apps environments. |
| Confirm resources to create | Select: <b>Continue</b> |
| Enter a name for the new container app environment resources | Enter: <b>my-container-env</b> |
| Enter a name for the new container app | Enter: <b>my-container-app</b> |
| Select deployment mode | Select: <b>Basic</b> |
| Enter a name for container environment resources | Enter: <b>contoso-env</b> |
| Enter a name for the new container app | Enter: <b>contoso-app</b> |
| Select a location | Select an Azure region near you. |
| Select a registry connection method | Select: <b>Managed Identity</b> |
| Provide a source code directory for upload | Select: <b>./src</b> |
| Select a location | Select an Azure region close to you. |
| Confirm resources to be created | Select: <b>Continue</b> |
| Save deployment configuration | Select: <b>Save</b> |
| <i>On completion<i>: | <details><summary>View Save Configuration: </summary><p>`.vscode/settings.json`:</p><img src="./images/dwp-saved-settings.png"></details> <details><summary>View Activity Log: </summary><img src="./images/dwp-activity-log.png"></details> <details><summary>View Deployment: </summary><img src="./images/dwp-popup.png"></details> <details><summary>View Azure Resources Tree (Resource Type): </summary><img src="./images/dwp-tree-resource-type.png"></details> <details><summary>View Azure Resources Tree (Resource Group): </summary><img src="./images/dwp-tree-resource-group.png"></details> |
1 change: 1 addition & 0 deletions resources/walkthrough/explore-details.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
| <h4>I. <u>Add a workspace project</u></h4>Navigate to the Explorer view and add a project with a Dockerfile to the local VS Code workspace using <b>Open Folder</b> or <b>Clone Repository</b>. | <img src="./images/explorer-workspace-project.png"> |
| <h4>II. <u>Sign in to Azure</u></h4>Navigate to the Azure Resources view and select: <b>Sign in to Azure</b>. | <img src="./images/azure-sign-in.png"></details> |
| <h4>III. <u>Create and deploy</u></h4>Navigate to the Azure Workspace view and use the container app icon to select: <b>Deploy Project from Workspace</b>.<br /><br />Re-deploy to the same resources by running the command again with saved workspace settings (<i>.vscode/settings.json</i>). | <img src="./images/deploy-workspace-project.png"> |
| <h4>IV. <u>Open Walkthrough</u></h4>Navigate to the Azure Workspace view and use the container app icon to select: <b>Open Walkthrough</b> if you ever need to return to this walkthrough again in the future. | <img src="./images/dwp-open-walkthrough.png"> |
Binary file modified resources/walkthrough/images/dwp-activity-log.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/walkthrough/images/dwp-popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/walkthrough/images/dwp-saved-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/walkthrough/images/dwp-tree-resource-group.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/walkthrough/images/dwp-tree-resource-type.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 15 additions & 2 deletions src/commands/walkthrough/addWorkspaceProject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { UserCancelledError, type IActionContext } from "@microsoft/vscode-azext-utils";
import { parseError, UserCancelledError, type IActionContext, type IParsedError } from "@microsoft/vscode-azext-utils";
import { commands, workspace, type MessageItem } from "vscode";
import { localize } from "../../utils/localize";

Expand All @@ -18,5 +18,18 @@ export async function addWorkspaceProjectWalkthrough(context: IActionContext): P
throw new UserCancelledError();
}

await commands.executeCommand('git.clone');
try {
await commands.executeCommand('git.clone');
} catch (e) {
const perr: IParsedError = parseError(e);
if (/git\.clone.*not found/i.test(perr.message)) {
throw new Error(localize('gitCloneNotFound',
'Command "git.clone" not found. This could be due to one of the following reasons:\n\n' +
'- Git is not installed on your system.\n' +
'- Git is installed but not added to your system PATH.\n' +
'- Git is installed but is broken or permission-blocked.\n\n' +
'Please ensure Git is installed and properly configured.'));
}
throw e;
}
}