Skip to content

Commit a8bed25

Browse files
authored
Update README.md
1 parent 74dc521 commit a8bed25

File tree

1 file changed

+25
-27
lines changed

1 file changed

+25
-27
lines changed

README.md

Lines changed: 25 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,49 +4,47 @@ languages:
44
- java
55
products:
66
- azure
7+
- azure-virtual-machines
78
description: "Making use of the reactive pattern in a complex virtual machine creation scenario"
89
urlFragment: compute-java-create-vms-async-tracking-related-resources
910
---
1011

11-
# Getting Started with Compute - Create Virtual Machines Async Tracking Related Resources - in Java #
12+
# Create Virtual Machines Async Tracking Related Resources (Java)
1213

14+
Making use of the reactive pattern in a complex virtual machine creation scenario
1315

14-
Making use of the reactive pattern in a complex virtual machine creation scenario
15-
16-
This sample shows how the reactive pattern (RXJava's Observables) supported by the Azure Libraries for Java in their asynchronous API
17-
can be used for handling some more complex real world scenarios involving distributed computation in the cloud with relative ease.
18-
The specific example here shows how Observables enable real time tracking of the creation of many virtual machines in parallel and
19-
all their related resources. Since Azure does not support transactional creation of virtual machines (no automatic rollback in case
20-
of failure), this could be useful for example for the purposes of deleting "orphaned" resources, whenever the creation of some other
21-
resources fails. Or simply showing real-time progress in some UI to the end user.
22-
23-
The sample goes through the following steps:
24-
25-
1. Define a number of virtual machines and their related required resources (such as virtual networks, etc)
26-
2. Start the parallel creation of those virtual machines with observer logic keeping track of the created resources and reporting
27-
them on the console in real time
28-
3. Clean up the "orphaned" resources, i.e. those that were created successfully but whose associated virtual machine
29-
failed to be created for some reason.
16+
This sample shows how the reactive pattern (RXJava's Observables) supported by the Azure Libraries for Java in their asynchronous API
17+
can be used for handling some more complex real world scenarios involving distributed computation in the cloud with relative ease.
18+
The specific example here shows how Observables enable real time tracking of the creation of many virtual machines in parallel and
19+
all their related resources. Since Azure does not support transactional creation of virtual machines (no automatic rollback in case
20+
of failure), this could be useful for example for the purposes of deleting "orphaned" resources, whenever the creation of some other
21+
resources fails. Or simply showing real-time progress in some UI to the end user.
22+
23+
The sample goes through the following steps:
24+
25+
1. Define a number of virtual machines and their related required resources (such as virtual networks, etc)
26+
2. Start the parallel creation of those virtual machines with observer logic keeping track of the created resources and reporting
27+
them on the console in real time
28+
3. Clean up the "orphaned" resources, i.e. those that were created successfully but whose associated virtual machine
29+
failed to be created for some reason.
3030

3131

32-
## Running this Sample ##
32+
## Running this sample
3333

3434
To run this sample:
3535

3636
Set the environment variable `AZURE_AUTH_LOCATION` with the full path for an auth file. See [how to create an auth file](https://github.com/Azure/azure-libraries-for-java/blob/master/AUTH.md).
3737

38-
git clone https://github.com/Azure-Samples/compute-java-create-vms-async-tracking-related-resources.git
38+
```bash
39+
git clone https://github.com/Azure-Samples/compute-java-create-vms-async-tracking-related-resources.git
40+
cd compute-java-create-vms-async-tracking-related-resources
41+
mvn clean compile exec:java
42+
```
3943

40-
cd compute-java-create-vms-async-tracking-related-resources
41-
42-
mvn clean compile exec:java
43-
44-
## More information ##
44+
## More information
4545

4646
[http://azure.com/java](http://azure.com/java)
4747

48-
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212)
49-
50-
---
48+
If you don't have a Microsoft Azure subscription you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212).
5149

5250
This project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). For more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [[email protected]](mailto:[email protected]) with any additional questions or comments.

0 commit comments

Comments
 (0)