This sample is very similar to hybrid-resources-dotnet-manage-resource-group sample except that it uses certificates for authentication.
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:
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.
Export the service principal certificate as a pfx file.
Set the following required environment variable values:
Change directory to sample:
- cd hybrid-resources-dotnet-manage-resource-group-certificate
Run the sample: