<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vasantha Raja Selvaraju on Medium]]></title>
        <description><![CDATA[Stories by Vasantha Raja Selvaraju on Medium]]></description>
        <link>https://medium.com/@cloudtechnicker?source=rss-4d177d13fa1d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*waFbV_aoICIDbzMRPXZE3g.png</url>
            <title>Stories by Vasantha Raja Selvaraju on Medium</title>
            <link>https://medium.com/@cloudtechnicker?source=rss-4d177d13fa1d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 16:17:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cloudtechnicker/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cross-Tenant Azure VM Migration using Native Azure Migrate:]]></title>
            <link>https://cloudtechnicker.medium.com/cross-tenant-azure-vm-migration-using-native-azure-migrate-990e6a951e75?source=rss-4d177d13fa1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/990e6a951e75</guid>
            <category><![CDATA[azure-migrate]]></category>
            <category><![CDATA[lift-and-shift-migration]]></category>
            <category><![CDATA[azure-migration-services]]></category>
            <dc:creator><![CDATA[Vasantha Raja Selvaraju]]></dc:creator>
            <pubDate>Fri, 17 Apr 2026 09:48:44 GMT</pubDate>
            <atom:updated>2026-06-17T12:25:57.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>Overview</h3><p>This guide explains how to migrate Azure VMs across tenants by treating the source VM as a physical machine. The Mobility Agent is modified to bypass Azure environment detection, allowing it to register with an Azure Migrate appliance in a different tenant.</p><h3>Why the Native Approach Doesn’t Work</h3><p>Azure Site Recovery’s Mobility Agent detects when it’s running on Azure and blocks registration with external configuration servers. This prevents cross-tenant migration using standard Azure-native flows.</p><p><strong>The fix:</strong> a single configuration change makes the agent behave like a physical server instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*b9BWg3w2JjmjM7rgKVbwnw.png" /><figcaption>Cross Tenant Migration via Native Azure Migrate</figcaption></figure><h3>Prerequisites</h3><p><strong>Source VM (Tenant A):</strong></p><p>• Windows Server 2012 R2 / 2016 / 2019 / 2022, or supported Linux</p><p>• Managed disks only (unmanaged disks not supported)</p><p>• At least 32 GB free on the OS disk</p><p>• Outbound access on ports 443 and 9443 to the target appliance</p><p>• Local administrator access</p><p><strong>Target Appliance (Tenant B):</strong></p><p>• Azure Migrate project with source type: Physical or other cloud servers</p><p>• Windows Server 2022 VM — 32 GB RAM, 16 vCPUs, 600 GB disk</p><p>• Ports 443 and 9443 open from the source VM</p><p>• Contributor permissions on the target subscription</p><p>• Cache storage account, VNet, and target subnet ready</p><h3>Migration Steps</h3><p><strong>Step 1 — Set Up Azure Migrate in the Target Tenant</strong></p><p>1. Create a new Azure Migrate project in Tenant B. Set the source type to Physical or other cloud servers.</p><p>2. Deploy the appliance VM with the specs above in the source environment (Here source is also an Azure)</p><p>3. Download the replication installer from Azure Migrate → Discover → Generate project key.</p><p>4. Run the installer on the appliance VM and register it using the project key.</p><p><strong>Step 2 — Install the Mobility Agent on the Source VM</strong></p><p>The Azure Site Recovery Mobility Agent must be installed on the Azure VM source in Tenant A. The default installation path is:</p><p>C:\Program Files (x86) \Microsoft Azure Site Recovery\agent</p><p>On the source VM, open a command prompt and navigate to the folder where the installer file has been placed.</p><blockquote>cd C:\Program Files (x86) \Microsoft Azure Site Recovery</blockquote><p>Run the following command to extract the installer file:</p><blockquote>Microsoft-ASR_UA*Windows*release.exe /q /x:”C:\Program Files (x86)\Microsoft Azure Site Recovery”</blockquote><p>Then install the agent:</p><blockquote>UnifiedAgentInstaller.exe /Platform vmware /Silent /Role MS /CSType CSPrime /InstallLocation “C:\Program Files (x86)\Microsoft Azure Site Recovery”</blockquote><p>Save the Agent Config Input string shown after installation — you’ll need it in Step 4.</p><p><strong>Step 3 — Apply the Configuration Workaround</strong></p><p>This is the critical step that enables the workaround. After the Mobility Agent is installed, navigate to the agent configuration directory and modify the configuration file to bypass Azure environment detection.</p><p>Navigate to:</p><blockquote>C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\Application Data\etc</blockquote><p><strong>Open drscout.conf and change:</strong></p><blockquote><strong>IsAzureStackHubVm=0 → IsAzureStackHubVm=1</strong></blockquote><p><strong><em>📝 Note: </em>What This Change Does</strong></p><p>Setting IsAzureStackHubVm=1 overrides the Azure environment detection logic within the Mobility Agent. The agent normally detects that it is running on an Azure VM and blocks registration with an external configuration server. This flag forces the agent to behave as if it is running on an Azure Stack Hub or non-standard Azure environment, enabling registration with the target appliance.</p><p><strong>Step 4 — Register the Agent (Credential-less)</strong></p><p>Run the configurator against the target appliance:</p><blockquote>“C:\Program Files (x86)\Microsoft Azure Site Recovery\agent\UnifiedAgentConfigurator.exe” /SourceConfigFilePath “config.json” /CSType CSPrime /CredentialLessDiscovery true</blockquote><ul><li>/SourceConfigFilePath — points to the registration config with appliance details and project key</li><li>/CSType CSPrime — uses the modern Configuration Server architecture</li><li>/CredentialLessDiscovery true — skips shared identity/credential requirements between tenants</li></ul><p><strong>For Linux VM, please follow below commands for agent installation:</strong></p><p>Copy the respective agent to a tmp folder based on the OS (RHEL, UBUNTU)</p><p>Then run below command to extract,</p><blockquote><strong>sudo tar -xvf Microsoft-ASR_UA_*********release.tar.gz</strong></blockquote><p>Next, to install the agent run the below command</p><blockquote><strong>sudo ./install -q -r MS -v VmWare -c CSPrime</strong></blockquote><blockquote>Now with root access (sudo su -), go to <strong>cd /usr/local/</strong></blockquote><blockquote>cd <strong>ASR/Vx/etc</strong></blockquote><blockquote>vi <strong>drscout.conf</strong> — Here change <strong>IsAzureStackHubVm=0 → IsAzureStackHubVm=1</strong></blockquote><blockquote>Now go to “cd <strong>ASR/Vx/bin/</strong>”</blockquote><blockquote>Run below command for the registration now,</blockquote><blockquote><strong>./UnifiedAgentConfigurator.sh -S /tmp/config.json -q -c CSPrime -D true</strong></blockquote><p><strong>Step 5 — Verify Registration</strong></p><p>5. In the Azure portal, go to Azure Migrate → Discovered Servers in Tenant B.</p><p>6. Confirm the source VM appears as a Physical or other cloud machine.</p><p>7. On the source VM, verify that InMage Scout Application Service and SVagents are both running.</p><p><strong>Note:</strong></p><blockquote><em>For Source VMs with V6 sizes which has NVMe controller has support with ASR is in preview. So, if it fails in replication, then change the source size from the V6 to V5 with different Series (Example, D size to E size) and start the replication.</em></blockquote><p><strong>Replicate and Cut Over</strong></p><p>8. In Azure Migrate → Replication, select the discovered VM.</p><p>9. Configure the target resource group, VNet, subnet, and disk type.</p><p>10. Start replication and wait for the initial sync to complete.</p><p>11. Run a test failover and validate.</p><p>12. Execute the final failover. Replication from Tenant A stops and the VM comes up in Tenant B.</p><p>13. Select Complete Migration in the portal to finalize.</p><h3>Reference</h3><p>Below link covers the commands for agent installation &amp; registration. Change on config file to represent azure vm as physical, would not be there, follow the blog.</p><p>Microsoft Learn — About the Mobility service for disaster recovery of VMware VMs and physical servers: <a href="https://learn.microsoft.com/en-us/azure/site-recovery/vmware-physical-mobility-service-overview">Mobility service overview | Azure Site Recovery</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=990e6a951e75" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Azure Migrate — Replication cycle failed with “No disk snapshots were found” (Snapshot ID)]]></title>
            <link>https://cloudtechnicker.medium.com/azure-migrate-replication-cycle-failed-with-no-disk-snapshots-were-found-snapshot-id-bafd5802c3d8?source=rss-4d177d13fa1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/bafd5802c3d8</guid>
            <dc:creator><![CDATA[Vasantha Raja Selvaraju]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 06:13:22 GMT</pubDate>
            <atom:updated>2026-02-28T06:13:22.649Z</atom:updated>
            <content:encoded><![CDATA[<p>Azure Migrate — Replication cycle failed with “No disk snapshots were found” (Snapshot ID)</p><h3>Symptoms / Error Seen</h3><p>During agentless VMware → Azure replication (Azure Migrate: Migration &amp; modernization), the <strong>replication cycle failed</strong> with the following message in <strong>Events</strong>:</p><pre>The last replication cycle for the virtual machine failed.<br>No disk snapshots were found for the snapshot replication with Snapshot Id: &#39;&lt;GUID&gt;&#39;.</pre><p>Tip: You can review these messages in Azure portal → <strong>Azure Migrate project</strong> → <strong>Migration &amp; modernization</strong> → <strong>Replications</strong> → select VM → <strong>Events</strong>.</p><h3>What Happened in Our Case:</h3><ul><li>On <strong>VMware</strong>, a <strong>data disk had been removed</strong> from the VM earlier.</li><li>Later, while configuring replication in Azure Migrate, that <strong>previously removed disk was still selected</strong> under “Included disks.”</li><li>When Azure Migrate attempted the next replication cycle, it <strong>couldn’t find a corresponding snapshot/disk</strong> for the included (now non‑existent) VMDK, so the cycle aborted with <strong>“No disk snapshots were found …”</strong>.</li></ul><h3>Root Cause</h3><p>A <strong>mismatch</strong> between <strong>disks selected in Azure Migrate</strong> and the <strong>actual disks attached to the VM in vSphere</strong>.</p><p>Azure Migrate expected to snapshot &amp; export a disk that <strong>no longer existed</strong> on the source VM, resulting in <strong>“No disk snapshots were found …”</strong> and a failed cycle.</p><h3>Solution (What fixed it)</h3><ol><li><strong>Validated current disk layout on vCenter</strong> (Edit Settings → confirm which VMDKs are actually attached).</li><li>In <strong>Azure Migrate, reinitiated replication </strong>(project → Migration &amp; modernization → <strong>Replications</strong> → select VM → <strong>Compute and disks</strong>):</li></ol><ul><li><strong>Unselect</strong> the disk that had been removed on VMware (so the include list matches the real VM).</li><li>Saved the settings and let <strong>the next replication cycle</strong> run — <strong>status turned healthy</strong> and cycles resumed.</li></ul><h3>Verification</h3><ul><li>Portal → <strong>Azure Migrate</strong> → <strong>Replications</strong> → VM → <strong>Replication health = Health</strong></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bafd5802c3d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Automating Azure MySQL Flexible Server Backup Long-Term Retention:]]></title>
            <link>https://cloudtechnicker.medium.com/automating-long-term-retention-for-azure-mysql-flexible-server-backup-a379b1511a88?source=rss-4d177d13fa1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/a379b1511a88</guid>
            <dc:creator><![CDATA[Vasantha Raja Selvaraju]]></dc:creator>
            <pubDate>Sun, 13 Jul 2025 17:44:11 GMT</pubDate>
            <atom:updated>2025-07-14T02:52:01.680Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Automating Azure MySQL Flexible Server Backup Long-Term Retention:</strong></p><blockquote>The preview solution for protecting Azure Database for MySQL Flexible Servers using Azure Backup is currently paused (<a href="https://learn.microsoft.com/en-us/azure/backup/backup-azure-mysql-flexible-server-support-matrix">https://learn.microsoft.com/en-us/azure/backup/backup-azure-mysql-flexible-server-support-matrix</a>z). Microsoft provides an alternate way using Container-based solution to create an on-demand/scheduled backup of Azure Database for MySQL to an Azure blob container as in the link below,(<a href="https://techcommunity.microsoft.com/blog/adformysql/azure-database-for-mysql-extending-long-term-retention-by-using-containers/3065164">https://techcommunity.microsoft.com/blog/adformysql/azure-database-for-mysql-extending-long-term-retention-by-using-containers/3065164</a>)</blockquote><p>This article provides the steps to <strong>automate MySQL database backups using an Ubuntu VM in Azure, storing the backups in Azure Blob Storage, and scheduling the process with cron jobs.</strong></p><p>For long-term backup retention, multiple solutions can be employed. One such approach, which I have implemented here, is described below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*ajBevPe0btEDRkzvwJZ39Q.png" /><figcaption>Ubuntu VM accesses MySQL, takes backup using mysqldump, and pushes data to Azure Storage.</figcaption></figure><h4>1. Infrastructure Setup</h4><h4>1.1 Create Ubuntu VM</h4><ul><li>Deploy a VM (I used Ubuntu OS) in the <strong>same Azure subscription</strong> and <strong>Virtual Network (VNet)</strong>, where the MySQL Flexible Server is deployed.</li><li>Ensure <strong>network connectivity</strong> between the VM and the MySQL server. (As the VM and MySQL are in the same VNet, connectivity will be established; however, verify it using telnet and confirm.)</li></ul><h4>1.2 Create Azure Storage Account</h4><ul><li>Create a <strong>Storage Account</strong>.</li><li>Create a <strong>Blob Container</strong> for storing backups.</li><li>Create a <strong>Private Endpoint</strong> for the Storage Account in the same subnet as the Ubuntu VM is running.</li></ul><h4>2. Identity and Access:</h4><h4>2.1 Enable Managed Identity</h4><ul><li>Enable user<strong> </strong>or<strong> </strong>system<strong> </strong>Identity on the Ubuntu VM.</li><li>Assign the following roles to the VM’s managed identity on the Storage account: IAM — <strong><em>Contributor</em></strong><em> (on the Storage Account); S</em><strong><em>torage Blob Data Contributor</em></strong></li></ul><h4>3. Install MySQL Client on Ubuntu VM</h4><p>Log in to the VM and install the MySQL client using the following commands:</p><blockquote>sudo apt update<br>sudo apt install mysql-client -y</blockquote><h4>4. Create Backup Script</h4><p>Here’s a <strong>step-by-step guide</strong> to creating a <strong>shell script</strong> on your VM that:</p><ol><li>Takes a <strong>MySQL database backup using </strong><strong>mysqldump</strong></li><li><strong>Pushes</strong> that backup to an <strong>Azure Storage container</strong></li></ol><p><strong>Location: </strong>/opt/mysql_backup.sh</p><blockquote>#!/bin/bash<br> <br><strong> # Configurable variables</strong><br> DATE=$(date +%F_%H-%M)<br> BACKUP_NAME=” “<br> BACKUP_PATH=”/tmp/$BACKUP_NAME”<br> STORAGE_ACCOUNT=” “<br> CONTAINER_NAME=” “<br> MYSQL_USER=” “<br> MYSQL_PASSWORD=” “<br> MYSQL_DB=” ”<br> <br><strong> # Dump MySQL database (*****.mysql.database.azure.com = provide your Server name)</strong><br> <br>mysqldump -h *****.mysql.database.azure.com -P 3306 -u $MYSQL_USER -p $MYSQL_DB — single-transaction — set-gtid-purged=OFF — triggers — routines — events &gt; $BACKUP_PATH</blockquote><blockquote><strong># Login to Azure using Managed Identity</strong><br> az login — identity — client-id X-XXX-XXXX-XXXX-X</blockquote><blockquote><strong># Upload to Azure Blob</strong><br> az storage blob upload — account-name $STORAGE_ACCOUNT — container-name $CONTAINER_NAME — name $BACKUP_NAME — file $BACKUP_PATH — auth-mode login</blockquote><p><strong>Note</strong>: Ensure the script has execution permissions:</p><blockquote>chmod +x /opt/mysql_backup.sh</blockquote><h4>5. Schedule Backup with Cron</h4><p>We can <strong>automatically schedule the MySQL backup script</strong> to run at regular intervals using the Crontab utility.</p><p><strong>Edit Crontab: </strong>Crontab -e</p><p><strong>Add a Cron-Job as below,</strong></p><blockquote>30 02 * * * /opt/mysql_backup.sh &gt;&gt; /var/log/mysql_backup.log 2&gt;&amp;1</blockquote><p>This runs the backup daily at <strong>2:30 AM</strong> and logs output to /var/log/mysql_backup.log.</p><p>Note: <strong>We can also use Azure Automation with a Hybrid Runbook Worker to access this VM and run this script instead of a cron job.</strong></p><p><strong>6. Cost-Optimization</strong></p><ul><li>To optimize costs, we can configure an Azure Function App/ Automation account to start and stop the VM automatically. This ensures the VM is powered on before the scheduled cron job runs and then shuts down afterward based on the estimated time required to complete the backup.</li><li>Creating Storage lifecycle management rules to move older data to be deleted/archived based on our required backup retention.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a379b1511a88" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Linux Root Structure]]></title>
            <link>https://cloudtechnicker.medium.com/basic-linux-structure-890443a8d2ba?source=rss-4d177d13fa1d------2</link>
            <guid isPermaLink="false">https://medium.com/p/890443a8d2ba</guid>
            <dc:creator><![CDATA[Vasantha Raja Selvaraju]]></dc:creator>
            <pubDate>Sat, 07 Dec 2024 03:32:59 GMT</pubDate>
            <atom:updated>2024-12-07T03:35:12.238Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s learn the Basic Root Structure for the Linux system</p><p><strong>/ — (Root)</strong> — The base of the file system. All directories, files, and devices stem from this root. Store admin-specific scripts, configuration files, and sensitive information.<br>Example: A script to reset system user passwords stored in /root/reset_passwords.sh</p><p><strong>/bin </strong>— Binaries (commands) needed during boot or single-user mode. Default system commands like ls, cp, cat, echo, etc., live here.<br>Example: Running ls to list files works because its binary is in /bin</p><p>In Linux, “binaries” refer to compiled executable files that the system can run directly. A compiled executable file is a program that has been translated from human-readable source code (written in programming languages like C, C++, or Java) into machine-readable instructions (binary code) that a computer’s processor can execute directly.</p><p><strong>/sbin </strong>— System binaries used for administrative tasks for root user commands like ifconfig, iptables, fsck, and reboot.</p><p><strong>/boot </strong>— Files required for booting the system, including Linux kernel.<br>Stores the Linux kernel, bootloader (like GRUB) configuration, and initial RAM disk.<br>Example: Updating the kernel (vmlinuz) or editing bootloader settings in /boot/grub/grub.cfg.</p><p><strong>/dev</strong> — Device files representing hardware and virtual devices. <br>Access devices like hard drives (/dev/sda), USB drives (/dev/sdb), or terminals (/dev/tty).<br>Example: Mounting a USB device (mount /dev/sdb1 /mnt/usb).</p><p><strong>/etc </strong>— System-wide configuration files.<br>Configuring network, users, applications, and services.<br>Examples:<br>passwd: User authentication data.<br>hosts: Map hostnames to IP addresses.<br>nginx.conf: Configuration for the NGINX web server.</p><p><strong>/home</strong> — Home directories for regular users. Example: /home/vasanth<br>Each user gets their own subdirectory (/home/username) to store personal files and settings.<br>Example: Storing user files, like /home/vasanth/file.docx.</p><p><strong>/lib</strong> — Shared libraries for binaries in /bin and /sbin.<br>Example: Running ls relies on libraries like libc.so from /lib.</p><p><strong>/media</strong> -Mount points for removable media like USB drives, CDs, or DVDs.<br>Automatically mount USB drives or SD cards when inserted.<br>Example: Accessing files on a USB drive mounted at /media/usb.</p><p><strong>/mnt</strong> -Temporary mount points for manually mounted file systems.<br>Manually mounting remote filesystems or temporary storage.<br>Example: mount /dev/sdb1 /mnt/temp for temporary access.</p><p><strong>/opt </strong>— Optional software not managed by the system’s package manager<br>Optional software is installed manually, without using Package managers like apt,yum tools.<br>Install third-party applications or custom software. Example: Installing a custom version of Apache under /opt/apache.</p><p><strong>/proc </strong>— Virtual filesystem providing system and process information.<br>Example:<br>Check CPU info: cat /proc/cpuinfo.</p><p><strong>/run </strong>— The /run directory is a temporary filesystem used to store runtime data for processes that have started since the system booted. It replaces older directories like /var/run and /var/lock.<br>Example: Systemd and other init systems store session and state information here. Example: /run/systemd/.</p><p><strong>/srv</strong> -The /srv directory is used to store data served by the system’s services. This includes files and directories related to web servers, FTP servers, or other server-related activities.<br>Example: <br>A web server like Apache or NGINX might serve files from /srv/www.<br>Example: /srv/www/mywebsite.com/public_html/index.html.<br>Files shared via FTP might be stored in /srv/ftp.</p><p><strong>/sys</strong> — sysfs is a virtual filesystem in Linux that provides a structured way to access kernel devices, modules, and settings.</p><p>Monitoring Hardware Information — Checking CPU Topology and Configuration. Path: /sys/devices/system/cpu/</p><p>Example: Find the number of CPUs or cores available.<br>cat /sys/devices/system/cpu/present</p><p><strong>/tmp </strong>— Temporary files, Cleared on reboot. Store temporary data required by applications during execution.</p><p><strong>/usr</strong> — User applications and utilities. Non-essential commands and libraries.</p><p>Examples:<br>/usr/bin: User programs like vim, nano, python.<br>/usr/sbin: Non-critical system binaries like apachectl.<br>/usr/lib: Libraries for programs in /usr/bin.<br>/usr/local — Locally installed software and utilities.</p><p><strong>/var </strong>— Variable data files like logs &amp; caches.<br>Examples: Logs: /var/log/syslog, /var/log/nginx/access.log; Mail queues: /var/spool/mail.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=890443a8d2ba" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>