Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
165745 stories
·
33 followers

Ask the Microsoft Entra experts anything, live on December 2

1 Share

Microsoft Ignite 2026 brought a wave of news for Microsoft Entra, from new ways to secure AI agents to new tools for managing access at scale. Now it's your turn to ask the people who build it.

On Tuesday, December 2, Yina Arenas, Chief Product Officer for Microsoft Identity and Network Access, joins a panel of Microsoft Entra product and engineering experts for a live Ask Microsoft Anything (AMA).

Post your questions and add the event to your calendar at https://aka.ms/EntraAMA   

Post your questions today, then watch the AMA on December 2

When: Tuesday, December 2, 2026, 11:00 AM–12:00 PM PT

Where: Livestream on the Microsoft Tech Community

Add to calendar: aka.ms/EntraAMA

How to ask a question: Sign in to the Microsoft Tech Community (or create an account) and post your question as a comment on the event page. Post early to get your question in the queue!

Can't join live? The recording will be available on demand at aka.ms/EntraAMA as soon as the livestream ends.

Meet the experts: Microsoft Entra AMA panelists

Yina Arenas

Chief Product Officer

Yina Arenas | LinkedIn

 

Ankur Patel

Partner Group Product Manager

Ankur Patel | LinkedIn

 

Ngozi Nwoko

Director, Secure AI

Ngozi Nwoko | LinkedIn

 

Ehud Itshaki

Principal Product Manager

Ehud Itshaki | LinkedIn

 Yair Tor

Partner Product Manager

Yair Tor | LinkedIn

Nichole Peterson

Panel Host / Senior PMM

Nichole Peterson | LinkedIn

 

See the roadmap in action: Replay the Ignite 2026 Microsoft Entra sessions

AI is changing access. See how Microsoft Entra helps you stay ahead, led by Yina Arenas, John Savill, and Nichole Peterson, laid out the Microsoft Entra identity and network access roadmap with announcements, explainers, and demos, including the previews of high-assurance credentials, Conditional Access policy plans, and just-in-time PIM for VMs. They also showed how to scale AI agents responsibly with Microsoft Agent 365, using previews of dynamic permissions, agent risk detection and an MCP firewall, and closed with general availability of the Microsoft MCP Server for IT Admins. 

📺 Watch the Microsoft Entra session replay: Ignite BRK343: AI is changing access. See how Microsoft Entra helps you stay ahead.

📖 Read the Microsoft Entra announcements blog: Microsoft Entra news announcements from Microsoft Ignite November 2026 

 

Beyond the main Entra session, the Entra product team delivered deeper dives on key topics of interest for identity and network access practitioners:

📺 Observe, govern, and secure access for every agent: AI agents: access granted. Trust not included

📺 Discover and manage local agents across your environment: Local agents are here. Can you find and secure them?

📺 Learn the new Conditional Access policy plan capabilities: A Single Policy for Humans and AI Agents? Here’s How to Make It Work 

📺 Strengthen your identity security for the AI era: Modern Phishing Doesn't End at the Click

A look ahead: Upcoming webinars from Microsoft Entra

Go beyond the Microsoft Ignite announcements with new demos and practical guidance on adaptive access, identity governance, and AI agent security.

Scale secure, adaptive access without policy sprawl

Tuesday, December 15, 2026, 9:00 AM Pacific Time

Etan Basseri, Principal PM Manager; Itai Zauer, Principal PM Manager

See how Microsoft Entra helps you manage Conditional Access policy plans and scale granular access controls for every identity without contributing to policy sprawl. Through practical scenarios, learn how high-assurance credentials and passkeys strengthen phishing resistance; how AI-driven identity posture identifies security gaps and posture drift; and how identity context and risk signals from Microsoft Entra and Microsoft Defender help your team investigate and disrupt threats faster.

Add to calendar

Strengthen governance, privileged access, and resilience across every identity and tenant

Wednesday, December 16, 2026, 9:00 AM Pacific Time

Ilya Lushnikov, Principal Product Manager; Hien Nguyen, Product Marketing Manager; Yash Singh, Senior Product Marketing Manager

Explore new capabilities and demos across Microsoft Entra ID Governance, Privileged Identity Management (PIM), and Microsoft Entra Tenant Governance—from identity lifecycle management to group management. You’ll also see how Microsoft Entra Backup and Recovery helps your organization recover quickly from disruptions.

Add to calendar

Secure identity and access for every agent, local or cloud

Thursday, December 17, 2026, 9:00 AM Pacific Time

Ehud Itshaki, Principal Product Manager; Leandro Iwase, Senior Product Marketing Manager

Local AI agents on employee devices are expanding the agent estate beyond the cloud. Identity and security administrators need to know which agents exist, distinguish agent actions from user actions, and control what those agents can access. See how Microsoft Entra, working with Microsoft Agent 365, helps you manage AI agents at scale, govern agent identities and lifecycles, and protect agent access to resources. We’ll cover supported Microsoft and third-party agent scenarios—local and cloud—and explain which controls apply to each.

Add to Calendar

 

 

Hope to see you on December 2!

Nichole 

Nichole Peterson | LinkedIn

 

Read the whole story
alvinashcraft
16 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

How to manage costs for Copilot Studio agents

1 Share

A practical guide to measuring agent consumption, forecasting demand, and managing usage-based costs across maker and admin experiences.

The introduction of the Microsoft Copilot harness for Copilot Studio adds to a broader shift toward usage-based billing. Alongside licensing-based costs, teams need to plan for costs that vary with the work agents perform and how often people use them. Managing those costs effectively is a continuous process, not just a point-in-time decision.

This guide explains the new cost-management capabilities, the scenarios they support, and how to put them into practice. It starts with how makers measure and improve agent consumption, then turns to the funding, scope, and spending controls admins use to support adoption.

Cost management as a team effort

Effective cost management is a team effort: makers and admins need to work together. Makers own efficient agent design, representative testing, and task quality. They estimate consumption, investigate expensive or unsuccessful paths, and verify that a change saves credits without weakening the outcome.

Admins manage funding cost centers, policy scope, limits, alerts, and cost attribution, with a response plan that protects service continuity. Makers and admins review actual usage together: agent build-time credit consumption informs budgets, while spending patterns guide the next round of design and testing. Cost visibility for makers and admin controls are complementary parts of that feedback loop.

Makers and admins need to work together for cost management.

For makers: measure and forecast agent usage

Follow consumption from build to production

Makers make the design choices that drive cost, so seeing credits while they build lets them weigh cost against quality early, not after a bill arrives. Treat credits as a design signal: check estimates as you iterate, find expensive paths, and share what you learn with admins.

Each experience below shows a different view of the same workload. Not every build or test activity is billable for every harness, so check yours first. Learn how estimated credit usage works across these views.

  • Preview: run the same representative task before and after a design change. The near-real-time estimate gives quick feedback, but it is for design decisions, not a billing record.
  • History: inspect conversation-level estimates to find expensive paths, failed attempts, and retries, then reproduce them in testing.
  • Evaluate: review the estimated total and drill into conversations. Separate response-generation from grading cost, and treat grading as evaluation overhead, not a recurring production charge.
  • Monitor: use it as the reconciliation step. Processed final usage appears after a reporting delay, so confirm a saving here before calling it lasting. Some views are rollout-dependent; verify what your tenant shows.

Makers can see credit consumption throughout building, testing, and evaluation experiences in Copilot Studio.

Project future costs from existing tasks

Maker cost visibility also makes estimation practical. The credit estimates in Preview, History, and Evaluate give you real per-task numbers to build a forecast from, instead of guesses. A useful forecast reflects the work people will actually ask the agent to do: sample light tasks, complex multistep tasks, and exception paths; repeat each a few times; and record runtime credits, completion, quality, and retries. Include failed attempts and recovery work in the cost per completed task.

Forecast formula

Projected recurring runtime credits =
  sum across task types of
  (expected completed-task volume × observed runtime credits per completed task)

Forecast recurring runtime only, and budget billable build, test, and evaluation work separately. Run low, expected, and high traffic cases, then update them with processed usage.

Use the same sample to spot what to improve, such as unnecessary retrieval or repeated actions. Share the revised credit range, volumes, and assumptions with your admin so budgets rest on evidence. For Standard feature-based usage, use the agent usage estimator.

For admins: plan, control, and optimize spending

Cost management cycle across both admin centers

Admins can manage Copilot Studio agent costs in either the Power Platform admin center (PPAC) or the Microsoft 365 admin center (MAC). Whichever product surface they use, the work involves the same three jobs-to-be-done: plan, control, and optimize.

  1. Plan starts with accountability and a workload forecast. Establish the owner and cost center, use maker measurements to quantify the expected task mix and volume, then choose funding and a budget or allocation with headroom for uncertainty. Decide whether the resource owner or eligible consuming users should pay, and choose the scope that reflects that responsibility: environment in PPAC, or resource, environment, or identity in MAC. Make these decisions before selecting a control.
  2. Control turns that plan into environment allocations and agent limits in PPAC, or spending policies with limits in MAC. Set the allocation or budget and supported per-agent or per-user caps, then connect alerts to named recipients, an approver, and an escalation path for service continuity. Keep funding separate from enforcement: available prepaid credits or eligible PAYG funding do not override a cap. Monitor consumption against the plan so an alert leads to a decision, not just a notification.
  3. Optimize compares actual credit use and task outcomes with the plan. Work with makers to investigate retries, expensive tool paths, and changes in task mix, then rebalance allocations or adjust supported limits and funding in either admin center when the evidence warrants it. A lower credit total is not an improvement if fewer tasks complete successfully.

The recurring plan, control, and optimize cycle for admin cost management.

These are recurring admin jobs, not a one-time setup or a linear checklist. As adoption grows or the agent’s design changes, start the cycle again. PPAC and MAC support that same cycle in their applicable scenarios.

Understand the relationship between PPAC and MAC cost management

