Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created November 17, 2017 00:33
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 justinyoo/f8a2df3f8bc38cc7f2fb3651fd28f8e0 to your computer and use it in GitHub Desktop.
Save justinyoo/f8a2df3f8bc38cc7f2fb3651fd28f8e0 to your computer and use it in GitHub Desktop.
Outbound IP Registration to Azure SQL Using Azure Functions
var credentials = SdkContext.AzureCredentialsFactory
.FromServicePrincipal(clientId,
clientSecret,
tenantId,
AzureEnvironment.AzureGlobalCloud);
var azure = Azure.Configure()
.WithLogLevel(logLevel)
.Authenticate(credentials)
.WithSubscription(subscriptionId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment