WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 76c2632

Browse files
authored
[Rollout] Production rollout 2025-04-24 (#4736)
#4730
2 parents 7a20970 + 24ed8f1 commit 76c2632

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/ProductConstructionService.Cli/Options/DeploymentOptions.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,11 @@ public override async Task<IServiceCollection> RegisterServices(IServiceCollecti
5959
{
6060
services.AddTransient<IProcessManager>(sp => new ProcessManager(sp.GetRequiredService<ILogger<ProcessManager>>(), "git"));
6161

62-
DefaultAzureCredential credential = new();
62+
var credential = new ChainedTokenCredential(
63+
new AzureCliCredential(),
64+
new DefaultAzureCredential());
6365
services.AddSingleton(credential);
64-
services.AddTransient<ArmClient>(sp => new(sp.GetRequiredService<DefaultAzureCredential>()));
66+
services.AddTransient<ArmClient>(_ => new(credential));
6567
services.AddTransient<ResourceGroupResource>(sp =>
6668
{
6769
return new ArmClient(credential)

0 commit comments

Comments
 (0)