Copilot Studio has built-in, environment-centric cost controls in PPAC. Power Platform admins can set allocations for prepaid credits, view usage reports, cap individual agents’ usage, and configure pay-as-you-go (PAYG) billing. These are the foundational capabilities for established usage-based services in Power Platform.

MAC adds forward-looking, limit-based spending policies for both resources and identities, consistent with other usage-based AI services such as Work IQ and Copilot Cowork. PPAC remains the home for environment-level cost management, while MAC gives IT a more consistent and flexible way to manage usage-based services across the tenant.

Foundational cost management for Copilot Studio in PPAC

Cost management for Copilot Studio started in PPAC, and it follows the same flow now used across Microsoft’s cost-management surfaces. Monitoring is the baseline that runs through all of it: the same visibility into usage informs how admins plan, control, and optimize.

Plan capacity around real usage

Forecasts are only as good as the usage behind them. The licensing hub shows prepaid versus consumed capacity, pay-as-you-go usage, and a daily consumption trend by environment, so admins can plan from actual demand. With environment credit allocation, they then set aside credits for each environment, ring-fencing capacity for priority workloads such as production.

Sidebar: allocation versus limits

An allocation reserves credits for an environment, setting that capacity aside for its workloads. A limit caps how much an agent can use without reserving anything. Put simply, allocations answer “how much is set aside?” and limits answer “how much can be used?” An agent limit works within its environment’s allocation and cannot exceed what the environment has available.

Keep spend within bounds as adoption grows

One popular agent should not use up an environment’s capacity. Agent credit limits cap what an individual agent can use, and overage notifications warn admins when an environment is nearing capacity, early enough to act. The Draw from tenant credit pool environment group rule goes further, stopping environments from tapping shared capacity once their own allocation runs out. It applies to every environment in the group, including new ones such as personal developer environments, so governance stays proactive instead of reactive.

Direct credits to the work that matters

When demand spikes, capacity overage settings decide what happens next: draw on available tenant capacity or bill to a pay-as-you-go billing plan linked to an Azure subscription, so agents keep running. Usage reports by environment, agent, and user then show which agents drive consumption, guiding where to rebalance credits and where to invest.

PPAC is a solid foundation for this flow, and it is built around environments. As AI spend extends beyond environments to people and agents, MAC brings the same plan, control, and optimize flow to those scopes, while environments continue to be administered in PPAC.

What MAC adds to cost management

Copilot Studio cost management is coming to MAC, the place admins already manage spending for other usage-based AI services such as Cowork and Work IQ. It brings resource and environment control to Copilot Studio today, with identity-scoped policies coming soon, so a budget can follow who owns the work rather than only where it runs.

A spending policy can apply to a resource, such as a specific agent; to one or more environments; or to an identity, meaning people or groups. Resource and environment policies are in public preview now, and identity-based policies are coming soon. Nothing is rebuilt: resources and environments stay where they are in PPAC, and only the budget moves.

Copilot Studio now appears in the Microsoft 365 admin center services

Fund the work the way you own it

Before, credits and billing were set at an environment level. With MAC, a spending policy answers three questions in one place: how much can be spent, which services are in scope, and how it is funded. A policy has a flexible scope that can cover a single agent or a group of resources or environments, each with its own limit and billing method, so a department’s agents or a critical agent can be funded on their own terms.

MAC resource-scope demo selecting a specific environment collection

Billing-method demo illustrating prepaid and PAYG choices

Stop overspend at the limit you set

Before, prepaid credits were capped per environment, pay-as-you-go had no cap, and agent limits were set one by one. Now a policy limit applies to prepaid and pay-as-you-go alike, so spending stops where you set it. A single all-environments policy can add a default per-agent limit that also covers agents built next week, and alerts reach the people who can act before a limit is hit.

See where every credit goes

MAC cost management reporting brings consumption into one view, with spend attributed to agents and services so admins can spot growth early. Linking a policy to an Azure subscription and resource group lets each department see and own its cost.

MAC consumption overview

Mix and match policies for a layered approach

Policy types work together. Resource and environment policies suit shared work, such as an HR team funding all its agents or giving one critical agent like AskHR its own limit. Identity policies, once available, suit personal work, such as a budget for makers building and testing agents. For covered usage, MAC takes precedence over PPAC. An agent’s resource or environment policy comes before an identity policy, and the two budgets are never combined.

Start now: assign roles, then pilot one environment. Nothing changes until you create a policy and link an environment, so you can move one environment at a time and add identity-based policies as they arrive. The five readiness steps in Get started show how.

Learn more in Microsoft Learn: Manage Copilot Studio costs in the Microsoft 365 admin center.

Apply the settings to common scenarios

These two illustrative patterns start with who owns the cost. Identity-scoped policies are coming soon, so confirm eligibility in your tenant.

Scenario 1: Fund critical agents or environments

“We need to manage AskHR’s costs, so users don’t have to self-fund.”

