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,

  • Running Docker container randomly disappears on AWS EC2 Ubuntu
  • Should I use AWS Elastic Beanstalk or the Amazon EC2 Container Service (ECS) to scale Docker containers?
  • AWS Server setup with JIRA, Docker
  • How to understand Amazon ECS cluster
  • Docker swarm on AWS - swarm services cannot access internet
  • How to run AWS ECS Task overriding environment variables
  • Monitoring MySQL running within a docker container?
  • Does virtualenv serve a purpose (in production) when using docker?
  • ssh through container causes stdin: is not a tty
  • Dockerhub Automatic Build with Github LFS
  • Docker supervisor - unable to find supervisor.conf file
  • nginx windows 10 upstream timeout
  • 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.