Registering on-premise Windows VM in Simple Systems Manager

Registering on-premise Windows VM in Simple Systems Manager

In this blog, we will show you the steps to registering on-premise Windows VM in Simple Systems Manager.

ENVIRONMENT OVERVIEW

  • We have created a windows 2012 R2 server in our Hyper-V environment for this demo.
Registering on-premise VM in Systems Manager

CREATING ACTIVATIONS

  • Go to the services page and search for systems manager.
Registering on-premise VM in Systems Manager
  • Click on Hybrid Activations link under Instances & Nodes menu.
  • Click on Create an Activation button.
  • Provide a description for this activation and set the number of on-premise machines you are planning to add in systems manager.
  • Set the expiration date for the on-premise machines to be available in the systems manager and click on create activation.
  • Activation created successfully. Please make a note of the activation code and activation ID for future reference.

INSTALLING SSM AGENT

Registering on-premise VM in Systems Manager
  • Once its downloaded, double click on the setup file and accept the license agreement then click on the install button.
  • It will take a few seconds to complete the installation process.

REGISTERING THE VM

  • Open the windows services snap-in and make sure the Amazon SSM agent is in stop state.
Registering on-premise VM in Systems Manager
  • Open the command prompt and goto C:\Program Files\Amazon\SSM folder.
Registering on-premise VM in Systems Manager

Note: Make sure that you are accessing the command prompt in administrator mode.

  • Use the below command to register the VM with AWS Systems Manager.

Syntax: amazon-ssm-agent -register -code “<your activation code>” -id “<activation ID>” -region “<region where you registering your on-premise VMs>

Example: amazon-ssm-agent -register -code “7zUVhzNNKZ0qoL/fqecV” -id “2d4a2885-b742-4a30-806c-35f0870a1675” -region “ap-south-1”

Registering on-premise VM in Systems Manager
  • Command executed successfully.
Registering on-premise VM in Systems Manager
  • Now start the Amazon SSM agent service.
Registering on-premise VM in Systems Manager
  • Go to systems manager and click on Managed instances.
Registering on-premise VM in Systems Manager
  • You will able to see your on-premise VM in the managed list.
Registering on-premise VM in Systems Manager

Thanks for reading this blog. We hope it was useful for you to learn about registering on-premise Windows VM in AWS Systems Manager.

Loges

Leave a Reply

Your email address will not be published. Required fields are marked *