diff --git a/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironment.cs b/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironment.cs index 480b315aa7ae..0dd14888e3c1 100644 --- a/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironment.cs +++ b/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironment.cs @@ -99,6 +99,8 @@ static IDictionary 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, diff --git a/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs b/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs index eea677a1817e..aa52a394a867 100644 --- a/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs +++ b/src/Common/Commands.Common.Authentication.Abstractions/AzureEnvironmentConstants.cs @@ -119,11 +119,13 @@ public static class AzureEnvironmentConstants /// The token audience for Log Analytics Queries /// public const string AzureOperationalInsightsEndpointResourceId = "https://api.loganalytics.io"; + public const string USGovernmentOperationalInsightsEndpointResourceId = "https://api.loganalytics.us"; /// /// The endpoint URI for Log Analytics Queries /// public const string AzureOperationalInsightsEndpoint = "https://api.loganalytics.io/v1"; + public const string USGovernmentOperationalInsightsEndpoint = "https://api.loganalytics.us/v1"; /// /// The domain name suffix for Azure DataLake services diff --git a/src/ResourceManager/Profile/ChangeLog.md b/src/ResourceManager/Profile/ChangeLog.md index 3f8f4e13b9b4..18e7a7b990f6 100644 --- a/src/ResourceManager/Profile/ChangeLog.md +++ b/src/ResourceManager/Profile/ChangeLog.md @@ -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