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 (http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html). Has Azure something similar?

Thanks and Regards,
Sascha

  • Cannot connect docker swarm agent from outside internet
  • How do I expose Kubernetes service to the internet?
  • Getting list of running containers from a cluster
  • Linking containers between task definitions in AWS ECS?
  • Use Assume role for Local Docker Containers
  • Elastic Beanstalk - Update App based on DockerHub “Automated Build”
  • Docker MongoDB : UserNotFound
  • Advantages/Disadvantages of Running Jenkins Slaves for Dev/Test/Prod?
  • apt-get install -f does not resolve dependencies
  • How do you get debugging symbols working in linux perf tool inside Docker containers?
  • HDFS as volume in cloudera quickstart docker
  • SkyDNS in Daemon Sets and local DNS resolution
  • One Solution collect form web for “Detect if my app runs in Azure”

    Is this what you are looking for?

    http://dl.windowsazure.com/javadoc/com/microsoft/windowsazure/serviceruntime/RoleEnvironment.html

    Check out the isAvailable() method.

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