You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/01-Getting-Started-with-GitHub-Copilot-for-Azure.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Getting Started with GitHub Copilot for Azure
2
2
3
-
Unlock a more efficient workflow and boost your productivity with GitHub Copilot for Azure Preview. This quick-start guide takes you through everything you need to know, from preparing the prerequisites to installing the GitHub Copilot for Azure extension in Visual Studio Code. By the end, you’ll be equipped to craft your first prompt and fully leverage the Azure platform’s potential.
3
+
Unlock a more efficient workflow and boost your productivity with GitHub Copilot for Azure and Azure MCP. This quick-start guide takes you through everything you need to know, from preparing the prerequisites to installing the GitHub Copilot for Azure and Azure MCP extensions in Visual Studio Code. By the end, you’ll be equipped to craft your first prompt and fully leverage the Azure platform’s potential.
4
4
5
5
6
6
</header>
@@ -11,7 +11,7 @@ Unlock a more efficient workflow and boost your productivity with GitHub Copilot
11
11
12
12
13
13
## Prerequisite reading:
14
-
-[What is GitHub Copilot for Azure Preview?](https://learn.microsoft.com/azure/developer/github-copilot-azure/introduction)
14
+
-[What is GitHub Copilot for Azure?](https://learn.microsoft.com/azure/developer/github-copilot-azure/introduction)
15
15
16
16
17
17
## 👉 Prerequisites
@@ -38,15 +38,15 @@ To complete the steps in this lab, make sure that you have:
38
38
39
39
[](https://codespaces.new/microsoft/Mastering-GitHub-Copilot-for-Paired-Programming)
40
40
41
-
1. Upon opening VS Code, in the right hans side, click **"Sign in with a GitHub.com account"**.
41
+
1. Upon opening VS Code, in the right hand side, click **"Sign in with a GitHub.com account"**.
42
42
43
43
1. Visual Studio Code will pop up a message asking **"The extension 'GitHub Copilot Chat' wants to sign in using GitHub."** Click **Allow**.
44
44
45
45
1. You will need to authorize Visual Studio Code to continue with the user signed in. Click the **Continue** button.
46
46
47
47
1. And complete the authorization by clicking the **Authorize Visual-Studio-Code** button.
48
48
49
-
1. A popup message will ask to open VS Code. Click **Open**. you will be returned to VS Code, you will be authenticated to GitHub and will have access to **GitHub Copilot**.
49
+
1. A popup message will ask to open VS Code. Click **Open**. you will be returned to VS Code, you will be authenticated to GitHub and will have access to **GitHub Copilot**.
50
50
51
51
52
52
1. In Visual Studio Code, select the **Extensions** icon.
@@ -63,30 +63,30 @@ To complete the steps in this lab, make sure that you have:
63
63
64
64
### ✍️ Step 2: Write your first prompt
65
65
66
-
1.Nowthat the extensions are installed, that you're properly authenticated, and that the extension is working correctly.
66
+
Now, let's verify that the extensions are installed, that you're properly authenticated, and that the extensions are working correctly.
67
67
68
68
1. On the Activity Bar, select the **Chat** icon if the **Ask Copilot** pane is closed.
69
69
70
-
1. In the chat text area at the bottom of the chat pane, enter the following prompt:
70
+
1. In the chat text area at the bottom of the chat pane, enable **Agent** mode, set the Model to *Claude Sonnet 4* or *GPT-5*, then enter the following prompt:
71
71
72
72
```prompt
73
-
@azure Do I have any resources currently running?
73
+
Do I have any Azure resources currently running?
74
74
```
75
-
> In the next section you will be asked to authorize applications and services multiple times. This is for your protection and will only be done once. We are authorizing **GitHub**, **VS Code** and **Azure** to trust the prompts with the credentials supplied.
75
+
> In the next section you will be asked to authorize applications and services multiple times. This is for your protection and will only be done once. We are authorizing **GitHub**, **VS Code** and **Azure** to trust the prompts with the credentials supplied.
76
76
77
-
1. You might get a message in the GitHub Copilot Chat pane that states "you need to sign in your Microsoftaccount to use GitHub Copilot for Azure (@Azure)".
77
+
1. You might get a message in the GitHub Copilot Chat pane that states "you need to sign in your Microsoft account to use GitHub Copilot for Azure (@Azure)".
78
78
79
79
1. If you do, click the link in the **"Already have an account? Sign in"** line.
80
80
1. Visual Studio Code will pop up a message asking **"The extension 'GitHub Copilot for Azure' wants to sign in using Microsoft."** Click **Allow**.
81
-
1.login using the credentials in the existing session, or the credentials found in the Resource Tab of the lab instructions. The same credential as the Azure subscriptions.
82
-
1. Close the tab. Not the browser.
81
+
1.Login using the credentials in the existing session, or the credentials found in the Resource Tab of the lab instructions. The same credential as the Azure subscriptions.
82
+
1. Close the tab. Not the browser.
83
83
1. Return to VS Code. Visual Studio Code will pop up a message asking **"The extension 'GitHub Copilot for Azure' wants to access the language models provided by GitHub Copilot Chat."** Click **Allow**.
84
84
1. Visual Studio Code will pop up another message asking **"The extension 'GitHub Copilot for Azure' wants to sign in using GitHub."** Click **Allow** again.
85
-
1. You will need to authorize Visual Studio Code to continue with the user signed in. Click the **Continue** button
85
+
1. You will need to authorize Visual Studio Code to continue with the user signed in. Click the **Continue** button.
86
86
1. Complete the authorization by clicking the **Authorize Visual-Studio-Code** button.
87
-
1. A popup message will ask to open VS Code. Click **Open**. you will be returned to VS Code, you will be authenticated to GitHub and will have access to **GitHub Copilot**.
87
+
1. A popup message will ask to open VS Code. Click **Open**. You will be returned to VS Code, you will be authenticated to GitHub and will have access to **GitHub Copilot**.
88
88
89
-
1. The Copilot for Azure extension will query the Azure Resource graph, provide you with the resource query and provide the answer. Which at this point should be **You currently do not have any running resources across all your subscriptions.**
89
+
1. The GitHub Copilot for Azure extension tools will query the Azure Resource graph, provide you with the resource query and provide the answer. Which at this point should be **You currently do not have any running resources across all your subscriptions.**
# Build and deploy your application with GitHub Copilot for Azure
1
+
# Build and deploy your application with GitHub Copilot for Azure and Azure MCP
2
2
3
-
This module is a continuation of module 1 and provides a step-by-step guide on using GitHub Copilot for Azure Preview to create and deploy a new website in Azure.
3
+
This module is a continuation of module 1 and provides a step-by-step guide on using GitHub Copilot for Azure and Azure MCP to create and deploy a new website in Azure.
4
4
5
-
It highlights an approach to seamlessly integrating GitHub Copilot for Azure into your development and deployment workflow.
5
+
It highlights an approach to seamlessly integrating the extensions and their tools into your development and deployment workflow.
6
6
7
7
## Prerequisites
8
8
9
9
Completion of [Module 1 - Getting Started to use GitHub Copilot for Azure](https://github.com/microsoft/Mastering-GitHub-Copilot-for-Paired-Programming/blob/main/09-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/01-Getting-Started-with-GitHub-Copilot-for-Azure.md)
10
10
11
-
## Create and deploy a website by using GitHub Copilot for Azure Preview
11
+
## Create and deploy a website by using GitHub Copilot for Azure and Azure MCP
12
12
13
13
1. Create a new folder on your local computer where you can create a local clone of a GitHub repository.
14
-
1. In VS Code click **File**, Then**Open Folder**
15
-
1.in the **Open Folder** dialogue box, click **New Folder**, Give the folder a name, select it, then click **Select Folder**
14
+
1. In VS Code click **File**, then**Open Folder**.
15
+
1.In the **Open Folder** dialogue box, click **New Folder**, give the folder a name, select it, then click **Select Folder**.
16
16
17
-
1. VS Code will ask you **Do you trust the Authors of the files in this folder?**
18
-
1. click the **Yes, I trust the authors**
17
+
1. VS Code will ask you **Do you trust the authors of the files in this folder?**
18
+
1. click the **Yes, I trust the authors**.
19
19
20
20
1. In Visual Studio Code, select **View** > **Terminal**. On the terminal pane, go to the new folder.
21
21
22
-
1. On the status Bar, select the **Chat** (GitHub) icon to open the chat pane.
22
+
1. On the status bar, select the **Chat** (GitHub) icon to open the chat pane.
23
23
24
24
1. Start a new chat session by selecting the plus icon (**+**) on the pane's title bar.
25
25
26
26

27
27
28
-
> If you closed the GitHub Copilot Chat after the last Module, click the GitHub icon in the status bar. Bottom-right of your VS Code screen. And select **"GitHub Copilot Chat"** in the option menu.
29
-
>
30
-
> 
31
-
32
-
6. In the chat text box, type the following prompt. Then select **Send** (paper airplane icon) or select Enter on your keyboard.
28
+
1. In the chat text box, type the following prompt. Then select **Send** (paper airplane icon) or select Enter on your keyboard.
33
29
34
30
```prompt
35
-
@azure Could you help me create and deploy a simple Flask website by using Python?
31
+
Help me create a simple Flask website using Python and deploy it to Azure
36
32
```
37
33
38
34
> **IMPORTANT**
39
-
The exact wording of the response is different each time GitHub Copilot for Azure answers, due to how large language models generate responses.
40
-
41
-
After a moment, GitHub Copilot for Azure likely suggests an `azd` template to use. Or in some cases will provide an answer like the following:
35
+
The exact wording of the response is different each time Copilot answers, due to how large language models generate responses.
42
36
43
-

37
+
After a moment, Copilot may suggest starting with an `azd` template or may start building the application from scratch.
44
38
45
-
Just Remember that the Large Language Model will understand what you tell it. Therefore, just have the conversation with it.
39
+
Just Remember that the Large Language Model will understand what you tell it. Therefore, just have the conversation with it.
46
40
47
-
1. If the answer provides a command that begins with `azd init` in a code fence, hover over the code fence to reveal a small pop-up action menu.
41
+
1. If the response provides a command that begins with `azd init` in a code fence and Copilot doesn't offer to run the command for you, hover over the code fence to reveal a small pop-up action menu.
48
42
49
43

50
44
51
45
Select **Insert into Terminal** to insert the command into the terminal.
52
46
53
47

54
48
55
-
1. Before you run the `azd init` command, you might have questions about how it affects your local computer and your Azure subscription.
49
+
1. Before you run the `azd init` command or allow Copilot to run it for you, you might have questions about how it affects your local computer and your Azure subscription.
56
50
57
51
Use the following prompt:
58
52
59
53
```prompt
60
-
@azure Before I execute azd init, what does it do?
54
+
Before I execute azd init, what does it do?
61
55
```
62
56
63
57
You might see a response that resembles the following screenshot.
@@ -67,7 +61,7 @@ The exact wording of the response is different each time GitHub Copilot for Azur
67
61
1. Use the following prompt to learn more about the `azd` template:
68
62
69
63
```prompt
70
-
@azure What resources are created with this template?
64
+
What resources are created with this template?
71
65
```
72
66
73
67
You might see a response that resembles the following screenshot.
@@ -77,48 +71,48 @@ The exact wording of the response is different each time GitHub Copilot for Azur
77
71
1. Ask questions about the services that the template uses with a prompt like:
78
72
79
73
```prompt
80
-
@azure What is the purpose of a virtual network?
74
+
What is the purpose of a virtual network?
81
75
```
82
76
83
77
You might see a response that resembles the following screenshot.
84
78
85
79

86
80
87
-
1. When you're satisfied, run the `azd init` command in the terminal. Answer its prompts. If you're unsure what to answer for a prompt, ask GitHub Copilot for Azure for help.
81
+
1. When you're satisfied, run the `azd init` command. Answer its prompts. If you're unsure what to answer for a prompt, ask Copilot for help.
88
82
89
83
1. Before you can continue, you must authenticate the `azd` tool by running in the terminal, the following command:
90
84
91
85
```cmd
92
86
azd auth login
93
87
```
94
88
95
-
1. This will open a browser that will require you to authenticate to Azure. select the same credentials as before.
89
+
1. This will open a browser that will require you to authenticate to Azure. Select the same credentials as before.
96
90
97
-
1. Once the new project is initialized,and that you've authenticated to Azure, use **azd up** command to deploy the application to your subscription. In the terminal, run the command according to the instructions in the original prompt's reply.
91
+
1. Once the new project is initializedand you've authenticated to Azure, use the `azd up` command to deploy the application to your subscription. In the terminal, run the command according to the instructions in the original prompt's reply or let Copilot run it for you if prompted.
98
92
99
93
```
100
94
azd up
101
95
```
102
96
103
97
1. The `azd up` command asks for information about your subscription, where to deploy the resources, and more.
104
98
105
-
If you're uncertain how to answer, you can ask GitHub Copilot for Azure for help. For example, you might ask:
99
+
If you're uncertain how to answer, you can ask Copilot for help. For example, you might ask:
106
100
107
101
```prompt
108
-
@azure azd up is asking me what location I want to deploy the website into. How should I respond?
102
+
azd up is asking me what location I want to deploy the website into. How should I respond?
109
103
```
110
104
111
105
You might see a response that resembles the following screenshot.
112
106
113
107

114
108
115
-
5. Continue to answer prompts from `azd up`. Ask GitHub Copilot for Azure questions as needed.
109
+
5. Continue to answer prompts from `azd up`. Ask Copilot more questions as needed.
116
110
117
111
1. When asked the location select **Canada Central**.
118
112
119
113
Depending on the `azd` template that you're deploying and the location that you selected, the template might take 20 to 40 minutes (or more) to deploy. But we can Move on to [Module 3](https://github.com/microsoft/Mastering-GitHub-Copilot-for-Paired-Programming/blob/main/09-Using-GitHub-Copilot-for-Azure-to-Deploy-to-Cloud/03-Get-Answers-to-your-Questions-about-Azure-Services-and-Resources.md) while it completes
120
114
121
-
1. If `azd up` experiences an error, ask GitHub Copilot for Azure about the error and how you can resolve it.
115
+
1. If `azd up` experiences an error, ask Copilot about the error and how you can resolve it.
122
116
123
117
> **TIP**
124
118
> For an easy way to attach the last terminal command results, use the paperclip icon at the bottom left of the chat pane. GitHub Copilot for Azure doesn't know the terminal command results unless they are copy/pasted or attached via the paperclip.
0 commit comments