web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PAC CLI 2.8.1 crashes ...
Power Apps
Suggested Answer

PAC CLI 2.8.1 crashes with System.NullReferenceException during pac auth create on macOS 26.5.1

(0) ShareShare
ReportReport
Posted on by

PAC CLI 2.8.1 crashes with System.NullReferenceException during pac auth create on macOS 26.5.1

Summary

Power Platform CLI installs successfully and all non-authentication commands work. However, every authentication-related command crashes with a System.NullReferenceException before the authentication flow starts.

This prevents authentication and blocks Power Platform Code Apps development on macOS.


Environment

  • Operating System: macOS 26.5.1 (Build 25F80)

  • Architecture: Apple Silicon (arm64)

  • .NET SDK: 10.0.301

  • .NET Runtime: 10.0.9

  • Power Platform CLI: 2.8.1

  • Installation Method:

    dotnet tool install --global Microsoft.PowerApps.CLI.Tool
    

Steps to Reproduce

  1. Install .NET SDK 10.

  2. Install the latest Power Platform CLI:

dotnet tool install --global Microsoft.PowerApps.CLI.Tool
  1. Verify the CLI is installed:

pac
  1. Execute any authentication command:

pac auth create

or

pac auth create --deviceCode

or

pac auth list

Expected Behavior

The CLI should start the authentication flow by opening a browser or displaying a device code, allowing the user to authenticate successfully.


Actual Behavior

The CLI immediately terminates with:

Sorry, the app encountered a non-recoverable error and will need to terminate.

Exception Type:
System.NullReferenceException

The authentication flow never starts.


Diagnostic Log

The log shows that the CLI attempts to create an operating system authentication profile before starting authentication:

TryCreateAuthProfileFromOperatingSystemAsync

It then crashes inside the Microsoft Authentication Library (MSAL):

Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker

System.NullReferenceException

The stack trace indicates the exception originates from the RuntimeBroker initialization:

Microsoft.Identity.Client.Platforms.Features.RuntimeBroker.RuntimeBroker..ctor(...)
Microsoft.Identity.Client.Broker.BrokerExtension.AddRuntimeSupport(...)
Microsoft.Identity.Client.PlatformsCommon.Shared.AbstractPlatformProxy.CreateBroker(...)

The crash occurs before browser authentication or device code authentication begins.


Additional Information

  • pac starts successfully.

  • pac help works correctly.

  • The issue occurs with:

    • pac auth create

    • pac auth create --deviceCode

    • pac auth list

  • A clean reinstall of:

    • .NET SDK

    • Power Platform CLI

    • VS Code
      does not resolve the issue.

  • The issue reproduces consistently.


Impact

This issue prevents authentication to Power Platform environments and blocks development using Power Platform CLI and Power Platform Code Apps on macOS.


Question

Is this a known compatibility issue between PAC CLI 2.8.1 / MSAL RuntimeBroker and macOS 26.5.1?

If so:

  • Is there a recommended workaround?

  • Is there a newer CLI build or hotfix that resolves this issue?

  • Is there a way to disable RuntimeBroker initialization so that browser or device code authentication can proceed?

Screenshot 2026-0...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    CU01072108-0 Profile Picture
    2 on at
    It seems to be a known issue - the fix is to downgrade to the powerapps.cli.tool to version 2.5.1
     
    dotnet tool uninstall -g microsoft.powerapps.cli.tool
    dotnet tool install -g microsoft.powerapps.cli.tool --version 2.5.1
     
    See
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard