Skip to content
Getting started on managing resource groups using Java on Azure Stack hybrid cloud https://docs.microsoft.com/en-us/java/azure
Java
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 Initial commit Oct 4, 2018
src/main/java/com/microsoft/azure/management Initial commit for manage rg sample for hybrid cloud Oct 4, 2018
.gitignore Initial commit Oct 4, 2018
CHANGELOG.md Initial commit for manage rg sample for hybrid cloud Oct 4, 2018
CONTRIBUTING.md Initial commit for manage rg sample for hybrid cloud Oct 4, 2018
LICENSE.md
README.md Update README.md Sep 12, 2019
pom.xml Update HttpClient version Apr 16, 2019

README.md

page_type languages products description urlFragment
sample
java
azure
Azure Stack Resource sample for managing resource groups
Hybrid-resources-java-manage-resource-group

Hybrid-Resources-Java-Manage-ResourceGroup

Azure Stack Resource sample for managing resource groups -

  • Create a resource group
  • Update a resource group
  • Create another resource group
  • List resource groups
  • Delete a resource group.

Running this Sample

To run this sample:

  1. Clone the repository using the following command:

    git clone https://github.com/Azure-Samples/Hybrid-resources-java-manage-resource-group.git

  2. Create an Azure service principal and assign a role to access the subscription. For instructions on creating a service principal in Azure Stack, 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 sample:

    • cd Hybrid-resources-java-manage-resource-group
  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.