azuread-auth

command
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

README

Example: using Azure Active Directory authentication

This example provisions a Storage Container using Azure Active Directory for authentication.

To run this example you need the following Environment Variables set:

  • ARM_CLIENT_ID - The UUID of the Service Principal/Application
  • ARM_CLIENT_SECRET - The Secret associated with the Service Principal
  • ARM_ENVIRONMENT - The Azure Environment (public, germany etc)
  • ARM_SUBSCRIPTION_ID - The UUID of the Azure Subscription
  • ARM_TENANT_ID - The UUID of the Azure Tenant

You also need to update main.go to set the variable storageAccountName to an existing Storage Account (since we don't provision one for you).

Assuming you've got Go installed - you can then run this using:

$ go run main.go

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL