Skip to content

Commit a139092

Browse files
authored
Merge pull request #12419 from rheapatel23/rheaCopilotInboxtake2
Add GitHub Copilot troubleshooting and admin controls***
2 parents 3927e88 + 56864dc commit a139092

8 files changed

+89
-0
lines changed
Loading
Loading
Loading
Loading
Loading
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
---
2+
title: Admin controls for GitHub Copilot in Visual Studio
3+
description: GitHub Copilot in Visual Studio 2022 version 17.10 introduces new features for administrators to manage Copilot effectively.
4+
ms.date: 3/28/2024
5+
ms.topic: how-to
6+
author: anandmeg
7+
ms.author: meghaanand
8+
ms.manager: mijacobs
9+
ms.subservice: ai-tools
10+
monikerRange: vs-2022
11+
---
12+
13+
# Admin controls for GitHub Copilot
14+
GitHub Copilot in Visual Studio 2022 17.10 Preview 3 introduces new features for administrators to manage Copilot effectively.
15+
16+
## Disabling Copilot for individual Enterprise Visual Studio accounts
17+
18+
In version 17.10, we're introducing two new features to disable Copilot, ensuring that your repository is protected.
19+
Project administrators can disable Copilot for individual accounts or disable Copilot altogether via the [Visual Studio Administrative Templates (ADMX/ADML)](https://www.microsoft.com/en-us/download/details.aspx?id=104405). These features provide administrators with greater control over the use of Copilot within their organization.
20+
21+
To configure and deploy these policies, you can use [Microsoft Intune](../install/administrative-templates.md#deploying-the-policies) or the Local Group Policy Editor directly on the client machine.
22+
23+
## Configure Copilot group policy
24+
25+
1. Head over to the Microsoft Download Center and grab the Visual Studio [Group Policy Administrative Template files (ADMX/ADML)](https://www.microsoft.com/en-us/download/details.aspx?id=104405). It asks you where you want the files to be downloaded, ensure the location is `C:\Windows\PolicyDefinitions`.
26+
27+
2. Open the **Windows Local Group Policy Editor**, Navigate to Computer Configuration > Administrative Templates > Visual Studio > **Copilot Settings** and select a group policy.
28+
29+
:::image type="content" source="media/vs-2022/copilot-inbox/intune-group-policy.png" alt-text="Screenshot of Group Policy to block Copilot for Individuals." lightbox="media/vs-2022/copilot-inbox/intune-group-policy.png":::
30+
31+
3. Once you select your group policy, configure the policy to enable or disable.
32+
33+
:::image type="content" source="media/vs-2022/copilot-inbox/copilot-for-individuals-group-poilcy.png" alt-text="Screenshot of Group Policy to block copilot for individuals." lightbox="media/vs-2022/copilot-inbox/copilot-for-individuals-group-poilcy.png":::
34+
35+
4. Restart your Visual Studio instance to pick up the new policy changes
36+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: Troubleshoot GitHub Copilot in Visual Studio 2022
3+
description: Learn about the copilot status and how to fix issues.
4+
ms.date: 4/09/2024
5+
ms.topic: troubleshooting-problem-resolution
6+
author: anandmeg
7+
ms.author: meghaanand
8+
ms.manager: mijacobs
9+
ms.subservice: ai-tools
10+
monikerRange: vs-2022
11+
---
12+
13+
# Troubleshoot GitHub Copilot in Visual Studio
14+
15+
This troubleshooting guide includes instructions to resolve issues with GitHub Copilot in Visual Studio 2022 version 17.10 Preview 3 or later.
16+
17+
The GitHub Copilot badge in the upper-right corner of the Visual Studio environment showing the message **Copilot is temporarily unreachable** indicates GitHub Copilot is offline.
18+
19+
:::image type="content" source="media/vs-2022/copilot-inbox/copilot-error.png" alt-text="Screenshot of copilot unreachable error." lightbox="media/vs-2022/copilot-inbox/copilot-error.png":::
20+
21+
GitHub Copilot could be offline due to one of the following reasons:
22+
23+
## Network issues
24+
25+
Your network is down.
26+
27+
**Action:** Ensure you have a stable internet connection. For more information, see [Troubleshooting network errors for GitHub Copilot](https://docs.github.com/en/copilot/troubleshooting-github-copilot/troubleshooting-network-errors-for-github-copilot).
28+
29+
## Copilot service is unavailable
30+
31+
The Copilot service is down.
32+
33+
**Action:** In this case, wait. The service will be back shortly. You can check the status of the service on [GitHub Status](https://www.githubstatus.com/).
34+
35+
## Refresh your credentials
36+
37+
Due to the expected timeout, you need to occasionally refresh your credentials.
38+
39+
**Action:** Select **"Refresh your credentials"** from the Copilot badge in the upper-right corner of your Visual Studio environment.
40+
41+
:::image type="content" source="media/vs-2022/copilot-inbox/copilot-refresh-credentials.png "alt-text="Screenshot of Refresh your credentials option." lightbox="media/vs-2022/copilot-inbox/copilot-refresh-credentials.png":::
42+
43+
## Copilot is disabled
44+
45+
Your administrator disables Copilot for individual or any Copilot license. With Visual Studio version 17.10, your [admin can disable Copilot](visual-studio-github-copilot-admin.md#disabling-copilot-for-individual-enterprise-visual-studio-accounts).
46+
47+
**Action:** Contact your IT department to learn if your admin disabled Copilot.
48+
49+
:::image type="content" source="media/vs-2022/copilot-inbox/copilot-disable-badge.png "alt-text="Screenshot of code suggestions in new file in the editor." lightbox="media/vs-2022/copilot-inbox/copilot-disable-badge.png":::

docs/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@
153153
href: debugger/debug-with-copilot.md
154154
- name: Deploy GitHub Copilot to your enterprise
155155
href: ide/deploy-copilot-to-enterprise.md
156+
- name: Troubleshoot GitHub Copilot state
157+
href: ide/visual-studio-github-copilot-troubleshoot.md
158+
- name: Admin controls for GitHub Copilot
159+
href: ide/visual-studio-github-copilot-admin.md
156160
- name: IntelliCode
157161
items:
158162
- name: 'What is IntelliCode?'

0 commit comments

Comments
 (0)