microsoft / microsoft/aspire

[AspireE2E] When the local deployment state has been deleted, execute `aspire destroy` should failed with clear message explaining destroy cannot proceed

Open
#16,328 0 comments 0 reactions 0 assignees View on GitHub
area-deployment
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

**REGRESSION INFO:** New feature on Aspire 13.3

**INSTALL STEPS**
1. Clean machine: Windows11 25h2 x64
2. Install 10.0.202 SDK
3. Install Aspire CLI 13.3 : `iex "& { $(irm https://aspire.dev/install.ps1) } -Quality dev"`

**REPRO STEPS**
1. Open CMD, create an Aspire ASP.NET Core/Blazor Starter App using following commands:

`aspire new aspire-starter -n Aspire1`

1. Clear local deployment state
1. Run `aspire destroy`

**ACTUAL**
`aspire destroy` will execute successfully.
Image

**EXPECTED**
It should execute failed with clear message explaining destroy cannot proceed

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the documented Aspire starter-app commands, clear the local deployment state, and run `aspire destroy`. Then trace the CLI's destroy command and its existing tests or error handling. Done means the command refuses to proceed when state is missing and reports clearly why destruction cannot continue.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.