Version 14.6, BYOI Bring Your Own Image, Background tasks

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Welcome Idira to LIVEcommunity!

Our community just got stronger! Explore new identity security resources, connect with experts, and discover more ways to learn and collaborate.

Meet Idira

Version 14.6, BYOI Bring Your Own Image, Background tasks

L3 Networker

Since version 14.6 CyberArk has stopped giving images for cloud deployment, instead encouraging BYOI(Bring Your Own Image)

 

As a process of building image we got to fill in the info in a component json file as shown below

 

{

    "component": "vault",

    "managed_image_name": "CyberArk-Vault",

    "managed_image_resource_group_name": "PAMonCloudRG",

    "location": "westeurope",

    "vm_size": "Standard_D4s_v5",

    "managed_image_storage_account_type": "Premium_LRS",

    "os_disk_size_gb": 30,

    "disk_additional_size": [30],

    "winrm_username": "packer",

    "image_publisher": "MicrosoftWindowsServer",

    "image_offer": "WindowsServer",

    "image_sku": "2019-datacenter-smalldisk-g2",

    "image_version": "latest",

    "managed_image_os_disk_snapshot_name": "",

    "managed_image_data_disk_snapshot_prefix": ""

}

 

Once a json is filled in we then need to run the python command as below

python3 azure-packer-build.py vault

 

I would like to understand the background process during this image build. e.g from where the OS will be picked up and packaged inside the image, from where the Vault package will be picked up and deployed in this bundled image etc.

 

2 REPLIES 2

L7 Applicator

Hi @R K​ 

 

The OS comes from Azure marketplace

 

I will try to explain the background process

for an image build

 

  • When you run Payton script it reads component.json file which specifies details like the desired Azure OS base image, VM size, and target image name.
  • If you are using IaC tool, it will connect to Azure using its provider and will use your configured Azure Service Principal to authenticate with your Azure subscription.
  • Then it will It creates a temporary resource group in Azure for the build.
  • Afterward it pulls the specified base OS image from the Azure Marketplace.
  • Then it provisions a temporary Azure Virtual Machine using this OS image
  • IaC tool then connects to the temporary VM (via WinRM for Windows).
  • Then will runs a series of PowerShell scripts provided by CyberArk as part of their BYOI packages on this temporary VM.
  • That script will install application and it’s prerequisite, hardening on the VM
  • Then IaC will prepare a custom image
  • Then IaC tool will delete all the temporary Azure resources it created during the build.

 

This will make your image ready, which you can deploy as a VM using Azure deployment tools or from

Azure console.

 

Hope it helps !

 

Thanks @Malhar​ for explaining with background process details.

  • 328 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!