Lesson 2 of 4 GitHub Copilot and Copilot in Fabric

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.

True or false

GitHub Copilot set-up

Exam skills 1.4.2

Decide whether each statement about GitHub Copilot for SQL is true.

Log in to try this activity Interactive activities are free with an account.

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.

ControlWhat it decides
Feature policiesWhether features such as Copilot Chat in IDEs, agent mode and preview features are available
MCP servers policyWhether Copilot can use MCP servers, such as a SQL MCP Server, in members' editors
Model policiesWhich models members can select in the model picker
Suggestions matching public codeWhether suggestions that match public code are allowed or blocked
Content exclusionRepositories, 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.

Match the pairs

Copilot organization controls

Exam skills 1.4.2

Match each governance need with the Copilot control that meets it.

Log in to try this activity Interactive activities are free with an account.

Copilot in Fabric

Copilot in Fabric is enabled by a Fabric administrator, and its requirements are listed in the following steps.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

Put in order

Enabling Copilot in Fabric

Exam skills 1.4.2

Put the steps for using Copilot in a Fabric SQL database in order.

Log in to try this activity Interactive activities are free with an account.

Choosing where to work

The two tools overlap but suit different workflows, as the following comparison shows.

GitHub Copilot (VS Code, SSMS)
Enabled byA user's Copilot plan and organization policies
Works withAny SQL Server, Azure SQL or Fabric SQL database, plus project files
StrengthsSource-controlled projects, instruction files, agent mode and MCP tools
Choose when Database DevOps with SQL projects and Git
Copilot in Fabric
Enabled byFabric tenant settings and a paid capacity
Works withSQL databases and other items in Fabric workspaces
StrengthsIn-portal query authoring, Fix and Explain
Choose when Quick authoring inside Fabric
Sort into groups

Which Copilot?

Exam skills 1.4.2

Choose the Copilot that fits each workflow.

Log in to try this activity Interactive activities are free with an account.
Worked example

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.

Check yourself

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.