# Migrating Jenkins to Cloud

**URL:** https://community.jenkins.io/t/migrating-jenkins-to-cloud/1750
**Category:** Ask a question
**Tags:** question
**Created:** [March 8, 2022, 9:15am UTC](https://community.jenkins.io/t/migrating-jenkins-to-cloud/1750 "2022-03-08T09:15:12Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![jaiganesh](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jaiganesh](https://community.jenkins.io/u/jaiganesh)
#### Post date: [March 8, 2022, 9:15am UTC](https://community.jenkins.io/t/migrating-jenkins-to-cloud/1750/1 "2022-03-08T09:15:12Z")

</div>

Hi,  
We would like to migrate our on-premise jenkins server to Azure cloud.

1. what is the best option to migrate : to VM or AppService or AKS container?
2. Can replacing the Jenkins\_HOME from source to destination suffice or some extra steps to be done?
3. What about slaves and Jenkins environment variables?
4. Can we have documentation for cloud migration?  
Regards  
J.Jaiganesh

---

<div class="post-metadata">

### Author: ![halkeye](https://dub1.discourse-cdn.com/flex013/user_avatar/community.jenkins.io/halkeye/32/8_2.png) [@halkeye](https://community.jenkins.io/u/halkeye)
#### Post date: [March 8, 2022, 10:05pm UTC](https://community.jenkins.io/t/migrating-jenkins-to-cloud/1750/2 "2022-03-08T22:05:10Z")

</div>

This feels like you were given a checklist and just asking us, most of this pretty searchable

> [@jaiganesh](#):
>
> what is the best option to migrate : to VM or AppService or AKS container?

The best one is the one your most comfortable with.

> [@jaiganesh](#):
>
> Can replacing the Jenkins\_HOME from source to destination suffice or some extra steps to be done?

Yep, shutdown one (so it doesn’t do writes), copy the files over, start up new one. Its pretty forgiving

> [@jaiganesh](#):
>
> What about slaves and Jenkins environment variables?

agents. And what environment variables are you meaning? Credentails are stored in JENKINS\_HOME so they would get copied over. If your using permanent agents like SSH or JNLP, those are configured in JENKINS\_HOME and should get copied over.

> [@jaiganesh](#):
>
> Can we have documentation for cloud migration?

First google result for “jenkins migration” is [data migration - How to move Jenkins from one PC to another - Stack Overflow](https://stackoverflow.com/questions/8724939/how-to-move-jenkins-from-one-pc-to-another) which would seem to help. All of our documentation is written by volunteers, so once you figure out more details, feel free to open a PR and contribute back your learnings. I did a quick search on [jenkins.io](http://jenkins.io) and didn’t see anything about migrating.
