step 1 : create azure storage account and container
login to portal.azure.com

then storage account  and create

Review and create


then create a container

then login to your server  and install azure cli

sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc

sudo sh -c 'echo -e "[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo'

sudo yum install azure-cli  -y

az login

now we have access to azure blob from our server.

go to access keys and take account name and key

login to server

yum install nano -y

nano script.sh and paste script

#!/bin/bash
#replace account-name and access-key


export AZURE_STORAGE_ACCOUNT=bluecas
export AZURE_STORAGE_ACCESS_KEY=sJt9ZjjHWFzhnu+KqlReY/08/ANcRdF5qNSRRi23Yqq8DxrA8FozL7lED/qg2nRy/OWtypPC3PyEG1P/U9JNrA==

#replace your accountname,containername,source folder
az storage blob directory upload -c test --account-name bluecas -s "/root/prabin/*" -d backup --recursive

thenn

chmod  +x script.sh

./script.sh

install the extension

script is working now

then set a cronjob to run the script after cpanel backup generated and remove the local backup after moved data to blob

download and install azure explorer to manage backups.

Azure Storage Explorer – cloud storage management | Microsoft Azure
Easily manage your Azure storage accounts in the cloud, from Windows, macOS, or Linux, using Azure Storage Explorer.
https://azure.microsoft.com/en-in/features/storage-explorer/

thats all.