Skip to content

Commit 3f4a97e

Browse files
committed
add us gov endpoint for operational insights querying
1 parent b0600c9 commit 3f4a97e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ static IDictionary<string, AzureEnvironment> InitializeBuiltInEnvironments()
9999
BatchEndpointResourceId = AzureEnvironmentConstants.USGovernmentBatchEndpointResourceId,
100100
AdTenant = "Common"
101101
};
102+
azureUSGovernment.SetProperty(ExtendedEndpoint.OperationalInsightsEndpoint, AzureEnvironmentConstants.USGovernmentOperationalInsightsEndpoint);
103+
azureUSGovernment.SetProperty(ExtendedEndpoint.OperationalInsightsEndpointResourceId, AzureEnvironmentConstants.USGovernmentOperationalInsightsEndpointResourceId);
102104
var azureGermany = new AzureEnvironment
103105
{
104106
Name = EnvironmentName.AzureGermanCloud,

src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,13 @@ public static class AzureEnvironmentConstants
119119
/// The token audience for Log Analytics Queries
120120
/// </summary>
121121
public const string AzureOperationalInsightsEndpointResourceId = "https://api.loganalytics.io";
122+
public const string USGovernmentOperationalInsightsEndpointResourceId = "https://api.loganalytics.us";
122123

123124
/// <summary>
124125
/// The endpoint URI for Log Analytics Queries
125126
/// </summary>
126127
public const string AzureOperationalInsightsEndpoint = "https://api.loganalytics.io/v1";
128+
public const string USGovernmentOperationalInsightsEndpoint = "https://api.loganalytics.us/v1";
127129

128130
/// <summary>
129131
/// The domain name suffix for Azure DataLake services

0 commit comments

Comments
 (0)