Перейти до основного вмісту
Answer confirmed
Question

You have an Azure subscription and a computer named Computer1 that runs Windows 11.

From the Azure portal, you deploy a virtual machine named VM1 that runs Windows Server. You configure VM1 to use the default settings.

You need to ensure that you can connect to VM1 by using PowerShell remoting.

Which cmdlet should you run, and what should you use to run the cmdlet? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Proposed answer

Suggested answer

Зображення видалено.

Correct answer

Suggested answer is incorrect

  1. Azure Cloud Shell
  2. Enable-AzVMPSRemoting

 

 

Comments

 

rknichols01

Highly Voted 10 months, 2 weeks ago 

Azure Cloud Shell Enable-AzVMPSRemoting. https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-connecting-to-vms-with-azure-psremoting/ba-p/428403

upvoted 5 times 

formacaotismic

Most Recent 2 days, 20 hours ago 

Forma de garantir que se pode conectar à VM1 usando PowerShell remoting é utilizando o Azure Cloud Shell com o comando Enable-AzVMPSRemoting. Run from: Azure Cloud Shell Cmdlet: Enable-AzVMPSRemoting Essa abordagem é prática, especialmente porque o Azure Cloud Shell já vem com os módulos necessários pré-instalados, facilitando a execução do comando sem configurações adicionais.

upvoted 1 times 

Ksk08

2 weeks, 5 days ago 

Run from: Azure Cloud Shell. Cmdlet: Enable-AzVMPSRemoting.

upvoted 1 times 

Ksk08

3 weeks, 6 days ago 

Set-VMProcessor VM1 -ExposeVirtualizationExtensions $true

upvoted 1 times 

Ksk08

3 weeks, 6 days ago 

Sorry please delete, accidentally paste here

upvoted 1 times 

Kuikz

7 months, 2 weeks ago 

Box 1: Azure Cloud Shell Box 2: Enable-AzVMPSRemoting There is no command Enable-PSRemoting in Cloud Shell. This command is local to Windows and is needed only on non server Windows

upvoted 4 times 

RickySmith

10 months, 3 weeks ago 

Azure Cloud Shell - https://learn.microsoft.com/en-us/azure/cloud-shell/overview (Azure Cloud shell allows you to options of Bash and powershell.) Enable-AZVMPSRemoting - https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-connecting-to-vms-with-azure-psremoting/ba-p/428403

upvoted 4 times 

Payday123

1 year ago 

Enable-AzVMPSRemoting is a part of PSCloudShellUtility module Description says: "Enable all aspects of PowerShell remoting on the given target (NSG Rules, Target WinRM/SSH configs"

upvoted 1 times 

NazerRazer

1 year, 1 month ago 

Run from: Azure Cloud Shell Cmdlet: Enable-PSRemoting -Force Here's the explanation: Run from Azure Cloud Shell: You typically run configuration commands like this from an environment that has access to your Azure resources. Azure Cloud Shell is a web-based shell environment that is directly connected to your Azure subscription, making it a suitable place to configure Azure VMs. Cmdlet: Enable-PSRemoting -Force: This PowerShell cmdlet enables PowerShell remoting on a Windows machine, allowing you to use PowerShell remoting to connect to the VM from another machine (in this case, Computer1). The -Force flag is used to ensure that remoting is enabled even if it's disabled by default.

upvoted 4 times 

Payday123

1 year ago 

There is no command Enable-PSRemoting in Cloud Shell. This command is local to Windows and is needed only on non server Windows

upvoted 2 times 

argjend

1 year, 1 month ago 

So I think is Run from: A powershell session on VM1 Cmdlet: Enable-PsRemoting -Force Because windows11 have powershell but not azure powershell libraries (wich means you can use enter-pssession and not enter-azvm) And you can't use the command enable-azvmpsremoting from vm1 (this command is used on cloud shell) This link may interest you: https://techcommunity.microsoft.com/t5/itops-talk-blog/powershell-basics-connecting-to-vms-with-azure-psremoting/ba-p/428403 (I am telling you my opinion, don't take my answer as right without having made your considerations please)

upvoted 2 times 

Payday123

1 year ago 

PSRemoting is enabled by default on Windows Server. No need to enable it

upvoted 1 times 

FM221228

1 year, 1 month ago 

Wrong! Since computer 1 runs a default Windows 11, Azure PowerShell is not installed. You must use the Cloud Shell.

upvoted 3 times