Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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