Enabling GitHub Copilot and Copilot in Fabric
This lesson explains how GitHub Copilot is licensed and used with the MSSQL extension, and the tenant and capacity requirements of Copilot in Fabric.
Learning outcomes
After completing this lesson, you will be able to:
- Describe how GitHub Copilot is enabled for users and organizations.
- Identify the requirements for Copilot in Fabric.
- Distinguish between GitHub Copilot and Copilot in Fabric for SQL work.
GitHub Copilot in VS Code and SSMS
GitHub Copilot is licensed per user through a plan: Copilot Free (with monthly limits), Pro and Pro+ for individuals, and Business or Enterprise, which organizations assign to members and govern with policies for features, models and content exclusions. In VS Code, the GitHub Copilot extensions provide inline completions and Copilot Chat after signing in with a GitHub account that has a plan. The MSSQL extension connects to SQL Server, Azure SQL and SQL database in Fabric, and with a connection Copilot answers with awareness of the schema: it generates and explains T-SQL, suggests optimizations and, in agent mode, uses database tools. SQL Server Management Studio also includes GitHub Copilot.
GitHub Copilot set-up
Governing GitHub Copilot in an organization
With Copilot Business or Enterprise, the organization rather than each developer decides how Copilot is used. Organization owners assign Copilot seats to members or teams, and policies set at the enterprise or organization level apply to every assigned seat. The following table lists the controls that matter most for database work.
| Control | What it decides |
|---|---|
| Feature policies | Whether features such as Copilot Chat in IDEs, agent mode and preview features are available |
| MCP servers policy | Whether Copilot can use MCP servers, such as a SQL MCP Server, in members' editors |
| Model policies | Which models members can select in the model picker |
| Suggestions matching public code | Whether suggestions that match public code are allowed or blocked |
| Content exclusion | Repositories, files or paths whose content Copilot must not use as context |
These controls apply only to seats that the organization assigns. A developer using a personal Copilot Free or Pro plan is governed by personal settings, so organizations that must control AI use on their code assign seats and require members to use them. Content exclusion does not apply to every Copilot feature, so it complements, rather than replaces, keeping secrets and sensitive data out of repositories in the first place.
Copilot organization controls
Copilot in Fabric
Copilot in Fabric is enabled by a Fabric administrator, and its requirements are listed in the following steps.
-
Turn on the tenant setting
In the admin portal's tenant settings, enable the Copilot setting that lets users use Copilot and other features powered by Azure OpenAI, for the whole organization or specific security groups.
-
Allow cross-geography processing if needed
Tenants and capacities outside the US or France also need the setting that allows data sent to Azure OpenAI to be processed outside the capacity's geographic region.
-
Use a paid capacity
The workspace must be on a paid F2 or larger (or P1 or larger) capacity in a supported region; trial capacities are not supported.
-
Use Copilot in the editor
In the SQL database query editor, Copilot provides code completion, the Fix and Explain quick actions and a chat pane that generates T-SQL from natural language.
Copilot in Fabric uses the database schema, not its data, to generate queries, and it does not run queries autonomously: actions that could change data need the user to start or approve them.
Enabling Copilot in Fabric
Choosing where to work
The two tools overlap but suit different workflows, as the following comparison shows.
Which Copilot?
Copilot unavailable in Fabric
A developer opens a SQL database in a Fabric workspace that runs on a Fabric trial capacity in the US, and the Copilot button is unavailable. The tenant setting for Copilot is enabled for all users. What must change?
Move the workspace to a paid F2 or larger (or P1 or larger) capacity. Copilot in Fabric is not supported on trial capacities, and the tenant setting alone is not enough. The cross-geography setting matters only outside the US and France, and a GitHub Copilot licence does not enable Copilot in Fabric.
Can a Fabric trial capacity use Copilot in Fabric?
Show answer
No. Copilot in Fabric requires a paid F2 or larger, or P1 or larger, capacity.
Exam Tips
Remember for the exam
- Copilot in Fabric: tenant setting plus a paid F2+ or P1+ capacity; not trial capacities.
- Outside the US or France: also allow cross-geography processing.
- Schema-aware GitHub Copilot in VS Code: the MSSQL extension with a connection.
- Organization control of Copilot features and models: GitHub Copilot policies.