Skip to content

Commit a3d6899

Browse files
authored
Merge pull request #6058 from alexeldeib/ace/usGov
Add US Gov endpoint for OperationalInsights data plane
2 parents 05a4844 + cd15f9c commit a3d6899

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-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

src/ResourceManager/Profile/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020
## Current Release
2121
* Set minimum dependency of module to PowerShell 5.0
22+
* Add USGovernmentOperationalInsightsEndpoint and USGovernmentOperationalInsightsEndpointResourceId properties to Azure environment for US Gov.
2223

2324
## Version 4.6.0
2425
* Updated to the latest version of the Azure ClientRuntime

0 commit comments

Comments
 (0)