Detect if my app runs in Azure

I’m wondering if it is possible to detect if my Java app inside a Docker container is running in Azure. For AWS it is pretty simple, because AWS has the EC2 meta data service ( Has Azure something similar?

Thanks and Regards,

  • AWS Elastic Beanstalk Docker main command
  • Docker - AWS - What do I need to do next?
  • Passing binary data to callables on AWS
  • When docker run, an error occurs. “ValueError: Unable to configure handler 'watchtower': You must specify a region.”
  • Benefits of deploying .NET Core App as a Dockerized Container?
  • Can a single EBS be shared across multiple Amazon Docker Containers?
  • Cannot receieve response from activemq when using docker
  • remote server returned 400 bad request for apache2 in ubuntu
  • Docker procedure - treat local copy as staging server?
  • Docker compose postgresql service - can't create user and database during build?
  • Can not access kubernetes master from the container of pods according DNS
  • Timeout issue with a dockerized phantomjs
  • One Solution collect form web for “Detect if my app runs in Azure”

    Is this what you are looking for?

    Check out the isAvailable() method.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.