@@ -151,6 +151,9 @@ public static bool TryGetEndpointString(this IAzureEnvironment environment, stri
151
151
case AzureEnvironment . Endpoint . BatchEndpointResourceId :
152
152
propertyValue = environment . BatchEndpointResourceId ;
153
153
break ;
154
+ case AzureEnvironment . Endpoint . ContainerRegistryEndpointSuffix :
155
+ propertyValue = environment . ContainerRegistryEndpointSuffix ;
156
+ break ;
154
157
default :
155
158
// get property from the extended properties of the environment
156
159
propertyValue = environment . GetProperty ( endpointName ) ;
@@ -265,6 +268,9 @@ public static void SetEndpoint(this IAzureEnvironment environment, string endpoi
265
268
case AzureEnvironment . Endpoint . ServiceManagement :
266
269
environment . ServiceManagementUrl = propertyValue ;
267
270
break ;
271
+ case AzureEnvironment . Endpoint . ContainerRegistryEndpointSuffix :
272
+ environment . ContainerRegistryEndpointSuffix = propertyValue ;
273
+ break ;
268
274
case AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpointResourceId :
269
275
environment . SetProperty ( AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpointResourceId , propertyValue ) ;
270
276
break ;
@@ -342,6 +348,9 @@ public static string GetTokenAudience(this IAzureEnvironment environment, string
342
348
case AzureEnvironment . ExtendedEndpoint . ManagedHsmServiceEndpointResourceId :
343
349
resource = AzureEnvironment . ExtendedEndpoint . ManagedHsmServiceEndpointResourceId ;
344
350
break ;
351
+ case AzureEnvironment . Endpoint . ContainerRegistryEndpointSuffix :
352
+ resource = AzureEnvironment . Endpoint . ContainerRegistryEndpointSuffix ;
353
+ break ;
345
354
default :
346
355
resource = AzureEnvironment . Endpoint . ActiveDirectoryServiceEndpointResourceId ;
347
356
break ;
@@ -524,6 +533,10 @@ public static void CopyFrom(this IAzureEnvironment environment, IAzureEnvironmen
524
533
{
525
534
environment . BatchEndpointResourceId = other . BatchEndpointResourceId ;
526
535
}
536
+ if ( other . IsEndpointSet ( AzureEnvironment . Endpoint . ContainerRegistryEndpointSuffix ) )
537
+ {
538
+ environment . ContainerRegistryEndpointSuffix = other . ContainerRegistryEndpointSuffix ;
539
+ }
527
540
528
541
environment . VersionProfiles . Clear ( ) ;
529
542
foreach ( var profile in other . VersionProfiles )
@@ -615,6 +628,10 @@ public static void Update(this IAzureEnvironment environment, IAzureEnvironment
615
628
{
616
629
environment . DataLakeEndpointResourceId = other . DataLakeEndpointResourceId ;
617
630
}
631
+ if ( other . IsEndpointSet ( AzureEnvironment . Endpoint . ContainerRegistryEndpointSuffix ) )
632
+ {
633
+ environment . ContainerRegistryEndpointSuffix = other . ContainerRegistryEndpointSuffix ;
634
+ }
618
635
619
636
foreach ( var profile in other . VersionProfiles )
620
637
{
0 commit comments