func (c CloudConfigCredentialProvider) GetAzureResourceManagerCredentials() (*AzureResourceManagerCredentials, error) {
	token, err := getServicePrincipalTokenFromCloudConfig(c.config, c.environment, c.environment.ResourceManagerEndpoint)
	if err != nil {
		return nil, err
	}
	return &AzureResourceManagerCredentials{
		Token: token,
	}, nil
}
GetAzureResourceManagerCredentials will get Azure credentials for Azure Resource Manager (ARM)
package credentialprovider
import (
	"github.com/Azure/go-autorest/autorest"
	"github.com/Azure/go-autorest/autorest/adal"
)
type AzureResourceManagerCredentials struct {
	SubscriptionID          string
	ResourceManagerEndpoint string
	Token                   *adal.ServicePrincipalToken
}
func (c AzureResourceManagerCredentials) Authorizer() (autorest.Authorizer, error) {
	return createAuthorizerFromServicePrincipalToken(c.Token)
}