-
Notifications
You must be signed in to change notification settings - Fork 240
Open
Description
I have run the command and getting the error message .
Command:
$Inputscript = "C:\Powershell\27-06-20_PowerShell\demo3.ps1"
Invoke-AzureRmVMRunCommand -ResourceGroupName $ResourceGroupName -Name $Name -CommandId 'RunPowerShellScript' -ScriptPath $Inputscript -Confirm:$false
Error Message:
Message : Install-PackageProvider : The term 'Install-PackageProvider' is not recognized
as the name of a cmdlet, function, script file, or operable program. Check the
spelling of the name, or if a path was included, verify that the path is
correct and try again.
At C:\Packages\Plugins\Microsoft.CPlat.Core.RunCommandWindows\1.1.5\Downloads\s
cript6.ps1:2 char:1
- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force
-
+ CategoryInfo : ObjectNotFound: (Install-PackageProvider:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Metadata
Metadata
Assignees
Labels
No labels