Skip to content

Instantly share code, notes, and snippets.

@bjornpeters
Created June 28, 2021 20:45
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/bef5184af1b0e41679a9691334d00f9b to your computer and use it in GitHub Desktop.
Save bjornpeters/bef5184af1b0e41679a9691334d00f9b to your computer and use it in GitHub Desktop.
# Connect with the Azure service
Connect-AzAccount
# Get available subscriptions within the tenant
Get-AzSubscription
# Set the context to the selected subscription
Set-AzContext -SubscriptionId 'subscription ID you want to use'
# Register the required resource providers for Azure Arc
Register-AzResourceProvider -ProviderNamespace Microsoft.HybridCompute
Register-AzResourceProvider -ProviderNamespace Microsoft.GuestConfiguration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment