in src/Authentication.Abstractions/Extensions/AzureEnvironmentExtensions.cs [208:333]
public static void SetEndpoint(this IAzureEnvironment environment, string endpointName, string propertyValue)
{
if (!string.IsNullOrWhiteSpace(propertyValue))
{
switch (endpointName)
{
case AzureEnvironment.Endpoint.AdTenant:
environment.AdTenant = propertyValue;
break;
case AzureEnvironment.Endpoint.ActiveDirectoryServiceEndpointResourceId:
environment.ActiveDirectoryServiceEndpointResourceId = propertyValue;
break;
case AzureEnvironment.Endpoint.AzureKeyVaultDnsSuffix:
environment.AzureKeyVaultDnsSuffix = propertyValue;
break;
case AzureEnvironment.Endpoint.AzureKeyVaultServiceEndpointResourceId:
environment.AzureKeyVaultServiceEndpointResourceId = propertyValue;
break;
case AzureEnvironment.Endpoint.GraphEndpointResourceId:
environment.GraphEndpointResourceId = propertyValue;
break;
case AzureEnvironment.Endpoint.SqlDatabaseDnsSuffix:
environment.SqlDatabaseDnsSuffix = propertyValue;
break;
case AzureEnvironment.Endpoint.StorageEndpointSuffix:
environment.StorageEndpointSuffix = propertyValue;
break;
case AzureEnvironment.Endpoint.TrafficManagerDnsSuffix:
environment.TrafficManagerDnsSuffix = propertyValue;
break;
case AzureEnvironment.Endpoint.AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix:
environment.AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix = propertyValue;
break;
case AzureEnvironment.Endpoint.AzureDataLakeStoreFileSystemEndpointSuffix:
environment.AzureDataLakeStoreFileSystemEndpointSuffix = propertyValue;
break;
case AzureEnvironment.Endpoint.DataLakeEndpointResourceId:
environment.DataLakeEndpointResourceId = propertyValue;
break;
case AzureEnvironment.Endpoint.BatchEndpointResourceId:
environment.BatchEndpointResourceId = propertyValue;
break;
case AzureEnvironment.Endpoint.ActiveDirectory:
environment.ActiveDirectoryAuthority = propertyValue;
break;
case AzureEnvironment.Endpoint.Gallery:
environment.GalleryUrl = propertyValue;
break;
case AzureEnvironment.Endpoint.Graph:
environment.GraphUrl = propertyValue;
break;
case AzureEnvironment.Endpoint.ManagementPortalUrl:
environment.ManagementPortalUrl = propertyValue;
break;
case AzureEnvironment.Endpoint.PublishSettingsFileUrl:
environment.PublishSettingsFileUrl = propertyValue;
break;
case AzureEnvironment.Endpoint.ResourceManager:
environment.ResourceManagerUrl = propertyValue;
break;
case AzureEnvironment.Endpoint.ServiceManagement:
environment.ServiceManagementUrl = propertyValue;
break;
case AzureEnvironment.Endpoint.ContainerRegistryEndpointSuffix:
environment.ContainerRegistryEndpointSuffix = propertyValue;
break;
case AzureEnvironment.ExtendedEndpoint.OperationalInsightsEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.OperationalInsightsEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.OperationalInsightsEndpoint:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.OperationalInsightsEndpoint, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AnalysisServicesEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AnalysisServicesEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AnalysisServicesEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AnalysisServicesEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureAttestationServiceEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureAttestationServiceEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureAttestationServiceEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureAttestationServiceEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureSynapseAnalyticsEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureSynapseAnalyticsEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureSynapseAnalyticsEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureSynapseAnalyticsEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.ManagedHsmServiceEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.MicrosoftGraphUrl:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.MicrosoftGraphUrl, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.MicrosoftGraphEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.MicrosoftGraphEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzurePurviewEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzurePurviewEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzurePurviewEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzurePurviewEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureAppConfigurationEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureAppConfigurationEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureAppConfigurationEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureAppConfigurationEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.ContainerRegistryEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.ContainerRegistryEndpointResourceId, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureCommunicationEmailEndpointSuffix:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureCommunicationEmailEndpointSuffix, propertyValue);
break;
case AzureEnvironment.ExtendedEndpoint.AzureCommunicationEmailEndpointResourceId:
environment.SetProperty(AzureEnvironment.ExtendedEndpoint.AzureCommunicationEmailEndpointResourceId, propertyValue);
break;
}
}
}