From 5515c3409c53baac5459bdf0493880e82ea26403 Mon Sep 17 00:00:00 2001 From: Martin Arndt <5111490+Eagle3386@users.noreply.github.com> Date: Mon, 30 Sep 2024 17:49:09 +0200 Subject: [PATCH 1/4] Azure/azure-sdk-for-net#46311 --- sdk/identity/Azure.Identity/src/AzureAuthorityHosts.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/identity/Azure.Identity/src/AzureAuthorityHosts.cs b/sdk/identity/Azure.Identity/src/AzureAuthorityHosts.cs index d831421ddd78..6567cbf63c07 100644 --- a/sdk/identity/Azure.Identity/src/AzureAuthorityHosts.cs +++ b/sdk/identity/Azure.Identity/src/AzureAuthorityHosts.cs @@ -27,6 +27,7 @@ public static class AzureAuthorityHosts /// /// The host of the Microsoft Entra authority for tenants in the Azure German Cloud. /// + [Obsolete("Microsoft Cloud Germany was closed on October 29th, 2021.")] public static Uri AzureGermany { get; } = new Uri(AzureGermanyHostUrl); /// From abf79c06929899ca800b2ccf6ca9af656854462f Mon Sep 17 00:00:00 2001 From: Martin Arndt <5111490+Eagle3386@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:44:45 +0200 Subject: [PATCH 2/4] Replace AzureGermany usage in TokenCredentialOptionsTests.cs --- .../Azure.Identity/tests/TokenCredentialOptionsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/identity/Azure.Identity/tests/TokenCredentialOptionsTests.cs b/sdk/identity/Azure.Identity/tests/TokenCredentialOptionsTests.cs index 31d5dfda9fec..49429ef7a989 100644 --- a/sdk/identity/Azure.Identity/tests/TokenCredentialOptionsTests.cs +++ b/sdk/identity/Azure.Identity/tests/TokenCredentialOptionsTests.cs @@ -57,7 +57,7 @@ public void EnvAuthorityHost() [Test] public void CustomAuthorityHost() { - string envHostValue = AzureAuthorityHosts.AzureGermany.ToString(); + string envHostValue = AzureAuthorityHosts.AzureGovernment.ToString(); using (new TestEnvVar("AZURE_AUTHORITY_HOST", envHostValue)) { From 5e1dd4a19dba9ccf98c6b460c4c2058a801232ee Mon Sep 17 00:00:00 2001 From: Martin Arndt <5111490+Eagle3386@users.noreply.github.com> Date: Tue, 1 Oct 2024 11:46:49 +0200 Subject: [PATCH 3/4] Remove AzureGermany usage in ManagedIdentityCredentialTests.cs --- .../Azure.Identity/tests/ManagedIdentityCredentialTests.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/identity/Azure.Identity/tests/ManagedIdentityCredentialTests.cs b/sdk/identity/Azure.Identity/tests/ManagedIdentityCredentialTests.cs index 5f600c5f3748..c2286530ddad 100644 --- a/sdk/identity/Azure.Identity/tests/ManagedIdentityCredentialTests.cs +++ b/sdk/identity/Azure.Identity/tests/ManagedIdentityCredentialTests.cs @@ -1113,7 +1113,6 @@ public static IEnumerable AuthorityHostValues() // params // az thrown Exception message, expected message, expected exception yield return new object[] { AzureAuthorityHosts.AzureChina }; - yield return new object[] { AzureAuthorityHosts.AzureGermany }; yield return new object[] { AzureAuthorityHosts.AzureGovernment }; yield return new object[] { AzureAuthorityHosts.AzurePublicCloud }; } From 65e72b15cc8f63dd9948103a8c9ef8ee6cfe5e10 Mon Sep 17 00:00:00 2001 From: Christopher Scott Date: Tue, 15 Oct 2024 16:35:43 -0500 Subject: [PATCH 4/4] export --- sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs b/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs index 57b0740f6d9f..8592b1736eb4 100644 --- a/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs +++ b/sdk/identity/Azure.Identity/api/Azure.Identity.netstandard2.0.cs @@ -46,6 +46,7 @@ public AuthorizationCodeCredentialOptions() { } public static partial class AzureAuthorityHosts { public static System.Uri AzureChina { get { throw null; } } + [System.ObsoleteAttribute("Microsoft Cloud Germany was closed on October 29th, 2021.")] public static System.Uri AzureGermany { get { throw null; } } public static System.Uri AzureGovernment { get { throw null; } } public static System.Uri AzurePublicCloud { get { throw null; } }