Hot questions for Using Azure in amazon web services

Top Java Programmings / Azure / amazon web services

Question:


Answer:

Can one VM be in different networks with one address? the answer is yes. BUT you have to set two way network peering as this diagram:

Learn more about network peering: https://cloud.google.com/vpc/docs/vpc-peering

for quick tutorial to get this see this good hands-on lab https://www.qwiklabs.com/focuses/964?catalog_rank=%7B%22rank%22%3A6%2C%22num_filters%22%3A0%2C%22has_search%22%3Atrue%7D&parent=catalog&search_id=3929793

Question:

Currently , we have our infra on AWS, and we use stack which consist S3, SNS, SQS, etc. So recently we are planning to move to Azure, to use corresponding infea like Blobstorage etc. Is there is any library, which can be included in project to decide at runtime whether call is for Azure or AWS. and based on request, it will do operation on corresponding cloud service provider. No proxy is required like S3 proxy etc Eg:

Http Call --> My company Service ->{some thirdparty library}--->|------->AWS
                                   {to decide at runtime}       |
                                                                |------->Azure

Answer:

It seems that Apache Libcloud may satisfy your needs, but which be for Python, not Java. You can try to use it via Jython on Java Platform.

Question:

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


Answer:

Is this what you are looking for?

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

Check out the isAvailable() method.