Skip to content

Instantly share code, notes, and snippets.

@justinyoo
Created November 17, 2017 00:35
Show Gist options
  • Save justinyoo/67829ffceaee6533f9e65cdfb77e8490 to your computer and use it in GitHub Desktop.
Save justinyoo/67829ffceaee6533f9e65cdfb77e8490 to your computer and use it in GitHub Desktop.
Outbound IP Registration to Azure SQL Using Azure Functions
public static class Config
{
public static string TenantId { get; } =
Environment.GetEnvironmentVariable("Sp.DirectoryId");
public static string SubscriptionId { get; } =
Environment.GetEnvironmentVariable("Sp.SubscriptionId");
public static string ClientId { get; } =
Environment.GetEnvironmentVariable("Sp.ApplicationId");
public static string ClientSecret { get; } =
Environment.GetEnvironmentVariable("Sp.ApplicationKey");
public static string ResourceGroupName { get; } =
Environment.GetEnvironmentVariable("Rg.Name");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment