Skip to content

CI build failure: npm blocked by network isolation rules in command metadata refresh pipeline #3563

@gavinbarron

Description

@gavinbarron

Description

The command metadata refresh pipeline is failing because network isolation rules are blocking npm access to the public registry (registry.npmjs.org). This prevents installation of autorest, autorest core, rush, and rush dependencies.

Build Link

https://microsoftgraph.visualstudio.com/Graph%20Developer%20Experiences/_build/results?buildId=213646&view=logs&j=ede078fe-2a98-5bef-7d41-ce060c17395e&t=16397dbc-9b9b-5731-79d9-dd4acfa7ba0f

Root Cause

The pipeline installs npm packages (autorest, rush) directly from the public npm registry. Network isolation rules in the build environment block outbound access to registry.npmjs.org.

Proposed Fix

  • Create a PowerShell script (\ ools/Configure-PrivateNpmFeed.ps1\) that configures \.npmrc\ files to use the private Azure Artifacts npm feed (\PowerShell_V2_Build\)
  • Update \install-tools.yml\ to run the script and authenticate via \
    pmAuthenticate@0\ before installing autorest and rush
  • Overwrite the Rush \.npmrc\ at build time so external contributors can still clone and install from the public feed

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions