refactor more samples, clean up directories

This commit is contained in:
Robert Outlaw 2017-06-16 13:54:09 -07:00
Родитель 30cd3c43a6
Коммит 82fdab9c16
8 изменённых файлов: 23 добавлений и 27 удалений

Просмотреть файл

@ -0,0 +1,19 @@
| **Create virtual machines** ||
|---|---|
| [Manage virtual machines][1] | Create, modify, start, stop, and delete virtual machines. |
| [Create a virtual machine from a custom image][2] | Create a custom virtual machine image and use it to create new virtual machines. |
| [Create a virtual machine using specialized VHD from a snapshot][3] | Create snapshot from the virtual machine's OS and data disks, create managed disks from the snapshots, and then create a virtual machine by attaching the managed disks. |
| [Create virtual machines in parallel in the same network][4] | Create virtual machines in the same region on the same virtual network with two subnets in parallel. |
| [Create virtual machines across regions in parallel][5] | Create and load-balance a set of virtual machines across multiple Azure regions. |
| **Network virtual machines** ||
| [Manage virtual networks][6] | Set up a virtual network with two subnets and restrict Internet access to them. |
| **Create scale sets** ||
| [Create a virtual machine scale set with a load balancer][7] | Create a VM scale set, set up a load balancer, and get SSH connection strings to the scale set VMs. |
[1]: ../java-sdk-manage-virtual-machines.md
[2]: https://azure.microsoft.com/resources/samples/managed-disk-java-create-virtual-machine-using-custom-image/
[3]: https://azure.microsoft.com/resources/samples/managed-disk-java-create-virtual-machine-using-specialized-disk-from-vhd/
[4]: https://azure.microsoft.com/resources/samples/compute-java-manage-virtual-machines-in-parallel/
[5]: ../java-sdk-virtual-machines-in-parallel.md
[6]: ../java-sdk-manage-virtual-networks.md
[7]: ../java-sdk-manage-vm-scalesets.md

Просмотреть файл

Просмотреть файл

@ -29,7 +29,7 @@ StorageAccount storage = azure.storageAccounts().define(storageAccountName)
As you go through the method chain, your IDE suggests the next method to call in the fluent conversation.
![GIF of IntelliJ command completion working through a fluent chain](intelliJFluent.gif)
![GIF of IntelliJ command completion working through a fluent chain](media/intelliJFluent.gif)
Chain the methods suggested by the IDE as long as they make sense for the Azure resource being defined. If you are missing a required method in the chain your IDE will highlight it with an error.

Просмотреть файл

@ -27,7 +27,7 @@ This guide walks you through setting up a development environment with an Azure
The [Azure Cloud Shell](https://docs.microsoft.coms/azure/cloud-shell/quickstart) (in public preview) is a web-based shell that is preconfigured to simplify using Azure tools. With Cloud Shell, you always have the most up-to-date version of the tools available and you dont have to install, update or separately log in. Click the **Try It** button at the top right of an Azure CLI code block to launch the Cloud Shell. Then, use the **Copy** button to copy and paste the sample code into the Cloud Shell.
You can also open the Cloud Shell from the Azure portal by clicking the ![Cloud Shell](cs-button.png) button on the top navigation.
You can also open the Cloud Shell from the Azure portal by clicking the ![Cloud Shell](media/cs-button.png) button on the top navigation.
This guide uses Maven build tool to build and run the sample code, but other build tools such as Gradle also work with the Azure libraries for Java.

Просмотреть файл

@ -18,22 +18,4 @@ ms.assetid: 1eeb166f-8253-4fde-82d2-43997fda7819
The following table links to Java source you can use to create and configure Azure virtual machines.
| **Create virtual machines** ||
|---|---|
| [Manage virtual machines][1] | Create, modify, start, stop, and delete virtual machines. |
| [Create a virtual machine from a custom image][2] | Create a custom virtual machine image and use it to create new virtual machines. |
| [Create a virtual machine using specialized VHD from a snapshot][3] | Create snapshot from the virtual machine's OS and data disks, create managed disks from the snapshots, and then create a virtual machine by attaching the managed disks. |
| [Create virtual machines in parallel in the same network][4] | Create virtual machines in the same region on the same virtual network with two subnets in parallel. |
| [Create virtual machines across regions in parallel][5] | Create and load-balance a set of virtual machines across multiple Azure regions. |
| **Network virtual machines** ||
| [Manage virtual networks][6] | Set up a virtual network with two subnets and restrict Internet access to them. |
| **Create scale sets** ||
| [Create a virtual machine scale set with a load balancer][7] | Create a VM scale set, set up a load balancer, and get SSH connection strings to the scale set VMs. |
[1]: java-sdk-manage-virtual-machines.md
[2]: https://azure.microsoft.com/resources/samples/managed-disk-java-create-virtual-machine-using-custom-image/
[3]: https://azure.microsoft.com/resources/samples/managed-disk-java-create-virtual-machine-using-specialized-disk-from-vhd/
[4]: https://azure.microsoft.com/resources/samples/compute-java-manage-virtual-machines-in-parallel/
[5]: java-sdk-virtual-machines-in-parallel.md
[6]: java-sdk-manage-virtual-networks.md
[7]: java-sdk-manage-vm-scalesets.md
[!INCLUDE [java-vm-samples](includes/java-vm-samples.md)]

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 316 B

После

Ширина:  |  Высота:  |  Размер: 316 B

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 254 KiB

После

Ширина:  |  Высота:  |  Размер: 254 KiB

Просмотреть файл

@ -51,11 +51,6 @@ VirtualMachine newLinuxVm = azure.virtualMachines().define(linuxVmName)
## Samples
| | |
|--|--|
| [Manage virtual machines](../docs-ref-conceptual/java-sdk-manage-virtual-machines.md) | Create, update, and delete a Linux or Windows virtual machine. Stop and start virtual machines and add and remove disks to new and existing virtual machines. |
| [Manage virtual machine scale sets](../docs-ref-conceptual/java-sdk-manage-vm-scalesets.md) | Create a Linux virtual machine scale set, set up a load balancer, and get SSH connection strings to each of the scale set VMs. |
| [Create a virtual machine from a custom image](https://azure.microsoft.com/resources/samples/managed-disk-java-create-virtual-machine-using-custom-image) | Create a generalized Linux image from an existing VM and use it to create a new virtual machine. |
[!INCLUDE [java-vm-samples](includes/java-vm-samples.md)]
Explore more [sample Java code](https://azure.microsoft.com/resources/samples/?platform=java) you can use in your apps.