Skip to content

A set of scripts to use in Azure DevOps for Azure Api Management CI/CD

License

Notifications You must be signed in to change notification settings

abozaralizadeh/AzureDevopsAPIM

Repository files navigation

Azure DevOps for APIM

A set of scripts to use in Azure DevOps for Azure API Management CI/CD

Please remember to use APIM named values to distinguish the endpoints or other variables between the PRE, BS, and PROD environments.

azure devops stages

The following variables should be created in the release pipeline and two of them should be enabled as settable variables at release time:

  • ReleaseCommit ✅
  • RollBackCommit ✅
  • ResourceGroupPre
  • ResourceGroupBS
  • ResourceGroupProd
  • ServiceNamePre
  • ServiceNameBS
  • ServiceNameProd

Allow scripts to access the OAuth token should be activated in the agents

Alt text

And change the permissions of Project Collection Build Service to Allow - Manage releases:

Alt text

So in the end, the first stage will get the current status of the APIM-PRE and update the Devops Repo, the second stage will get the Devops Repo and updates the APIM-BS and the last one will get the Devops Repo and updates the APIM-PROD.

Alt text

About

A set of scripts to use in Azure DevOps for Azure Api Management CI/CD

Resources

License

Stars

Watchers

Forks

Packages

No packages published