133 references to AzureAuthenticationHelpers
Aspire.Deployment.EndToEnd.Tests (133)
AcaCompactNamingDeploymentTests.cs (4)
50
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
56
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
201
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
207
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcaCompactNamingUpgradeDeploymentTests.cs (2)
36
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
42
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcaCustomRegistryDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcaDeploymentErrorOutputTests.cs (2)
39
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
45
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcaExistingRegistryDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcaExpressDeploymentTests.cs (3)
30
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
36
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
56
var credential =
AzureAuthenticationHelpers
.GetAzureCredential();
AcaManagedRedisDeploymentTests.cs (2)
35
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
41
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcaStarterDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AcrPurgeTaskDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksAzureKubernetesEnvironmentCertManagerDeploymentTests.cs (2)
44
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
50
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs (2)
49
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
55
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksAzureKubernetesEnvironmentGatewayDeploymentTests.cs (2)
38
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
44
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksBlazorRedisDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksMultipleNodePoolsDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksPersistentVolumeDeploymentTests.cs (2)
28
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
34
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksStarterDeploymentTests.cs (2)
35
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
41
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksStarterWithRedisHelmDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksVnetInfraDeploymentTests.cs (2)
32
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
38
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksVnetWithAzureResourcesDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksWithAzureResourcesDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AksWithHelmChartDeploymentTests.cs (2)
39
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
45
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AppServicePythonDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AppServiceReactDeploymentTests.cs (2)
37
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
43
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AppServiceStoragePrivateEndpointDeploymentTests.cs (2)
29
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
35
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AuthenticationTests.cs (7)
18
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
45
var isAuthAvailable =
AzureAuthenticationHelpers
.IsAzureAuthAvailable();
75
if (
AzureAuthenticationHelpers
.IsOidcConfigured())
77
var clientId =
AzureAuthenticationHelpers
.GetClientId();
89
var rgName =
AzureAuthenticationHelpers
.GenerateResourceGroupName("TestScenario");
94
Assert.StartsWith(
AzureAuthenticationHelpers
.GetResourceGroupPrefix(), rgName);
AzureAppConfigDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureConnectorNamespaceDeploymentTests.cs (2)
47
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
53
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureContainerRegistryDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureEntraIdDeploymentTests.cs (2)
29
Assert.True(Guid.TryParse(
AzureAuthenticationHelpers
.GetTenantId(), out var tenantId),
41
var credential =
AzureAuthenticationHelpers
.GetAzureCredential();
AzureEventHubsDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureFunctionsDeploymentTests.cs (2)
16
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
22
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureKeyVaultDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureLogAnalyticsDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureResourceScopeDeploymentTests.cs (2)
30
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
36
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureRoleAssignmentRunModeTests.cs (3)
43
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
49
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
64
var tenantId =
AzureAuthenticationHelpers
.GetTenantId();
AzureSandboxesDeploymentTests.cs (2)
700
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
706
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureServiceBusDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureStorageDeploymentTests.cs (4)
44
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
50
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
200
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
206
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
AzureStorageRunModeTests.cs (3)
31
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
37
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
52
var tenantId =
AzureAuthenticationHelpers
.GetTenantId();
FoundryDotnetProjectDeploymentTests.cs (2)
72
var client = new AIProjectClient(endpoint,
AzureAuthenticationHelpers
.GetAzureCredential());
159
var token = await
AzureAuthenticationHelpers
.GetAzureCredential().GetTokenAsync(
FoundryHostedAgentDeploymentTests.cs (5)
52
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
58
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
148
var credential =
AzureAuthenticationHelpers
.GetAzureCredential();
395
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
401
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
FrontDoorDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
Helpers\DeploymentReporter.cs (2)
62
var azurePortalUrl = $"https://portal.azure.com/#@/resource/subscriptions/{
AzureAuthenticationHelpers
.TryGetSubscriptionId()}/resourceGroups/{resourceGroupName}/overview";
127
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
Helpers\DotnetProjectDeploymentHelpers.cs (2)
17
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
23
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
KubernetesGatewayTlsDeploymentTests.cs (2)
38
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
44
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
KubernetesHelmChartDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
NspStorageKeyVaultDeploymentTests.cs (2)
33
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
39
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
PythonFastApiDeploymentTests.cs (2)
34
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
40
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
RadiusStarterDeploymentTests.cs (2)
48
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
54
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
TypeScriptAzureContainerAppJobDeploymentTests.cs (2)
30
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
36
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
TypeScriptExpressDeploymentTests.cs (2)
32
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
38
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
TypeScriptJavaScriptHostingDeploymentTests.cs (2)
30
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
36
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
TypeScriptVnetSqlServerInfraDeploymentTests.cs (2)
32
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
38
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
VnetKeyVaultConnectivityDeploymentTests.cs (2)
31
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
37
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
VnetKeyVaultInfraDeploymentTests.cs (2)
31
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
37
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
VnetSqlServerConnectivityDeploymentTests.cs (2)
36
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
42
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
VnetSqlServerInfraDeploymentTests.cs (2)
31
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
37
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
VnetStorageBlobConnectivityDeploymentTests.cs (2)
31
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
37
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())
VnetStorageBlobInfraDeploymentTests.cs (2)
31
var subscriptionId =
AzureAuthenticationHelpers
.TryGetSubscriptionId();
37
if (!
AzureAuthenticationHelpers
.IsAzureAuthAvailable())