The Azure Code Samples are currently available in English
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:
Clone the repository using the following command:
git clone https://github.com/Azure-Samples/Hybrid-resources-java-manage-resource-group.git
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.
Set the following required environment variable values:
Change directory to sample:
- cd Hybrid-resources-java-manage-resource-group
Run the sample:
- mvn clean compile exec:java