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