AskHR’s cost belongs to HR, not to every employee who chats with it. The admin applies a resource-scoped policy to the agent, or an environment-scoped policy to the environment it runs in, with a limit, alerts, and an approved funding source. All consumption then rolls up to one budget that HR’s owner monitors. Makers review task paths and completion rates; the admin reviews actual spend and headroom.

Illustration for funding a critical agent or its environment from an owner-managed budget.

Scenario 2: Fund users to support experimentation

“I want my makers to build, with a personal spending limit.”

The admin applies an identity-scoped policy (coming soon) to the maker security group, so each maker gets a personal budget to experiment with without first asking for an environment budget. The admin enables the work, and makers stay accountable for what they spend, using Preview and evaluation estimates to compare designs.

Illustration for identity-scoped maker budgets to support controlled experimentation.

Get started

Five steps from plan to practice:

  1. Assign roles before you create your first policy. Spending policies live in MAC, which uses its own roles, so existing Power Platform roles do not carry over automatically.

Who needs which role?

      • Power Platform or Dynamics 365 admins: AI Administrator to set spending policies. This role is not granted automatically.
      • Environment admins: AI Reader to see spend for their environment.
      • Global admins: No change. Tenant-wide access, including billing, stays as is.
      • Makers: No new role. They keep seeing credits in Copilot Studio as they build, test, and monitor.

Early 2027 (planned): recommended limits based on your usage, recommended roles for your team, and roles set up in code.

  1. Review what you have today: credits, billing plan, agent limits, and owner for each environment.
  2. Pick the policy type: environment for a department, resource for a critical agent, or identity for makers (coming soon).
  3. Pilot one environment: set limits and alerts, and link the Azure subscription for chargeback.
  4. Expand: one environment at a time, adding identity policies as they arrive.

Go deeper in the docs:

Read the whole story
alvinashcraft
24 seconds ago
reply
Pennsylvania, USA
Share this story
Delete

Action required: Update app-only permissions for SharePoint tenant App Catalog writes

1 Share

We are introducing an additional authorization requirement for applications that use app-only authentication to write directly to specific surfaces in the SharePoint tenant App Catalog.

Starting January 31, 2027, affected app-only workflows must have the SharePointTenantSettings.ReadWrite.All application permission on the Office 365 SharePoint Online resource. After that date, Sites.ReadWrite.All alone will no longer authorize these tenant App Catalog writes. This change can affect automated deployment and provisioning processes, including CI/CD pipelines, unattended scripts, and partner deployment services.

Interactive operations performed by an authorized administrator through the App Catalog user interface are not affected by this new application-permission requirement. Workflows using delegated authentication also continue to use existing user and delegated authorization.

What is changing?

The additional permission check applies to direct app-only writes for the following tenant App Catalog operations:

  • Adding a package to the Apps for SharePoint
  • Replacing or updating an existing package, including updates to its catalog item.
  • Adding or updating entries in the Tenant-Wide Extensions

The package check runs at the App Catalog add and update entry points. As a result, an app-only package upload or update can require the new permission even when the package does not register a tenant-wide extension.

Whether a workflow is affected depends on its authentication mode and the operation it performs, not on the tool alone.

Scenario Impact
An authorized administrator uploads or updates a package through the App Catalog UI The new application-permission requirement does not apply. Existing user authorization continues to apply.
PnP PowerShell uses user or delegated authentication The new app-only requirement does not apply. Existing user and delegated authorization requirements still apply.
PnP PowerShell uses app-only authentication, such as a certificate-based unattended task The new requirement applies to affected tenant App Catalog writes.
A custom application uses SharePoint REST or CSOM with app-only authentication The same requirement applies to affected writes. The change is not specific to PnP PowerShell.
An integration uses Microsoft Graph Assess the specific API and authentication flow. This announcement does not establish that all Microsoft Graph operations are affected.

 

Required application permission

For affected direct app-only writes, the calling application must have the SharePointTenantSettings.ReadWrite.All application permission on the Office 365 SharePoint Online resource.

After January 31, 2027, permissions such as Sites.FullControl.All or Sites.ReadWrite.All do not satisfy this additional authorization check by themselves. This does not mean that SharePointTenantSettings.ReadWrite.All replaces those permissions. An application might still need its existing site permissions for other operations.

Microsoft Graph and Office 365 SharePoint Online expose permissions with the same SharePointTenantSettings.ReadWrite.All name, but they are separate application roles on separate resources. For PnP PowerShell, SharePoint REST, or CSOM calls to SharePoint, granting only the Microsoft Graph permission does not satisfy the SharePoint authorization check. The application must have the permission for the Office 365 SharePoint Online resource, and the permission must be present in the SharePoint access token.

Other authorization checks and package or component validation continue to apply.

Who needs to take action?

Review your configuration if you use app-only automation for tenant App Catalog writes, including:

  • CI/CD pipelines that upload or update SharePoint Framework packages.
  • Certificate-based unattended PnP PowerShell scripts.
  • Provisioning solutions that update Tenant-Wide Extensions.
  • Custom applications that use SharePoint REST or CSOM with app-only authentication.
  • Partner-operated deployment services that perform these operations for customers.

