Skip to content

Instantly share code, notes, and snippets.

@bjornpeters
Created June 28, 2021 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjornpeters/df01de36de191c07905b21af7e99f170 to your computer and use it in GitHub Desktop.
Save bjornpeters/df01de36de191c07905b21af7e99f170 to your computer and use it in GitHub Desktop.
# Install the required module just to be sure
Install-Module Az.ConnectedMachine
# Create a resource group in the selected subscription
New-AzResourceGroup -Name 'azure-arc' -Location 'West Europe'
# Download the agent and deploy the machine in the resource group
Connect-AzConnectedMachine -ResourceGroupName 'azure-arc' -Name 'hostname of your machine' -Location 'West Europe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment