This shows off example functions for creating and destroying Applicaiton Identities using the azure go sdk.
Credentials for authing requests to azure inferred from following environment variables:
export AZURE_TENANT_ID="<active_directory_tenant_id"
export AZURE_CLIENT_ID="<service_principal_appid>"
export AZURE_CLIENT_SECRET="<service_principal_password>"
export AZURE_SUBSCRIPTION_ID="<subscription_id>"
you can grab all of this info from an azure service principal artifact in massdriver
go run main.go