17 references to ChangeAzureContextCommandName
Aspire.Hosting.Azure (7)
AzureProvisioningController.cs (2)
163ChangeAzureContextCommandName, 753() => 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."),
Aspire.Hosting.Azure.Tests (10)
AzureEnvironmentResourceExtensionsTests.cs (10)
98Assert.Equal(AzureProvisioningController.ChangeAzureContextCommandName, command.Name); 121var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 185var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 242var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 286var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3441var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3469Assert.Equal(AzureProvisioningController.ChangeAzureContextCommandName, data["command"]?.GetValue<string>()); 3515var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3563var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName); 3619var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.ChangeAzureContextCommandName);