Skip to content

Commit

Permalink
resolve build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaunDonn2 committed Sep 30, 2024
1 parent 2904f70 commit 63ed8c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public async Task<string> GetTokenAsync(string registryServer, CancellationToken
{
EnsureArg.IsNotNullOrEmpty(registryServer, nameof(registryServer));

var aadResourceUri = new Uri(_convertDataConfiguration.AcrTargetResourceUri);
var aadResourceUri = _convertDataConfiguration.AcrTargetResourceUri;
string aadToken;
try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public class ConvertDataConfiguration
public ICollection<string> ContainerRegistryServers { get; } = new List<string>();

/// <summary>
/// AcrTargetResourceUri to acquire AAD token for ACR access token since ACR is not an AAD resource.
/// AcrTargetResourceUri to acquire AAD token for ACR access token since ACR is not an AAD resource.
/// To enable Trusted Services scenarios, we must use the ACR-specific URI rather than the more generic ARM URI.
/// https://dev.azure.com/msazure/AzureContainerRegistry/_wiki/wikis/ACR%20Specs/480000/TrustedServicesPatterns
/// The value is "https://containerregistry.azure.net/" for AzureCloud and DogFood.
/// </summary>
public string AcrTargetResourceUri { get; set; } = "https://containerregistry.azure.net/";
public Uri AcrTargetResourceUri { get; set; } = new Uri("https://containerregistry.azure.net/");

/// <summary>
/// Configuration for templates.
Expand Down

0 comments on commit 63ed8c9

Please sign in to comment.