Skip to content

Instantly share code, notes, and snippets.

@DexterPOSH
Last active January 11, 2019 07:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DexterPOSH/8bd71b6176e6d74a659627c294900ff7 to your computer and use it in GitHub Desktop.
Save DexterPOSH/8bd71b6176e6d74a659627c294900ff7 to your computer and use it in GitHub Desktop.
Auth file struct for Azure GoLang SDK
// File represents the authentication file
type file struct {
ClientID string `json:"clientId,omitempty"`
ClientSecret string `json:"clientSecret,omitempty"`
SubscriptionID string `json:"subscriptionId,omitempty"`
TenantID string `json:"tenantId,omitempty"`
ActiveDirectoryEndpoint string `json:"activeDirectoryEndpointUrl,omitempty"`
ResourceManagerEndpoint string `json:"resourceManagerEndpointUrl,omitempty"`
GraphResourceID string `json:"activeDirectoryGraphResourceId,omitempty"`
SQLManagementEndpoint string `json:"sqlManagementEndpointUrl,omitempty"`
GalleryEndpoint string `json:"galleryEndpointUrl,omitempty"`
ManagementEndpoint string `json:"managementEndpointUrl,omitempty"`
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment