-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lab 4: Deploy-WACAzVM.ps1 fails w/errors #4
Comments
the issue is with the $scriptParams block in step 6. it's missing the parameter to create a public IP on the VM so the script can't connect to the internet to download WAC. The correct code should be: $scriptParams = @{ |
Thanks very much, @garjam73, that solution seemed to work for the older ws-012 course, I will test it for this course now and hopefully same success! |
I am also facing an issue with this specific step. I have followed garjam73 solution, but still receive the same error. |
@garjam73 solution fixed the error @TesterTesterson1004 raised. However, I'm now encountering a new error. Any recommended solutions? |
@Yiizo, I've seen that issue in another situation, caused by an error in the latest version of the PowerShell module. I found some instructions that talked about uninstalling Az.Compute and installing version 4.23.0. This sorted out the issue I was having on my machine, but didn't help in Cloud Shell because I couldn't uninstall the Az.Compute module due to modules using it that were required to run for Cloud Shell to operate. I gave up after a bit of time, so never got to the bottom of it. See |
@craigbeeremct You can temporarily downgrade the Az.Compute module version in Cloud Shell. The change is not persistent, so when you spin up a new instance of cloud shell the latest version of Az.Compute module will be used again. The process is extremely simple: #install the required version #reload the session so the new module is used #Verify the version is correct Unless you click the X button to close the cloud shell, the 4.23.0 version will be used. (I saw the above in a comment - I don't remember where - so credits not mine) Now to the problem at hand, while the above solution solved the VMCustomization issue, the script failed later. My solution up to this day is to manually do what the script does (and have my students do the same) |
@sotiris84 I just tried your step to downgrade the AZ.Compute module alongside my $scriptparams fix and with both together the lab script works |
Thank you for those steps, much appreciated. |
Thank you, everyone for the information. After I downgraded the Az.Compute version in CloudShell and corrected the $scriptParams block above, the DNS name and some other items still did not get created successfully. I was not able to resolve this, and so I had to skip Exercise 4, Task 1. Any advice? |
@Paterpetri You can perform the steps manually. |
@sotiris84 Got it. I guess I missed that last part of your previous comment. I should read more carefully. Thanks again! |
Update LAB_AK_04_Using_Windows_Admin_Center_in_hybrid_scenarios.md
In the policy it is stated that the name of the VM is only allowing name = az800l04-vm0 and not as stated az800l04-vmwac. In the further tasks also there is a mixture of both vm-names, which must be cleaned up. If you change |
Regarding the LODS/Cloudslice version (wherein errors indicated VM az800l04-vmwac was blocked by ACP) ...that now appears to be fixed. |
Hi,
Interesting The courseware updated since last night. Now can create with Policy error.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: TesterTesterson1004 ***@***.***>
Sent: Wednesday, September 28, 2022 4:28:34 AM
To: MicrosoftLearning/AZ-800-Administering-Windows-Server-Hybrid-Core-Infrastructure ***@***.***>
Cc: David Papkin ***@***.***>; Comment ***@***.***>
Subject: Re: [MicrosoftLearning/AZ-800-Administering-Windows-Server-Hybrid-Core-Infrastructure] Lab 4: Deploy-WACAzVM.ps1 fails w/errors (Issue #4)
Regarding the LODS/Cloudslice version (wherein errors indicated VM az800l04-vmwac was blocked by ACP) ...that now appears to be fixed.
—
Reply to this email directly, view it on GitHub<#4 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AF2LQISZCB7KA34IGXYVS53WANKHFANCNFSM5OPPSVYA>.
You are receiving this because you commented.Message ID: ***@***.***>
|
The problem seems to exist still. Most probably the issue lies with the policies in place on online lab hosts. What I do in my classes is to explain the script, but actually perform the steps manually either in advance or as a demo during class. |
These two commands will allow to download the msi on the machine and to install it with a self-signed certificate. So the first method you connect directly on the machine in rdp, the second method you open a powershell window in admin and you copy the 2 commands. Or as said above via run command and powershell script. You check that each command is well passed. I think that some command in the script deploy are not available for the new version of azure. |
in the script, there is the command invoke-azurevmcommand and this command has changed name with the new version of AZURE. The new name for this command is invoke-AzureVmRuncommand. |
When running ./Deploy-WACAzVM.ps1 @scriptParams all students received the following error: Invoke-WebRequest: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. SOLUTION: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls -bor Note the fix in the first image below (just above the first bit of yellow text). Successful output. |
Thank you. We'll run this through our test process and update accordingly. |
I tested Lab 4 twice, it works fine; I couldn't find any errors. The reported solution is: “Execute the following commands before running the ./Deploy-WACAzVM.ps1 script Here are the lab screenshots.Tested with default instructionsTested reported solution |
Module: 00
Lab/Demo: 04
Exercise 3
Task: 01
Step: 08
Description of issue
Deploy-WACAzVM.ps1 script will error at this point, preventing fully successful completion of the balance of the Lab:
Repro steps:
Interestingly, the VM itself, and a variety of the resources are in fact, created successfully, however certain items (such as the DNS name) do not get populated. You can log in to the VM using RDP and the Student account, but due to the errors seen in script it is uncertain what else may have failed.
Also, I realize this is a different course issue BUT - this is essentially the identical behavior seen in WS-012, in this still open/unfixed issue that appeared relatively recently in identical .ps1, used almost identically as it is in AZ-800: https://github.com/MicrosoftLearning/WS-012T00-Windows-Server-2019-Hybrid-and-Azure-IaaS/issues/36
Because a suspiciously similar issue was seen with this very same Deploy-WACAzVM.ps1 script in yet one more past WS-012 issue (but was fixed ~April 7th, 2021) I feel it might be productive to take a look at some of the various bug reports down that chain. Apologies if these end up being red herrings - but the behaviors (relating to configuration of WSRemoting + forcing ignore of self-signed certs - are just so very similar to the behavior in the here and now for this AZ-800 error behavior.
See also: MicrosoftDocs/azure-docs#68262
I have tried using various previous versions of the https://www.powershellgallery.com/packages/PSWSMan/2.3.0 module, and various other troubleshooting on this new AZ-800 issue but have as-yet been unsuccessful in understanding why we fail here.
The text was updated successfully, but these errors were encountered: