Register sql server to azure arc
Before starting our next teams session, I would like to confirm if you have fully meet the Prerequisites:
-
How to assign Azure Connected SQL Server Onboarding roles in azure portal:
https://learn.microsoft.com/en-us/azure/role-based-access-control/role-assignments-portal?tabs=current -
How to Assign Microsoft.AzureArcData under your subscription :
Subscriptions->subscription name->settings-> Resource providers->search arc->make sure the status is registered
If Microsoft.AzureArcData is not registered, please follow below steps to register resource provider:
# Run with powershell with administrator
# install az.resource module
PS C:\WINDOWS\system32> Install-Module -Name Az.Resources -RequiredVersion 2.5.0
# connect to your azure account
PS C:\WINDOWS\system32> Connect-AzAccount
# register the resource provider
PS C:\Users\hubo> Register-AzResourceProvider -ProviderNamespace Microsoft.AzureArcData
# Check register status
PS C:\Users\hubo> Get-AzResourceProvider -ProviderNamespace Microsoft.AzureArcData
After above steps, should be fully prepared to register sql server to azure arc.
https://learn.microsoft.com/en-us/sql/sql-server/azure-arc/connect?view=sql-server-ver16&tabs=azure%2Cwindows
本文来自博客园,作者:Jas0n0ss,转载请注明原文链接:https://www.cnblogs.com/Jas0n0ss/p/16999577.html