-
Today I had the rare opportunity to enable the maintenance mode on a cloud hosted environment (demo topology). I was thinking about using the Enable-D365MaintenanceMode cmdlet, but ended up doing it the documented way. The cmdlets documentation states that the Microsoft.Dynamics.AX.Deployment.Setup.exe is used to enable the maintenance mode. Since the documentation suggests this should only be done on VHD-based environments, I'm wondering if using Microsoft.Dynamics.AX.Deployment.Setup.exe on a CHE is fine, too. I also noticed that the cmdlet references the |
Beta Was this translation helpful? Give feedback.
Replies: 9 comments 2 replies
-
You are totally right ! We should refactor both cmdlet to offer a mandatory parameter where you can select one onebox or che mode. |
Beta Was this translation helpful? Give feedback.
-
Sounds good, I will give it a shot. Are there other cmdlets that have something similar? Or maybe some way of detecting if the tools are running on a CHE or VHD environment? This way, a mandatory parameter could be avoided. |
Beta Was this translation helpful? Give feedback.
-
Not really. Back in the days we tested for elevated privileges - that indicated one onebox. But thinking about it, the sql password could be an indication we could trust. The same goes for the package directory - if on c drive, it will most likely be a onebox 🤞 |
Beta Was this translation helpful? Give feedback.
-
Or the certificates on the iis might be even better 🤘 |
Beta Was this translation helpful? Give feedback.
-
What about the |
Beta Was this translation helpful? Give feedback.
-
IsOneboxEnvironment is the internal property that we depend on for that variable. But if I remember correctly, both che and onebox (vhd) thinks of themselves as IsOneboxEnvironment = $true |
Beta Was this translation helpful? Give feedback.
-
Will test this. If it is true for both environment types, there is also |
Beta Was this translation helpful? Give feedback.
-
True and I would trust that one even more after looking at the code |
Beta Was this translation helpful? Give feedback.
-
Seems we have a winner. I created issue #586 for further work on this. |
Beta Was this translation helpful? Give feedback.
You are totally right !
We should refactor both cmdlet to offer a mandatory parameter where you can select one onebox or che mode.