20 references to ChangeAzureContextCommandName
Aspire.Hosting.Azure (8)
AzureProvisioningController.cs (2)
162ChangeAzureContextCommandName, 776() => CreateEnvironmentCommandResultDataAsync(ChangeAzureContextCommandName, model, context.CancellationToken),
AzureProvisioningFailureDetails.cs (5)
220Action("change-resource-group", $"Run '{AzureProvisioningController.ChangeAzureContextCommandName}' with a different resource group, then reprovision."), 253Action("change-resource-group", $"If the selected resource group is unavailable, run '{AzureProvisioningController.ChangeAzureContextCommandName}' with a different resource group.") 262Action("change-resource-group", $"Run '{AzureProvisioningController.ChangeAzureContextCommandName}' if the cached Azure context points at the wrong resource group.") 271Action("change-context-or-name", $"If Azure continues to report the conflict, run '{AzureProvisioningController.ChangeAzureContextCommandName}' with a different resource group or change the AppHost resource name so Azure generates a different Key Vault name.") 279Action("change-subscription", $"Run '{AzureProvisioningController.ChangeAzureContextCommandName}' with a subscription that exists in the selected tenant."),
AzureResourcePreparer.cs (1)
135command => command.Name == AzureProvisioningController.ChangeAzureContextCommandName);
Aspire.Hosting.Azure.Tests (12)
AzureEnvironmentResourceExtensionsTests.cs (12)
273command => command.Name == AzureProvisioningController.ChangeAzureContextCommandName); 301command => command.Name == AzureProvisioningController.ChangeAzureContextCommandName); 394Assert.Equal(AzureProvisioningController.ChangeAzureContextCommandName, command.Name); 417var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 481var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 538var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 582var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3759var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3787Assert.Equal(AzureProvisioningController.ChangeAzureContextCommandName, data["command"]?.GetValue<string>()); 3833var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3881var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3937var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName);