azure-dev
azure-dev copied to clipboard
Adds middleware to ensure azd environment is always available
Adds an EnvironmentMiddleware component that will validate and create azd environment as needed.
- [x] Removes interactive flow from environment container registration
- [x] Adds interactive environment registration to middleware after other checks fail
- [x] Run middleware before hooks middleware to ensure environment is ready
- [x] Simplifies hooks middleware to expect that environment is already available
Resolves #3920