How to Use App Modernization Tasks
Using app modernization tasks is straightforward. Follow this guide to get started.
Prerequisites
Before using tasks, ensure you have:
- ✅ Visual Studio Code installed
- ✅ Git installed
- ✅ An Azure account (for Azure-related tasks)
- ✅ Node.js (if required by the task)
Step 1: Find a Task
Browse the Task Gallery to find tasks that match your modernization needs.
Use filters to search by:
- Technology stack
- Task type
- Azure services
- Programming language
Step 2: Clone the Task Repository
Once you've found a task, clone its repository:
git clone https://github.com/author/task-name.git
cd task-name
Step 3: Review Documentation
Read the task's README.md to understand:
- What the task does
- Prerequisites and dependencies
- Configuration options
- Usage instructions
Step 4: Configure the Task
Most tasks require some configuration:
-
Install dependencies
npm install
# or
pip install -r requirements.txt -
Set up environment variables
cp .env.example .env
# Edit .env with your settings -
Configure task settings Edit the task configuration file as needed.
Step 5: Run the Task
Execute the task according to its documentation:
VS Code Task:
Press Ctrl+Shift+P (Cmd+Shift+P on Mac)
Type "Tasks: Run Task"
Select your task from the list
Command Line:
npm run task
# or
python task.py
VS Code Extension: Some tasks are distributed as VS Code extensions. Install them from the marketplace.
Step 6: Review Results
After running the task:
- Check the output for any errors or warnings
- Review the changes made to your code
- Test your application
- Commit the changes to Git
Common Use Cases
Migrating to Azure
- Find an Azure migration task
- Run the assessment script
- Review the migration report
- Apply recommended changes
- Deploy to Azure
Updating Dependencies
- Use a dependency update task
- Run the update script
- Review package changes
- Run tests
- Commit updates
Containerizing an Application
- Find a containerization task
- Run the Docker generation script
- Review Dockerfile and docker-compose.yml
- Build and test containers
- Deploy to Kubernetes/AKS
Getting Help
If you encounter issues:
- Check the task's repository issues
- Review the task documentation
- Ask questions in the repository's discussions
- Report bugs if needed
Next Steps
- Contribute your own task
- Explore more tasks
- Share your experience with the community