Jenkins jobs created to stop / start the Azure infra for the following Envs. Jenkins pipeline takes Azure Resource group as input and updates the status of each VM in the resource group to Deallocation state.
ED Dev
non-ED dev ( devbb)
VDN dev (dockdev)
ED Staging
VDN staging (dockstaging)
...
Stop VMs job is set as a downstream Job. Run time of these jobs per env is 5 min approx.
The start jobs are scheduled to run at 8 AM from Monday-Friday. Start VMs job gets triggered first and Start AKS job is set as a downstream Job. Run time of these jobs per env is 20 min approx.
Jenkins jobs:
These jobs are created under OpsAdministration folder under respective Envs
...
Jobs can also be ran on-demand basis by just triggering Build Now
Notes:
The session information of login is stored in the respective env folder
ex: AZURE_CONFIG_DIR = "/var/lib/jenkins/Azure/Dockstag" , we need to make sure no other jobs uses the same config dir as it will conflict with session and the job will fail.