Introduction
Microsoft Power Apps is a low-code development platform that allows developers to build business applications with minimal coding. Traditionally, developers use Power Apps Studio to create screens, add controls, configure properties, and implement application logic.
With the help of AI-powered development tools such as GitHub Copilot, developers can now simplify and accelerate the Canvas App development process.
By integrating GitHub Copilot with Microsoft Power Platform Skills and the Canvas Authoring MCP Server, developers can use natural language prompts to create screens, add controls, modify layouts, and implement application functionality.
In this article, we will learn how to configure GitHub Copilot in Visual Studio Code, connect it to an existing Power Apps Studio session, and build a Canvas App step by step.
What Is GitHub Copilot for Power Apps?
GitHub Copilot is an AI-powered coding assistant that helps developers write, understand, and modify code.
With Power Platform Skills, Copilot can assist with Canvas App development through the Canvas Authoring MCP Server.
Instead of manually creating every screen and configuring each control, developers can provide natural language instructions to Copilot.
For example:
Create a new dashboard screen.
Add a gallery connected to a Dataverse table.
Create a modern header with a blue theme.
Add a submit button with navigation functionality.
Improve the layout of an existing screen.
Copilot can interpret these instructions and help implement the requested changes in the Canvas App authoring environment.
Prerequisites
Before getting started, make sure you have the following:
A Microsoft account with access to Power Apps.
Visual Studio Code installed on your machine.
GitHub Copilot CLI installed and configured with plugin support.
Power Platform Skills marketplace access.
.NET SDK installed.
An existing or newly created Power Apps Canvas App.
Step 1: Create a Project Folder on Your Local Machine
First, create a dedicated folder on your local machine to manage your Power Apps development work.
Follow these steps:
Open File Explorer on your Windows machine.
Navigate to the drive where you want to store your project.
Create a new folder.
Give the folder a meaningful name based on your application.
For example:
D:\PowerAppsProjects\InvoiceManagementApp
This folder will serve as your local working directory for the Canvas App development process.
Why create a local folder?
A dedicated folder helps organize your development workspace and provides a location for managing project-related files and Canvas App source files when working with Copilot.
Step 2: Open the Project Folder in Visual Studio Code
After creating the project folder, open it in Visual Studio Code.
Follow these steps:
Open Visual Studio Code.
Click File from the top menu.
Select Open Folder.
Navigate to the folder created in Step 1.
Select the folder and click Select Folder.
If a Workspace Trust confirmation appears, review it and select the appropriate option.
Your project folder will now appear in the Explorer panel of Visual Studio Code.
For example:
InvoiceManagementApp
You can use this folder as your local development workspace while working with Copilot.
Note: Opening a folder in Visual Studio Code does not automatically export or download your existing Canvas App. It simply prepares your local working directory.
Step 3: Open the Copilot Terminal in Visual Studio Code
Now, open the integrated terminal in Visual Studio Code.
Follow these steps:
Open the Terminal menu.
Select New Terminal.
Verify that the terminal is running from your project folder.
Start your GitHub Copilot CLI session.
If your Copilot CLI is already configured, you can start using its commands directly.
This terminal will be used to install the required Power Platform plugin and configure the Canvas MCP connection.
Step 4: Add the Power Platform Skills Marketplace
First, add Microsoft's Power Platform Skills marketplace to your Copilot environment.
Execute the following command in the Copilot terminal:
/plugin marketplace add microsoft/power-platform-skills
This command adds the Power Platform Skills marketplace, which provides development skills for Microsoft Power Platform.
Step 5: Install the Canvas Apps Plugin
After adding the marketplace, install the specific Canvas Apps plugin.
Execute the following command:
/plugin install canvas-apps@power-platform-skills
This plugin provides Canvas App development capabilities, including the Canvas Authoring MCP Server integration.
Once installation is completed, Copilot can use the available Canvas App authoring capabilities.
Step 6: Install the .NET SDK
The Canvas Authoring MCP Server requires the .NET SDK to run its authoring environment.
If .NET is not installed on your machine, follow these steps:
Visit the official Microsoft .NET download page:
https://dotnet.microsoft.com/download
Download the latest suitable .NET SDK.
Run the installer and complete the installation.
Restart Visual Studio Code or your terminal so the environment can recognize the .NET installation.
To verify whether .NET is installed successfully, execute:
dotnet --version
If the installation is successful, the terminal will display the installed .NET SDK version.
Why is .NET required?
The .NET SDK provides the development tools and runtime required by the Canvas Authoring MCP Server to operate in the local development environment.
Step 7: Open Your Canvas App in Power Apps Studio
Now, prepare your Canvas App for Copilot integration.
Follow these steps:
Open your browser.
Visit https://make.powerapps.com.
Sign in with your Microsoft account.
Create a new Canvas App or select an existing application.
Open the application in Power Apps Studio.
Keep the Power Apps Studio browser tab open because the Canvas MCP connection uses the active Studio session to synchronize supported authoring changes.
Step 8: Enable Coauthoring in Power Apps Studio
Before connecting Copilot, enable the Coauthoring feature in Power Apps Studio.
Follow these steps:
Open your Canvas App in Power Apps Studio.
Click the Settings (gear) icon.
Navigate to Updates.
Select New features.
Open the Experimental or Preview section, depending on your Studio version.
Search for Coauthoring.
Turn ON the Coauthoring option.
Save and refresh the application if required.
Important: Keep the Power Apps Studio browser tab open throughout the configuration and development process.
Step 9: Configure the Canvas MCP Connection
Now, return to the Copilot terminal in Visual Studio Code.
Execute the following command:
/canvas-apps:configure-canvas-mcp
After executing this command, Copilot will ask you to provide your Power Apps Studio URL.
This command starts the Canvas MCP configuration process and helps Copilot connect to your active Canvas App authoring session.
Step 10: Provide the Power Apps Studio URL
Now, copy the complete URL from your open Power Apps Studio browser tab.
For example, the URL may look similar to:
https://make.powerapps.com/e/Default-123456/canvas/?action=edit&app-id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Follow these steps:
Go to the Power Apps Studio browser tab.
Copy the complete URL from the browser address bar.
Return to the Copilot terminal.
Paste the URL when Copilot requests it.
Follow any additional configuration instructions displayed by Copilot.
Copilot will use the URL to identify the necessary environment and application information and configure the connection to your active Canvas App session.
Once the connection is established, you can start building or modifying your application using natural language prompts.
Step 11: Start Building Your Canvas App Using Copilot
This is the most interesting part of the process!
After successfully connecting Copilot to Power Apps Studio, you can start providing instructions to create new screens, add controls, modify layouts, and implement application functionality.
You can use the /canvas-app skill to provide your instructions.
Let's understand this with practical examples.
Example 1: Create a Home Screen
Suppose you want to create a home screen for an Invoice Management application.
Provide the following prompt:
/canvas-app Create a new home screen for an
Invoice Management application.
Include:
- A modern application header.
- Application title.
- Welcome message.
- Left-side navigation menu.
- Dashboard summary cards.
- Recent invoice gallery.
Use a professional blue and white theme.
Keep the layout clean and suitable for tablet screens.
Copilot can help create the requested home screen and configure the required controls.
Example 2: Create a Dashboard Screen
Now, ask Copilot to create a dashboard screen.
/canvas-app Create a dashboard screen with four
summary cards:
1. Total Invoices
2. Pending Invoices
3. Approved Invoices
4. Rejected Invoices
Add a recent invoices gallery below the cards.
Use modern card layouts, consistent spacing,
rounded corners, and a professional blue theme.
This prompt describes the required dashboard layout and components.
Example 3: Add a Gallery Connected to a Data Source
Suppose your application contains an InvoiceDetails Dataverse table.
Provide the following prompt:
/canvas-app Add a gallery to the dashboard screen
and connect it to the InvoiceDetails Dataverse table.
Display the following fields:
- Invoice Number
- Vendor Name
- Invoice Date
- Invoice Amount
- Invoice Status
Add a search input to filter records
based on Invoice Number and Vendor Name.
Copilot can help configure the gallery and its data source properties.
Make sure the Dataverse table and required columns are available in your application.
Example 4: Create a Modern Header
To enhance an existing screen, provide the following prompt:
/canvas-app Add a modern header component
to the main screen.
Requirements:
- Dark blue background.
- Application title on the left.
- User profile icon on the right.
- Notification icon.
- Consistent spacing and alignment.
- Professional business application design.
Copilot can help update the existing screen with the requested header design.
Example 5: Implement Navigation Functionality
After creating the screens, configure navigation between them.
/canvas-app Add navigation functionality to the
left navigation menu.
When the user selects Home, navigate to the Home screen.
When the user selects Dashboard, navigate to the Dashboard screen.
When the user selects Invoices, navigate to the Invoice Details screen.
Use the existing screens wherever available.
Copilot can help implement navigation using Power Fx formulas.
Example 6: Configure the Submit Button
You can also ask Copilot to implement button functionality.
/canvas-app Update the Submit button on the
Invoice Details screen.
When the user clicks Submit:
- Validate the required fields.
- Display an error message if mandatory fields are empty.
- Save the invoice record if validation succeeds.
- Navigate to the Success screen after successful submission.
Copilot can help configure the button's OnSelect formula and related validation logic.
Step 12: Review and Test Your Application
Once Copilot completes the requested changes, review the application in Power Apps Studio.
Follow these steps:
Verify that all requested screens have been created.
Check the controls, layouts, colors, and alignment.
Verify that the correct data sources are connected.
Review the generated or modified Power Fx formulas.
Test gallery filtering and search functionality.
Test buttons and screen navigation.
Save the application.
Preview the application and validate the complete functionality.
Always review AI-generated formulas and application changes before using the application in production.
Benefits of Building Power Apps Using Copilot
1. Faster UI Development
Developers can create screens, galleries, headers, and dashboard layouts using natural language prompts instead of configuring every component manually.
2. Reduced Manual Work
Copilot helps reduce repetitive development tasks and allows developers to focus more on application requirements and business logic.
3. Improved Productivity
Developers can quickly enhance existing applications by asking Copilot to update layouts, add controls, and modify application components.
4. AI-Assisted Development
Copilot acts as a development assistant that helps generate and modify Canvas App components.
5. Better Development Experience
Combining Visual Studio Code, GitHub Copilot, Power Platform Skills, and Power Apps Studio provides an AI-assisted development workflow.
Conclusion
Building Power Apps using GitHub Copilot and Power Platform Skills introduces a new approach to Canvas App development.
By following the steps in this article, we can prepare a local development workspace, install the required plugins, configure the .NET SDK, enable Coauthoring, and connect Copilot to Power Apps Studio.
Once the connection is established, developers can use natural language prompts to create home screens, dashboards, galleries, navigation menus, and other application components.
Although Copilot simplifies the development process, developers should always review generated formulas, validate business logic, and test the application before deployment.
With AI-assisted development, building and enhancing Power Apps Canvas Apps can become faster, easier, and more efficient.
Join the conversation! Your thoughts help the community grow.