Is there any security concern to use same VM (self-host agney) for "production" stage and another stage at the same time

Mohsen Akhavan 936 Reputation points

I have multiple stages "Dev", "Test" and "Production" in my project. Currently, I have a VM with a self-host agent that pipeline runs deeply on "Dev" and "Test. Some developers have access to this VM (CI/CD VM)
Now, I am going to set up the "Production" stage and I want to know what is the best practice.
For the "Production" stage, I will set up a different VM specific to the "Production" stage and install a self-host agent with limited access.
Is it a good security solution to isolate the "Production" stage?
Is there any security concern I should know about?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,404 questions
{count} votes