SetupStudentLab
StepstosetupanAzureVirtualMachine(VM)requiredfortheLabactivities.
Pre-requisites
1. AWindows10computer
2. Azuresubscription:Ifyoudon'thaveanAzuresubscription,createaf reeaccountbefore
youbegin.
3. AnA
zureP
owerShells criptf ilen
amed
Initialize-Udacity.CYBERND##.LabVM#.ps1
o
btainedf romy ourU
dacity
classroom.
FollowthestepsbelowonyourWindows10computer.
Step0.PowerShellscriptexecutionpolicy
1. StartWindowsPowerShellasAdministrator.
SearchBar>Type‘PowerShell’>
right-clickandselect‘RunasAdministrator’
2. RunthefollowingcommandsinthePowerShellprompttosetandverifytheexecution
policy:
Set-ExecutionPolicy
RemoteSigned
-Force
Get-ExecutionPolicy
Exit
Step1.Implementation
1. DownloadtheI
nitialize-Udacity.CYBERND##.LabVM#.ps1
f ilef romt heU
dacity
classroom.Itw
illb
ed
ownloadeda sa Z ipf ile,s oy ouw
illh
avet oe xtractt hez ipf ilec ontents.
Note:Youwillreceivemultiple.
ps1
filesinthecourse.Beecarefulwiththenamesandfile
extensions.
2. Right-clickonthe.
ps1
fileandselectP
roperties
3. Ifyouseean“U
nblock”box,c hecktheboxtounblockthefile.Ifyoudon’tseetheUnblock
checkbox,youdonotneedtoperformanythinghere.The“Unblock”boxwilldisappear
afterusersgivepermissiontorunthefile.Thisisjustaone-timeprocess.
4. StartWindowsPowerShellasAdministrator,andn
avigatetothefolderwhereyouhave
the.
ps1
fileavailable.Werecommendhavingaseparatefolder,whereyoucanputall
your.
ps1
filesaltogether.
5. Changethefilepermissionsandrunthefileusingthecommandsbelow:
chmod
+x
Initialize-Udacity.CYBERND##.LabVM#.ps1
.\Initialize-Udacity.CYBERND##.LabVM#.ps1
Step2.DetailedScriptExecutionSteps
Thescriptperformsthefollowingactions:
1. Thescripti nstallstheAzurePowerShellmodule,ifnotalreadyexistent,e
nterYto
install.Itmaytake10mintoinstalltheAzurePowerShellmodule.Pleasebepatient.
2. Oncetheinstallationcompleted,pleaselogintoyourAzuresubscriptionandproceed
3. CreatesaResourceGroup:T
heUdacityLabresourcegroupisinitialized,thenpermission
requested.E
nterYt oproceed.Itmaytakeawhiletoconnect.
4. GrantstheUdacityAppaccesstotheresourcegroup:A
browserwillopenwiththe
permissiongrantingpage.Log-intoyourAzuresubscription,grantaccessbyclicking
‘Accept’,andclosethebrowser.
5. Pressakeytoconfirmcompletionofthepermissiongrantingoperationandproceed.
6. CreatesaVM:Atthisstage,thevirtualmachinecreationstarts.Itmaytakeafewminutes
tocompletethecreation.Pleasebepatient.Uponcompletion,thefollowingmessage
appears:
Important:Saveacopyofthetranscriptfilefortroubleshootingpurposesifrequired.
Step3.ConnecttoVMviaRDP
1. GobacktotheAzureportal,andchecktheR
esourceGroups.Youwillseethenewly
createdResourceGroup,asshownintheexamplesnapshotbelow:
TheUDACITY-CYBERND03-PROJECTresourcegroup
ResourcesintheUDACITY-CYBERND03-PROJECTresourcegroup
2. Navigatetothe AzureV
irtualMachinedashboard.ClickontheVMtowhomyouwantto
connectremotely.EnsurethattheVMisinrunningstate.YouwillneedtheP
ublicIP
addressofthatrunningVM.
3. InyourlocalWindows10computer,searchandopenthe“R
emotedesktopconnection”.
4. EnterthePublicIPaddressoftheVM,andclickC
onnect
5. Usetheu
sernamea
ndpasswordp
rovidedintheclassroomtologin.
Username:
cyberadmin
Password:
@UdacityLearning#1
Note:T
hecredentialsforCloudLabVMsaredifferent,andshowninsidetheCloudLabs
itself.
6. Youwillreceiveawarning.ClickY
estocontinue.
Congratulations,youhavesetupandconnectedtoyourlabVMviaRDP.
52.177.8.68
-
☑
Remote Desktop Connection
Tlee opace.
TN
0.107.97 טD
D:1 2.28 GB NTFS
Host Name:
Memory:
Tools-
Shortcut
CYBER-ND03-W10
1024 MB
OS Version:
Windows 10 Pro
User Name:
cyberadmin
Deployment Id:
824af78e-e2ab-4cdd-a863-316bdd61a7e1
Firefox
Internal IP:
Public IP:
Boot Time:
Free Space:
Type here to search
192.168.1.4
7/21/2021 6:38 AM
C:197.97 GB NTFS
D:1 2.28 GB NTFS
Host Name:
CYBER-ND03-W10
Memor
1024 MB
Windows 10 Pro
OS Version
☑
<
Type here to search
79%
29°C
Step4.Cleanup
IMPORTANT:AlwaysremembertoshutdownALLofthevirtualmachineswhennotinuseto
avoidcharges!
YoucanshutdowntheVMbyclickingtheP
owerbuttonand“ shutdown”insidetheVMorclick
onthe“ Stop”b
uttonontheVMoverviewpage.
ClickthePowericonandclick“shutdown”insidetheVM
MakesurethestatusisS
topped.