Running Matt McSpirit's AzSPoC.ps1 script, failing on AddUbuntuImage and DownloadWindowsUpdates

Michael Clagett 211 Reputation points
2024-10-10T15:43:49.3933333+00:00

The error I get during AddUbuntuImage is:

"The network connectivity issue encountered for 'Microsoft.Gallery.Admin'; cannot fulfill the request."

Not sure what the solution is, but this seems critical to the success of everything that follows it, including the creation of Windows Server images.

The error I get during the DownloadWindowsUpdates stage is different:

Exception calling "DownloadFile" with "2" argument(s): "The request was aborted: Could not create SSL/TLS secure channel."

Now this error I also got during the Download Tools stage, (and I also got the same error when I was following the Post Deployment steps and tried downloading the tools there). I got wound this by downloading the az.zip on another machine, copying it to the proper folder (in my case, I created a D:\ASDKfiles folder, as per the examples provided with Matt's scripts), and then adding some logic to the AzSPoC.ps1 script to bypass the attempt to download it.

I am trying to identify where in this script (or the scripts it calls) I might do a similar thing for DownloadWindowsUpdates, but in the meantime I thought I would post the question here to see if anyone else has any insights.

Most of the other failures I am seeing appear to stem from the failure of one or the other of these two steps.

Azure Stack Hub
Azure Stack Hub
An extension of Azure for running apps in an on-premises environment and delivering Azure services in a datacenter.
189 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Clagett 211 Reputation points
    2024-10-10T19:20:50.2266667+00:00

    I can be more specific about the second part of my question above.

    It would appear that the "Could not create secure channel error" is happening when the script tries to download Windows updates from a url such as this:

    https://catalog.s.download.windowsupdate.com/d/msdownload/update/software/secu/2021/04/windows10.0-kb5001402-x64_0108fcc32c0594f8578c3787babb7d84e6363864.msu

    But as I said, this TLS error has happened with more than one target, (but not all of them, which is rather strange).

    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.