Aspire CLI - `aspire deploy` filter Azure subs/locs
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Is your feature request related to a problem? Please describe the problem.
When I attempt `aspire deploy`, I'm presented with all my subscriptions that are available to me. I'm proposing that instead of returning all my subscriptions, filter to the subscriptions that I have the appropriate deployment roles available. Many times, I've tried various subscriptions only to find out later in the process that I don't have the correct deployment roles for a given subscription. Instead, `aspire deploy` could simply filter that list based on the current user identity making it a MUCH better experience.
Similarly, we should also be applying a filter to the locations that we display as options for the user to select. Not all locations support all resource types, there should really be a way to filter the locations to the ones that align with the resource model in context.
### Describe the solution you'd like
When I call `aspire deploy`, I'd be presented with a list of subscriptions that I could actually use to deploy. When prompted to select a location (or region, whatever it's called), it would show me only a list of valid locations for the corresponding resource types in my app model.
### Additional context
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.