Skip to content

CLI describe command fails to resolve resource by logical name #14669

@davidfowl

Description

@davidfowl

aspire describe cache fails with "Resource 'cache' not found", even though aspire describe (with no argument) lists a resource with the display name cache.

The underlying resource name includes a generated suffix (e.g. cache-zuyppzgw), and using that full name works: aspire describe cache-zuyppzgw succeeds.

Expected Behavior

aspire describe cache should resolve the logical/friendly resource name to the underlying suffixed resource name, consistent with how the dashboard and other tooling surface resources.

Actual Behavior

The command does an exact match on the internal resource name and fails to find it.

Steps to Reproduce

  1. Create an AppHost with a Redis cache resource named cache
  2. Run the app
  3. Run aspire describe — observe the resource is listed as cache (type: Container)
  4. Run aspire describe cache — get Resource 'cache' not found
  5. Run aspire describe cache-<suffix> — works correctly

Image

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions