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,
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.