Skip to content
Getting Started with Compute - Manage Virtual Machines using Java on Azure Stack hybrid cloud https://docs.microsoft.com/en-us/java/azure
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
src/main/java/com/microsoft/azure/management
.gitignore
CHANGELOG.md
CONTRIBUTING.md
LICENSE.md
README.md
pom.xml

README.md

services platforms author
Azure-Stack
java
viananth

Hybrid-Compute-Java-Manage-VM

Azure Compute sample for managing virtual machines -

  • Create a virtual machine
  • Update a virtual machine
    • Tag a virtual machine
    • Attach data disks
    • Detach data disks
  • Restart a virtual machine
  • Stop(Poweroff) virtual machine
  • Delete a virtual machine.

Running this Sample

To run this sample:

  1. Clone the repository using the following command:

    git clone https://github.com/Azure-Samples/hybrid-compute-java-manage-vm.git

  2. Create an Azure service principal and assign a role to access the subscription. For instructions on creating a service principal, see Use Azure PowerShell to create a service principal with a certificate.

  3. Set the following required environment variable values:

    • AZURE_TENANT_ID

    • AZURE_CLIENT_ID

    • AZURE_CLIENT_SECRET

    • AZURE_SUBSCRIPTION_ID

    • ARM_ENDPOINT

    • RESOURCE_LOCATION

  4. Change directory to Hybrid sample:

    • cd hybrid-compute-java-manage-vm
  5. Run the sample:

    • mvn clean compile exec:java

More information

http://azure.com/java


This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

You can’t perform that action at this time.