@@ -36,7 +36,7 @@ Azure Management Libraries for Java is object-oriented API for managing Azure re
3636
3737There are 3 levels of object for Azure resource management.
3838
39- Topmost, there is ** service** API, e.g. ` ComputeManager ` for Azure compute service or ` Azure ` for all supported services.
39+ Topmost, there is ** service** API, e.g. ` ComputeManager ` for Azure compute service or ` AzureResourceManager ` for all supported services.
4040[ Authentication] [ authenticate ] is required to instantiate the service API.
4141
4242Next, there is ** resource collection** API, e.g. ` VirtualMachines ` to manage Azure virtual machine.
@@ -50,14 +50,14 @@ A resource instance can be instantiated as:
5050
5151- Creating a new Azure resource from resource collection API, with method verb ` define ` till ` create ` , e.g.
5252
53- ```
53+ ``` java
5454VirtualMachine virtualMachine = computeManager. virtualMachines()
5555 .define(name).. . create();
5656```
5757
5858- Getting an existing Azure resource from resource collection API, with method verb ` get ` or ` list ` , e.g.
5959
60- ```
60+ ``` java
6161VirtualMachine virtualMachine = computeManager. virtualMachines()
6262 .getByResourceGroup(resourceGroupName, name);
6363```
@@ -66,15 +66,15 @@ After a resource instance is instantiated, it can be modified as:
6666
6767- Updating the Azure resource, with method verb ` update ` till ` apply ` , e.g.
6868
69- ```
69+ ``` java
7070virtualMachine. update().. . apply();
7171```
7272
7373After the Azure resource served its purpose, it can be deleted as:
7474
7575- Deleting the Azure resource from resource collection API, with method verb ` delete ` , e.g.
7676
77- ```
77+ ``` java
7878computeManager. virtualMachines(). deleteByResourceGroup(resourceGroupName, name);
7979```
8080
@@ -108,7 +108,7 @@ The method verb `list` in resource collection API usually returns a `PagedIterab
108108
109109The results can be iterated by items, in a for-loop, or via ` forEach ` .
110110Alternatively, the results can be iterated by pages, e.g.
111- ```
111+ ``` java
112112computeManager. virtualMachines(). list()
113113 .iterableByPage()
114114 .forEach(page - > ... );
0 commit comments