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.
9,022 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.
450 questions
Windows for business | Windows Server | User experience | PowerShell
0 comments No comments
{count} votes

1 answer

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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.