Appearance
Change VM state ​
A Managed OS VM can operate under various service states, each offering different levels of access and control. Understanding these states will help you optimize your interactions with the VM.
The Managed OS VM can be set to one of the following service states:
- Full Managed
- Provider Maintenance
- Customer Maintenance
- Temp Admin
Full Managed ​
TIP
Swisscom is responsible for the server
This is the default state for a Managed OS VM, customers do not have administrative or root permissions on the Operating System. If the Managed OS VM operates outside of the default state, it will have no Service Level Agreement (SLA) and monitoring enabled.
Provider Maintenance ​
TIP
Swisscom is responsible for the server
The customer does not have any administrative or root permissions on the Operating System. Swisscom can carry out maintenance work on the server. This status is especially useful during the scheduled Operating System patching, as it avoids any disruptive influences during the process. The customer cannot switch into this state.
Customer Maintenance ​
TIP
The customer is responsible for the server
- There is no guaranteed Service Level Agreement (SLA)
- No Operating System monitoring is provided
In this state, the customer can perform certain actions, such as reconfiguring, rebooting or shutting down the Managed OS VM, without having to switch to the Temp Admin state. Service Level Agreements at the Operating System level are suspended in this state.
Temp Admin ​
TIP
The customer is responsible for the server
- There is no guaranteed Service Level Agreement (SLA)
- No Operating System monitoring is provided
- The Managed OS VM is regularly patched in this state at the predefined patch window
The customer is granted temporary administrative or root permission to the Operating System. Service Level Agreements at Operating System level are suspended in this state. This state should only be temporary. The Managed OS VM should be switched back to the Full Managed as soon as the required administrative tasks are completed.
Check current state ​
To check the current state of a Managed OS VM, open the Details page of the VM

Then navigate to the Metadata tab, here the current state of the VM is shown in the metadata property provider.managed_os_state. Possible states are fullManaged, customerMaintenance and tempAdmin

Change to Customer Maintenance state ​
Navigate to the virtual machines and click on Actions of the VM you want to change, then choose Change Managed OS State

Under Target State select Customer Maintenance

Click OK, the progress can be checked in Recent Tasks

Change to Temp Admin state ​
Navigate to the virtual machines and click on Actions of the VM you want to change, then choose Change Managed OS State

Under Target State select Temp Admin

Define a password for the temporary admin user custadm in the Temp Admin Password field

Click OK, the progress can be checked in Recent Tasks

Once the change to Temp Admin state is completed, the VM will be in a state where you can perform administrative tasks as a temporary administrator. The custadm user will have privileges to execute commands with elevated permissions. You can use the custadm user to install software and manage the VM as needed. Refer to this guide for installing software: Installing Software
WARNING
The set password for the custadm user is only valid for 60 days. After 60 days, the password will expire and you will need to change to the Temp Admin state again and set a new password.
Change back to Full Managed state ​
Navigate to the virtual machines and click on Actions of the VM you want to change, then choose Change Managed OS State

Under Target State select Full Managed

Click OK, the progress can be checked in Recent Tasks

The Change Managed OS State action back to Full Managed will execute the Swisscom compliance check to ensure that the VM is compliant with Swisscom standards. This is a mandatory step to ensure that the VM is in a secure and stable state before it can be fully managed again.
The result of the compliance check will be displayed in Recent Tasks in the portal. If the compliance check passes, the VM will be changed back to Full Managed state and you can continue to use it as a fully managed VM. If compliance check fails, follow the instructions in the error message to mitigate the issue. Then try again to execute the Change Managed OS State action back to Full Managed.
For more information about the compliance check, refer to the Technical Description
Check which user changed the state ​
To see which user changed the state of a Managed OS VM, you need to navigate to the metadata tab and search for the metadata provider.managed_os.state.lastmodified.by. This metadata property contains the username of the user who last changed the state of the VM. 
