This project automates the process of adding multiple variables to an Azure DevOps Variable Group using Azure DevOps CLI. It's particularly useful when you need to add a large number of variables from an Excel sheet to a Variable Group.
- Automates the creation of multiple variables in an Azure DevOps Variable Group
- Utilizes Excel formulas to generate Azure DevOps CLI commands
- Reduces manual data entry and potential for human error
- Azure CLI installed
- Azure DevOps CLI extension installed
- Microsoft Excel
- Access to Azure DevOps with appropriate permissions
- Install Azure CLI from here
- Install Azure DevOps CLI extension:
az extension add --name azure-devops - Authenticate with Azure DevOps:
or use a Personal Access Token (PAT) for authentication
az login
- Set default organization and project:
az devops configure -d organization=https://dev.azure.com/<OrganizationName> az devops configure -d project=<ProjectName> - Create a Variable Group in Azure DevOps portal
- Retrieve the Variable Group ID
- Use the Excel formula provided in
generate_commands.xlsxto create CLI commands - Execute the generated commands using
bulk_variable_creator.sh
For detailed instructions, refer to DETAILED_INSTRUCTIONS.md
README.md: This filebulk_variable_creator.sh: Shell script to execute Azure DevOps CLI commandsgenerate_commands.xlsx: Excel file with formula to generate CLI commandsDETAILED_INSTRUCTIONS.md: Detailed explanation of the process
Contributions to improve the Azure DevOps Bulk Variable Creator are welcome. Please follow these steps:
- Fork the repository
- Create a new branch for your feature
- Commit your changes
- Push to your branch
- Create a new Pull Request
Have questions or suggestions? Reach out to us:
- 📧 Email: Sauravsrivastav2205@gmail.com
- 💼 LinkedIn: in/sauravsrivastav2205
- 🐙 GitHub: https://github.com/SauravSrivastav