20 references to ChangeAzureContextCommandName
Aspire.Hosting.Azure (8)
AzureProvisioningController.cs (2)
162
ChangeAzureContextCommandName
,
776
() => CreateEnvironmentCommandResultDataAsync(
ChangeAzureContextCommandName
, model, context.CancellationToken),
AzureProvisioningFailureDetails.cs (5)
220
Action("change-resource-group", $"Run '{AzureProvisioningController.
ChangeAzureContextCommandName
}' with a different resource group, then reprovision."),
253
Action("change-resource-group", $"If the selected resource group is unavailable, run '{AzureProvisioningController.
ChangeAzureContextCommandName
}' with a different resource group.")
262
Action("change-resource-group", $"Run '{AzureProvisioningController.
ChangeAzureContextCommandName
}' if the cached Azure context points at the wrong resource group.")
271
Action("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.")
279
Action("change-subscription", $"Run '{AzureProvisioningController.
ChangeAzureContextCommandName
}' with a subscription that exists in the selected tenant."),
AzureResourcePreparer.cs (1)
137
command => command.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
Aspire.Hosting.Azure.Tests (12)
AzureEnvironmentResourceExtensionsTests.cs (12)
274
command => command.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
302
command => command.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
395
Assert.Equal(AzureProvisioningController.
ChangeAzureContextCommandName
, command.Name);
418
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
482
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
539
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
583
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
3999
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
4027
Assert.Equal(AzureProvisioningController.
ChangeAzureContextCommandName
, data["command"]?.GetValue<string>());
4073
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
4121
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);
4177
var changeContextCommand = Assert.Single(environmentResource.Annotations.OfType<ResourceCommandAnnotation>(), c => c.Name == AzureProvisioningController.
ChangeAzureContextCommandName
);