Skip to content

Add US Gov endpoint for OperationalInsights data plane #6058

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ static IDictionary<string, AzureEnvironment> InitializeBuiltInEnvironments()
BatchEndpointResourceId = AzureEnvironmentConstants.USGovernmentBatchEndpointResourceId,
AdTenant = "Common"
};
azureUSGovernment.SetProperty(ExtendedEndpoint.OperationalInsightsEndpoint, AzureEnvironmentConstants.USGovernmentOperationalInsightsEndpoint);
azureUSGovernment.SetProperty(ExtendedEndpoint.OperationalInsightsEndpointResourceId, AzureEnvironmentConstants.USGovernmentOperationalInsightsEndpointResourceId);
var azureGermany = new AzureEnvironment
{
Name = EnvironmentName.AzureGermanCloud,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ public static class AzureEnvironmentConstants
/// The token audience for Log Analytics Queries
/// </summary>
public const string AzureOperationalInsightsEndpointResourceId = "https://api.loganalytics.io";
public const string USGovernmentOperationalInsightsEndpointResourceId = "https://api.loganalytics.us";

/// <summary>
/// The endpoint URI for Log Analytics Queries
/// </summary>
public const string AzureOperationalInsightsEndpoint = "https://api.loganalytics.io/v1";
public const string USGovernmentOperationalInsightsEndpoint = "https://api.loganalytics.us/v1";

/// <summary>
/// The domain name suffix for Azure DataLake services
Expand Down
1 change: 1 addition & 0 deletions src/ResourceManager/Profile/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->
## Current Release
* Set minimum dependency of module to PowerShell 5.0
* Add USGovernmentOperationalInsightsEndpoint and USGovernmentOperationalInsightsEndpointResourceId properties to Azure environment for US Gov.

## Version 4.6.0
* Updated to the latest version of the Azure ClientRuntime
Expand Down