This command cannot be run due to the error: The specified executable is not a valid application for this OS platform in Custom VM Script Extension

Sritharini Radhakrishnan 1 Reputation point
2021-09-17T14:33:29.527+00:00

I have created a Custom VM Script for installing .net framework 4.8 in my VMSS, the powershell script is as follows133195-installnetfx48.txt

But im getting this error "This command cannot be run due to the error: The specified executable is not a valid application for this OS platform"
when i debugged, i found that the .exe file is installed as app and not as installer.
It would be a great help if you can help me with this.
Thankyou

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,123 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
347 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,363 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 39,351 Reputation points
    2021-09-17T18:12:17.973+00:00
    1 person found this answer helpful.
    0 comments No comments