Bypass CPU Check in Azure Site Recovery

Rolling out Azure Site Recovery….

So I am rolling out ASR for some posts on designing redundancy and failover for Azure Local, and I have some small intel nucs (older) running Esxi 8, so I figured let’s roll out ASR two fold… To protect those things I have on those small ESXI Hosts, and to protect my local VMs I have on Azure Local. So I slapped an ASR appliance on 1 host….

I rolled out the appliance and….

NO ASR FOR YOU!!!!

Yep… When it got to CPU validation it said NO ASR FOR YOU!!! As it needed 8 CPU cores, I only had 4… DOH! So I did some digging and there is a file we can edit. Make a copy first and open the jawn at this location: C:\Program Files\Microsoft Azure Appliance Configuration Manager\Scripts\SetupPrerequisite.js In notepad or whatever and then Search for “Success function for validate memory and cpu task.” When you find that… You will see

				
					if (data.Success) {
            panelController.releaseLock('SetupPrerequisites');
            $('#SetUpPrereqContBtn').removeAttr('disabled');
            $('#MemoryAndCpuRetryBtn').hide();
            ValidateOsVersion(null);
        }
        else {
            $('#SetUpPrereqContBtn').attr('disabled', 'disabled');
            $('#MemoryAndCpuRetryBtn').show();
            $('[data-toggle="tooltip"]').tooltip();
            $('#' + errorId).focus();
        }
				
			

So.. Here’s the code, what do we do to fix the problem?

 

So this says to stop the validation and don’t continue… So we’re going to replace the second else, with everything in the first else block to make it look like this:

				
					if (data.Success) {
            panelController.releaseLock('SetupPrerequisites');
            $('#SetUpPrereqContBtn').removeAttr('disabled');
            $('#MemoryAndCpuRetryBtn').hide();
            ValidateOsVersion(null);
        }
        else {
            panelController.releaseLock('SetupPrerequisites');
            $('#SetUpPrereqContBtn').removeAttr('disabled');
            $('#MemoryAndCpuRetryBtn').hide();
            ValidateOsVersion(null);
        }
				
			

Sweet tip….

So When you change it and save the file, it will still fail on the CPU but will continue. I am getting an error trying to pair, but I think it’s an azure thing… But I will post the results when I have them…

 

Read Also

  • All Posts
  • Azure
  • M365
  • On Premise
  • Scripts
  • Update
    •   Back
    • Active Directory
    • Hybrid
    • Hyperconverged
    • Hyper-V
    •   Back
    • Virtual WAN
    • Always on VPN
    • SDN
    •   Back
    • Troubleshooting
    • Virtual Machines
    • AVD
    • GPU
    •   Back
    • Azure Local
    • Networking
    • Azure Networking
    • Security
    • Azure Site Recovery
    • Governance
    • Troubleshooting
    • Virtual Machines
    • AVD
    • GPU
    • Virtual WAN
    • Always on VPN
    • SDN
    • Sentinel
    •   Back
    • Exchange Online
    • Intune
    •   Back
    • Sentinel
    •   Back
    • Troubleshooting Menu
Load More

End of Content.

Jay Calderwood

Writer & Blogger

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Search for Post

Join our 19,845,216 Email Subscribers

You have been successfully Subscribed! Ops! Something went wrong, please try again.

Recent Post

  • All Posts
  • Azure
  • M365
  • On Premise
  • Scripts
  • Update
    •   Back
    • Active Directory
    • Hybrid
    • Hyperconverged
    • Hyper-V
    •   Back
    • Virtual WAN
    • Always on VPN
    • SDN
    •   Back
    • Troubleshooting
    • Virtual Machines
    • AVD
    • GPU
    •   Back
    • Azure Local
    • Networking
    • Azure Networking
    • Security
    • Azure Site Recovery
    • Governance
    • Troubleshooting
    • Virtual Machines
    • AVD
    • GPU
    • Virtual WAN
    • Always on VPN
    • SDN
    • Sentinel
    •   Back
    • Exchange Online
    • Intune
    •   Back
    • Sentinel
    •   Back
    • Troubleshooting Menu
Load More

End of Content.