Using SharePoint Framework or PnP PowerShell does not automatically mean that a workflow is affected. The workflow must use app-only authentication and perform one of the affected write operations.

What should you do?

For each affected workflow:

  1. Identify the Microsoft Entra application registration used by the app-only workflow.
  2. Grant the ReadWrite.All application permission for the Office 365 SharePoint Online resource.
  3. Obtain tenant administrator consent for the permission.
  4. Reconnect or refresh authentication so the workflow acquires a new SharePoint access token.
  5. Retest the relevant package upload, package update, and Tenant-Wide Extensions operations.
  6. Retain any other permissions that the workflow requires.

Do not grant the Microsoft Graph role as a substitute for the Office 365 SharePoint Online role when the workflow calls SharePoint directly.

What is not affected?

This change does not add the new application-permission requirement to:

  • Interactive App Catalog operations performed by an authorized administrator.
  • Requests using user or delegated authentication. Existing authorization requirements, including ManageWeb where required, continue to apply.
  • Read-only App Catalog operations.
  • Delete operations, which are outside the stated scope of this change.
  • Existing authorization for site collection App Catalog operations. The tenant-settings application permission is not a substitute for those requirements.
  • The runtime use of SharePoint Framework solutions that are already deployed. Later automated package or configuration updates can still be affected.
  • Trusted internal deployment operations, which use separate authorization paths.

Timeline

  • January 31, 2027: The planned cutoff date for using ReadWrite.All alone for the affected direct app-only tenant App Catalog writes.
  • After January 31, 2027: Affected workflows must include the ReadWrite.All application permission on the Office 365 SharePoint Online resource. Workflows that rely only on Sites.ReadWrite.All can be rejected.

Customers and partners should review and retest app-only deployment automation before January 31, 2027.

Learn more

Note: This reference documents the Microsoft Graph resource. The same-named Microsoft Graph permission does not replace the required Office 365 SharePoint Online application role for direct SharePoint calls.

The post Action required: Update app-only permissions for SharePoint tenant App Catalog writes appeared first on Microsoft 365 Developer Blog.

Read the whole story
alvinashcraft
1 minute ago
reply
Pennsylvania, USA
Share this story
Delete

Replacing DateTime.Now With Testable Time in .NET Applications

1 Share
Learn how to replace DateTime.Now with TimeProvider in .NET, use UTC and DateTimeOffset safely, and test time-dependent business rules with FakeTimeProvider.
Read the whole story
alvinashcraft
2 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

Is GitHub Copilot improving your code reviews? Here’s how to measure it

1 Share

Is GitHub Copilot actually improving your code reviews? Let's measure it using GitHub's new API metrics.

AI-assisted code review is becoming increasingly common across development teams. GitHub Copilot can analyse pull requests, identify potential issues, recommend improvements, and provide feedback before code is merged. 

However, while it’s relatively easy to measure how frequently Copilot is being used, determining whether those reviews are actually useful is a different challenge. 

For example, an organisation might report that Copilot reviewed hundreds of pull requests in a month. That tells us the capability is being adopted, but it doesn’t necessarily tell us whether developers are acting on the recommendations or whether those recommendations are improving the quality of the code. 

On 5 November 2026, GitHub introduced additional metrics through its Copilot usage metrics API to help address this gap. 

The new reporting capabilities provide information about how developers respond to Copilot code review comments, including whether feedback was addressed and what types of issues were identified. 

Let’s explore the available metrics and build a simple reporting solution using the GitHub REST API and Python. 

Understanding the new metrics

The updated API introduces a copilot_code_review object within repository-level usage reports. 

This object contains several fields that allow us to investigate how Copilot’s code review feedback is being used. 

Metric 

Description 

total_comments_evaluated 

Number of Copilot review comments evaluated for action 

total_comments_addressed 

Number of evaluated comments developers acted on 

review_comments_by_severity 

Breakdown of comments by severity 

review_comments_by_comment_type 

Breakdown by categories such as bugs or security 

review_comments_by_review_tier 

Breakdown by the review’s configured tier 

review_comments_by_customization 

Breakdown by custom instructions, skills, MCP, or no customisation 

total_merged_no_human_change_request_after_review 

Merged PRs without a later human change request after Copilot’s first review 

One particularly useful metric is the addressed rate, calculated as: 

Addressed Rate = 
  Total Comments Addressed 
  ———————— × 100 

  Total Comments Evaluated 

For example, if Copilot generated 20 evaluated review comments and developers acted on 15 of them, the addressed rate would be 75%. 

However, GitHub’s definition of addressed includes several forms of action. Developers might apply a suggested change, modify the code manually, ask Copilot to make a correction, or reply that the issue will be addressed in a later pull request. 

Therefore, an addressed comment doesn’t necessarily mean the underlying problem has been resolved. 

This distinction is important when interpreting the results. 

How reporting the API works

GitHub exposes these metrics through its Copilot usage metrics REST API. 

