Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

Monitoring OpenShift on Azure Using the Log Analytics Agent

In this lab you will be deploying the Log Analytics agent for Azure in OpenShift to allow you to be able to monitor OpenShift from the Azure portal.

Azure icon
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 20, 2025
Duration
3h 30m

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
Table of Contents
  1. Challenge

    Configure Cloud Shell

    Set up Cloud Shell by clicking the Cloud Shell button in the top-right corner of the screen:

    "Azure Cloud Shell"

    Configure Cloud Shell for Bash using the Advanced Settings. Use the existing subscription, resource group, and storage account. If your storage account does not populate, make sure that your Cloud Shell region matches the location where your Azure resources are deployed. To make the file share, choose Create new and specify okdcloudshell as the new file share.

  2. Challenge

    Download SSH Keys for the Lab

    You will need to pull down the SSH keys so you can connect to the VMs using SSH. First make the .ssh directoy, if it isn't already there, with the mkdir command.

    Then, cd into the .ssh directory.

    Now, use wget to pull down the SSH keys using these links:

    wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/ssh/id_rsa wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/ssh/id_rsa.pub

    Change the permissions of the files to 400.

  3. Challenge

    Run the Lab Prep Subscriptions

    You will need to connect to each VM using SSH and run a prep script.

    After you connect to a VM using SSH, you will first need to install wget if it is not already installed.

    We will need to download the associated script for the node found in the Git repo for the lab. The VM links are:

    • For the bastionVM-0 it would be: wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/scripts/bastionhostPrep.sh
    • For the masterVM-0 it would be: wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/scripts/masterPrep.sh
    • For the infraVM-0 it would be: wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/scripts/infraPrep.sh
    • For the appnodeVM-0 it would be: wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/scripts/nodePrep.sh

    Once the download completes, you will need to make the script executable.

    Finally, you would run the script. Make sure you use sudo or the script will fail.

  4. Challenge

    Install OpenShift

    Use Ansible to run the prerequisites.yml and the deploy_cluster.yml playbooks to install OpenShift. Run these from the Bastion Host.

  5. Challenge

    Deploy the OMS Agent in OpenShift

    Log in to the master node and use the OpenShift CLI tools to:

    1. Download the ocp-omsagent.yaml file from the Git repo:

    wget https://raw.githubusercontent.com/ACloudGuru-Resources/content-openshift-origin-azure/master/scripts/ocp-omsagent.yaml

    1. Create the omslogging project.
    2. Create a service account named omsagent.
    3. Add the cluster role cluster-reader to the service account.
    4. Set the Security Context Constraint to privileged for the service account.
    5. Deploy the agent using the oc create command.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight