Update: Microsoft will be moving away from UserVoice sites on a product-by-product basis throughout the 2021 calendar year. We will leverage 1st party solutions for customer feedback. Learn more here.

Virtual Machines

  • Hot ideas
  • Top ideas
  • New ideas
  • My feedback
  1. Give us a simple way to detect if our code is running in Azure

    Quoted from this 5-year-old request https://feedback.azure.com/forums/34192--general-feedback/suggestions/15187134-give-us-a-simple-way-to-detect-if-our-code-is-runn

    > What I'd like to see is a single really simple way to detect whether my code is running inside or outside Azure.

    > I'd like this to work regardless of whether the code is running as a worker role, web site, web service or on an Azure VM, etc.

    I'm actually a maintainer of a Microsoft-owned SDK, and I'd like to have this feature to facilitate such a detection in our SDK.

    Brainstorming: can VM populate some a specific ENV VAR such as AZUREREGION=xyz, which can then be used as a flag

    1 vote

    We're glad you're here

    Please sign in to leave feedback

    Signed in as (Sign out)

    We’ll send you updates on this idea

    0 comments  ·  Instance Metadata Service  ·  Flag idea as inappropriate…  ·  Admin →
  • Don't see your idea?

Virtual Machines

Categories

Feedback and Knowledge Base