Skip to content

Proposal: Consolidate MSAL Region Discovery onto the IMDS /compute Endpoint #6039

Description

@gladjohn

Task: Use the newer IMDS /compute endpoint for region discovery

Why

/metadata/instance/compute with API version 2021-02-01 is the newer, more reliable IMDS endpoint. Use it for region discovery.

Change

RegionManager calls:

GET http://169.254.169.254/metadata/instance/compute?api-version=2021-02-01
Headers: Metadata: true

Parse the JSON response and read the location field. Cache the result process-wide. REGION_NAME env var still wins first.

Result

  • Newer, more reliable IMDS endpoint.
  • No public API change. Existing region telemetry unchanged.

Acceptance

  • RegionManager calls /compute with 2021-02-01.
  • location parsed from the JSON response.
  • Existing region discovery tests pass.

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Task.

    Projects

    Status
    Committed

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions