You are setting up a Windows VM on Compute Engine and want to make sure you can log in to the VM via RDP. What should you do?
A.
After the VM has been created, use your Google Account credentials to log in into the VM.
B.
After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
C.
When creating the VM, add metadata to the instance using 'windows-password' as the key and a password as the value.
D.
After the VM has been created, download the JSON private key for the default Compute Engine service account. Use the credentials in the JSON file to log in to the VM.
Correct Answer is B.
B. After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
https://cloud.google.com/sdk/gcloud/reference/beta/compute/reset-windows-password
did you even look at the link you provide ? it clearly say gcloud beta compute reset-windows-password my-instance and not gcloud compute reset-windows-password. D is correct - https://cloud.google.com/iam/docs/creating-managing-service-account-keys
Oh yes? Then what about this link (for non-beta command)?
https://cloud.google.com/sdk/gcloud/reference/compute/reset-windows-password
"If the Windows account does not exist, this command will cause the account to be created and the password for that new account will be returned."
The answer is obviously B. Just test it and it'll become very clear
Yes! "If the Windows account does not exist, this command will cause the account to be created and the password for that new account will be returned."
Correct answer is B.
gcloud beta compute reset-windows-password allows a user to reset and retrieve a password for a Windows virtual machine instance. If the Windows account does not exist, this command will cause the account to be created and the password for that new account will be returned.
CORRECT:
Answer B. After the VM has been created, use gcloud compute reset-windows-password to retrieve the login credentials for the VM.
INCORRECT:
Answer A is not correct because Google Account credentials cannot be used to log in to Windows VMs.
Answer C is not correct because metadata can be used to specify some settings for a VM, but the 'windows-password' metadata key is not used for specifying the login password for a Windows VM.
Answer D is not correct because the JSON private key for the default Compute Engine service account is not used for logging in to a Windows VM.
after creating Windows VM on COmpute Engine it has a local user account as well. This acct is used to login to the VM via RDP. If you forget the password you can use gcloud compute reset-windows-password to reset it. This command generates a new password and sets it for the user account on the VM.
Option B is correct. After creating a Windows VM instance on Compute Engine, you need to use the gcloud compute reset-windows-password command to retrieve the login credentials for the VM. This command generates a new Windows password and displays it in the output of the command. You can then use this password to log in to the VM via RDP.
Option A is incorrect because logging in to the VM using your Google Account credentials is not a supported method for Windows VM instances.
Option C is also incorrect because 'windows-password' is not a recognized metadata key for Windows VM instances.
Option D is incorrect because you cannot use the JSON private key for the default Compute Engine service account to log in to a Windows VM instance via RDP.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
John_Iam
Highly Voted 4 years, 3 months agodan80
4 years, 2 months agolxgywil
3 years, 3 months agodan80
4 years, 2 months agoKerolesKhalil
1 year, 2 months agoKerolesKhalil
1 year, 2 months agovoler
4 years, 2 months agoragu123
4 years agoBuruguduystunstugudunstuy
Highly Voted 1 year, 6 months agoSakshi1221
Most Recent 8 months, 3 weeks agoBAofBK
10 months agodataSoftNinja
10 months agolagx
6 months, 1 week agoCaptain1212
1 year agosakdip66
1 year, 4 months agoPartha117
1 year, 5 months agosmanoj85
1 year, 5 months agocslince
1 year, 9 months agoale_brd_111
1 year, 11 months agoAzureDP900
2 years, 2 months agoharoldbenites
2 years, 3 months agoHimadhar1997
2 years, 3 months agoHarbeeb
2 years, 3 months agodinesh198728
2 years, 5 months agoluciorifa
2 years, 6 months ago