For this example, we’ll use the organisation-level daily repository report: 

				
					GET /orgs/{org}/copilot/metrics/reports/repos-1-day 
				
			

The request includes a day query parameter specifying the reporting date. 

Unlike a conventional API that returns all the metrics directly in the response, this endpoint returns a set of temporary download links. 

These links point to files containing the actual report data in newline-delimited JSON, or NDJSON, format. 

The general process is: 

  • Authenticate with the GitHub REST API. 
  • Request the repository usage report for a specific date. 
  • Retrieve the returned download links. 
  • Download and parse the NDJSON records. 
  • Calculate the relevant metrics for each repository. 

 

We’ll implement these steps using Python. 

Step 1: Configure API access

Before calling the API, you’ll need an appropriate GitHub account or application identity with permission to view Copilot metrics. 

GitHub supports authorised organisation owners and users with the relevant metrics permissions. For a fine-grained personal access token, the organisation permission required is Organization Copilot metrics: Read. 

The organisation must also have the Copilot usage metrics policy enabled as required by GitHub’s documentation. 

For this demonstration, create an appropriately scoped token and store it in an environment variable rather than placing it directly in the script. 

For example, in PowerShell: 

				
					$env:GITHUB_TOKEN = "" 
$env:GITHUB_ORG = "" 
$env:REPORT_DAY = "2026-11-05" 
				
			

The reporting date is an example. When running the script, select a date for which GitHub has completed processing the metrics. 

Install the Python requests package: 

				
					pip install requests 
				
			

Step 2: Request the repository metrics

Create a Python file named: 

copilot_review_metrics.py

Add the following code: 

				
					import os 
import json 
import requests 
 
TOKEN = os.environ["GITHUB_TOKEN"] 
ORG = os.environ["GITHUB_ORG"] 
DAY = os.environ["REPORT_DAY"] 
 
API_URL = ( 
    f"https://api.github.com/orgs/{ORG}" 
    "/copilot/metrics/reports/repos-1-day" 
) 
 
headers = { 
    "Accept": "application/vnd.github+json", 
    "Authorization": f"Bearer {TOKEN}", 
    "X-GitHub-Api-Version": "2026-03-10" 
} 
 
response = requests.get( 
    API_URL, 
    headers=headers, 
    params={"day": DAY}, 
    timeout=30 
) 
 
response.raise_for_status() 
 
report = response.json() 
 
download_links = report.get("download_links", []) 
 
print(f"Report date: {report.get('report_day')}") 
print(f"Report files: {len(download_links)}") 

The script authenticates with GitHub and requests the repository report for the selected date. 

If the request succeeds, the response contains download links to the report files. A simplified example of the response structure is: 

{ 
  "download_links": [ 
    "https://example.com/report-1.ndjson" 
  ], 
  "report_day": "2026-11-05" 
} 
				
			

The actual download URLs are generated by GitHub and expire after a limited period. 

These URLs should be treated as sensitive temporary access resources and shouldn’t be included in application logs or shared publicly. 

Step 3: Download and process the report

Next, append the following code to the same Python file: 

for link in download_links:

				
					    file_response = requests.get( 
        link, 
        timeout=30 
    ) 
 
    file_response.raise_for_status() 
 
    for line in file_response.text.splitlines(): 
 
        if not line.strip(): 
            continue 
 
        record = json.loads(line) 
 
        repository = record.get("repo_name") 
 
        review = record.get( 
            "copilot_code_review", {} 
        ) 
 
        evaluated = review.get( 
            "total_comments_evaluated", 0 
        ) 
 
        addressed = review.get( 
            "total_comments_addressed", 0 
        ) 
 
        if evaluated > 0: 
            addressed_rate = ( 
                addressed / evaluated 
            ) * 100 
        else: 
            addressed_rate = None 
 
        print(f"\nRepository: {repository}") 
        print(f"Evaluated comments: {evaluated}") 
        print(f"Addressed comments: {addressed}") 
 
        if addressed_rate is not None: 
            print( 
                f"Addressed rate: " 
                f"{addressed_rate:.1f}%" 
            ) 
        else: 
            print("Addressed rate: N/A") 
				
			

The script downloads each report file, reads its NDJSON records, and calculates the addressed rate for each repository. 

It’s important that we check whether total_comments_evaluated is greater than zero before calculating the rate. 

A repository without evaluated comments shouldn’t automatically be reported as having a 0% addressed rate, because that would incorrectly imply that developers ignored the feedback. 

Instead, we report the value as unavailable. 

The example uses a single reporting day. For a longer reporting period, you would request multiple daily reports and aggregate the underlying comment counts. 

You shouldn’t average daily percentages directly, because days with very different numbers of evaluated comments would receive equal weighting. 

Step 4: Analyse different types of review feedback

One of the more interesting capabilities is the ability to investigate which types of recommendations developers are responding to. 

For example, Copilot might identify security concerns, potential bugs, performance issues, or code that doesn’t follow a repository’s custom instructions. 

You can retrieve these breakdowns from the review_comments_by_severity and review_comments_by_comment_type arrays. 

Add the following inside the record-processing loop: 

				
					severity_breakdown = review.get( 
    "review_comments_by_severity", [] 
) 
 
for item in severity_breakdown: 
 
    severity = item.get("severity") 
 
    evaluated_count = item.get( 
        "total_comments_evaluated", 0 
    ) 
 
    addressed_count = item.get( 
        "total_comments_addressed", 0 
    ) 
 
    print( 
        f"{severity}: " 
        f"{addressed_count}/{evaluated_count}" 
        " comments addressed" 
    ) 
				
			

This gives us a more detailed view of how developers are responding to different categories of feedback. 

For example, a team might investigate why high-severity findings are frequently addressed while performance recommendations are ignored. 

However, this shouldn’t immediately be interpreted as developers failing to follow good practices. Some recommendations may be inaccurate, irrelevant, or intentionally deferred. 

The data provides a starting point for investigation, not a complete assessment of engineering quality. 

Step 5: Building a reporting dashboard

Once the data is being retrieved successfully, the next step would be storing it somewhere suitable for reporting. 

For a Microsoft-focused development team, I’d consider storing the aggregated data in Dataverse or another reporting data store and visualising it through Power BI. 

A useful dashboard could include the total number of Copilot-reviewed pull requests, evaluated and addressed comments, addressed rate by repository, and breakdowns by severity or comment type. 

You could also compare the addressed rate against other engineering indicators, such as test failures, defect reports, pull request cycle time, or the frequency of post-merge fixes. 

For repositories using custom Copilot instructions or skills, the review_comments_by_customization field introduces another interesting possibility. 

It allows developers to explore whether customisation influences the type of feedback generated and how frequently developers act on it. 

However, an observed relationship doesn’t establish causation. Differences between repositories, team practices, review settings, and code complexity can all influence these metrics. 

Understanding the limitations

There are several important limitations developers should understand before using these metrics. 

First, comments are evaluated when the associated pull request is merged, meaning the reported activity belongs to the merge date rather than necessarily the date the comment was generated. 

Second, comments on pull requests created by bots may not be evaluated in the same way as those on human-authored pull requests. 

Third, the API does not provide an objective measure of whether Copilot’s recommendation was correct. 

A developer can act on a suggestion that doesn’t improve code quality, just as they might reject a suggestion that was technically valid. 

Similarly, a pull request merging without a later human change request doesn’t prove that it was free of defects. 

For these reasons, I would avoid using addressed rates as a performance measure for individual developers. 

These metrics are more useful for understanding how teams interact with AI-generated feedback and identifying opportunities to improve review processes. 

Final thoughts

GitHub’s new code review metrics represent an improvement in how organisations can evaluate their use of AI-assisted development tools. 

Rather than focusing exclusively on adoption, the data provides more visibility into what happens after Copilot produces a recommendation. 

For development teams, that creates opportunities to investigate which types of feedback are most useful, whether custom instructions are improving review relevance, and where additional engineering practices might be needed. 

However, metrics need to be interpreted carefully. 

The objective shouldn’t be to maximise the number of Copilot comments or achieve the highest possible addressed rate. 

It should be to improve the quality, reliability, and maintainability of the software being delivered. 

AI-generated code reviews are useful, but the value comes from the quality of the feedback and the engineering decisions made in response to it. 

References

Read the whole story
alvinashcraft
3 minutes ago
reply
Pennsylvania, USA
Share this story
Delete

SharePoint MCP is here: Do we still need custom connectors and Power Automate?

1 Share

If you’ve worked with SharePoint integrations long enough, you’ve probably come across a familiar situation. You need an application or AI agent to interact with SharePoint, but the actions you need aren’t always available through the standard connector. So, you turn to Microsoft Graph, SharePoint REST APIs, custom connectors, or a Power Automate flow to bridge the gap. 

While these approaches work, they come with their own challenges. Authentication needs to be configured; API operations need to be understood, and every integration introduces something that developers will eventually need to maintain. 

Microsoft’s introduction of SharePoint MCP tools through Work IQ is an interesting development because it introduces a different way for AI agents to interact with SharePoint. 

Instead of developers defining every possible action in advance, an agent can discover the available operations, understand the parameters they require, and execute them dynamically. 

The question is whether this approach could reduce our reliance on custom connectors and Power Automate. 

What's new with SharePoint MCP?

On 6 November 2026, Microsoft announced the availability of SharePoint tools through the Work IQ API. The capability is currently in public preview and provides access to more than 60 SharePoint operations, including document libraries, files, folders, lists, list items, search, versioning, approvals, and other collaboration capabilities. 

What makes this particularly interesting isn’t simply the number of operations available. It’s how an agent discovers and uses them. 

Traditionally, when building a Copilot Studio agent that interacts with SharePoint, developers might create a cloud flow, configure its inputs, add SharePoint actions, and return the result to the agent. Alternatively, they might expose a Microsoft Graph API through a custom connector. 

