Как установить файл .exe на целевой узел с помощью Azure Automation DSC? - PullRequest
0 голосов
/ 31 мая 2019

Я пытаюсь установить файл .exe (Notepad ++) на целевом узле с помощью Azure Automation DSC, я могу скопировать файл .exe на целевой узел из моей учетной записи хранения, но пакет не устанавливается.

Ниже мой код:

Configuration Notepad++
{
   param(
      [string]
   $location = "C:\elevatefolder\packageselevate\npp.7.6.6.Installer.x64.exe"
   )
        Import-DscResource -ModuleName xPSDesiredStateConfiguration

    Node "localhost"
    {
    File CreateDirectory
    {
       Ensure = "present"
       Type = "Directory"
       DestinationPath = "C:\elevatefolder"
           }
        xRemoteFile FileDownload
        {
            Uri = "<URL to my storage account>"
            DestinationPath = $location
                  }
    Package Notepad++
        {
            Ensure = "Present"
            Name = "Notepad++"
            Path = $location 
            ProductId = ""
...