In both cases, we’re defining an integration that the agent can invoke. 

SharePoint MCP introduces a dynamic discovery model. Rather than exposing dozens of individual tools to the agent, Work IQ provides a smaller set of generic operations that allow the agent to find the SharePoint functionality it needs. 

This is a significant difference in how we approach agent extensibility. 

Understanding the Discover-and-Act Pattern

The integration follows a sequence involving three operations: 

search_paths allows an agent to discover SharePoint operations relevant to its task. For example, if the user asks the agent to update an item in a SharePoint list, the agent can look for the appropriate operation rather than relying on a predefined tool description. 

get_schema allows the agent to inspect the selected operation’s required parameters, including argument names and expected data types. 

do_action executes the operation using the discovered path and the required arguments. 

For site-specific operations, the agent may first call get_site_key to resolve the SharePoint site into an opaque identifier used by subsequent operations. 

An example interaction might look like this: 

User: 
Find the outstanding project risks in SharePoint 
and update the status of risk RISK-104. 
 
Agent: 
1. Resolve the SharePoint site using get_site_key. 
2. Discover the relevant list operations using search_paths. 
3. Inspect the operation requirements using get_schema. 
4. Retrieve the risk item and confirm its current state. 
5. Ask for confirmation before changing the status. 
6. Execute the update using do_action. 
7. Verify the result and report it to the user.

This is an illustrative interaction, rather than a tested execution trace so take it with a grain of salt. 😊  

One important technical consideration is that agents must use the actual schema returned by Work IQ. For instance, SharePoint operations may require internal column names rather than their display names, and some structured arguments may need to be provided as JSON-encoded strings. 

The advantage is that an agent can discover these requirements at runtime without developers maintaining a separate tool definition for every SharePoint operation. 

What about security?

Whenever AI agents are given access to business systems, the conversation inevitably turns to authentication and permissions. 

SharePoint MCP uses delegated permissions. This means operations are performed using the signed-in user’s identity, and the agent cannot access SharePoint resources beyond what that user is already authorised to access. 

Microsoft has also introduced two Work IQ permission scopes: 

  • WorkIQ.Read allows an application to discover and execute supported read-only operations. 
  • WorkIQ.Act includes read access and permits operations that can modify SharePoint content or configuration. 

 

Importantly, granting WorkIQ.Act doesn’t automatically give the agent unrestricted access to SharePoint. The user’s existing permissions and applicable organisational policies continue to apply. 

However, I would still recommend implementing confirmation steps for consequential actions, particularly those involving deletion, movement of documents, permissions, or bulk updates. 

There’s a difference between an agent being technically authorised to perform an action and the user actually intending for that action to occur. 

Is Power Automate becoming redundant?

I don’t think so, and this is where understanding the distinction between agentic and deterministic automation becomes important. 

Power Automate remains particularly useful for processes that require predictable execution, defined conditions, scheduled triggers, approval workflows, retry policies, and integrations across several business systems. 

Consider an onboarding process that creates a SharePoint folder, updates Dataverse, sends a notification, and records an audit event. A cloud flow provides a structured way of coordinating those operations, with explicit dependencies and error handling. 

Now consider an agent helping an employee organise project documentation. The user might ask it to find documents, inspect metadata, move selected files, and update list items based on their contents. 

The second scenario is more exploratory. The exact operations required might change depending on what the agent discovers. 

That’s where dynamic MCP tooling becomes attractive. 

The same distinction applies to custom connectors. If your application requires a stable API contract, application-only authentication, predictable response structures, or specialised operations outside the SharePoint MCP catalogue, a custom integration might still be preferable. 

MCP doesn’t eliminate these requirements; it provides a different interface for agents to discover and execute capabilities

What should developers consider before using it?

The most important question isn’t whether MCP is newer or more capable than an existing connector. It’s whether the integration pattern suits the application being built. 

For developers working with Copilot Studio or custom agents, SharePoint MCP could reduce the work involved in exposing common SharePoint operations. However, applications using fixed workflows, specific service identities, or tightly controlled transactional processes may still benefit from established Power Automate and API integrations. 

There are also practical limitations to consider. SharePoint MCP is currently in preview, its available paths and schemas may evolve, and the current Work IQ integration uses delegated access rather than providing a universal replacement for unattended integrations. 

Developers should also account for availability, licensing, observability, and tenant-level configuration before adopting the capability in business-critical solutions. 

Final thoughts

What interests me most about SharePoint MCP is the direction Microsoft is taking with agent development. 

For years, developers have created integrations by identifying an operation, defining its input and output parameters, configuring authentication, and exposing it to an application. 

With dynamic tool discovery, agents can identify the capabilities they need at runtime while continuing to operate within defined security boundaries. 

I don’t see this as the end of Power Automate or custom connectors. Instead, I see it as another integration pattern that developers need to understand and know when to use. 

The future of integration development might not involve building fewer APIs, but rather building systems where agents can understand and use existing capabilities more intelligently.

References

Read the whole story
alvinashcraft
3 minutes ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories