Hello Amit Kumar
Thank you for the question!
Please be informed that even if your account holds the Owner role, the Storage Sync Service itself (which is an Azure resource) requires specific permissions for the storage account and possibly the resource group where the server is registered.
- Navigate to your Storage Sync Service in the Azure portal. Under "Settings," look for "Identity."
- Ensure "System assigned" managed identity is On. Go to "Access control (IAM)" for your Storage Sync Service. Click "Add" -> "Add role assignment."
- Search for and assign the following roles to your Storage Sync Service's managed identity:
Storage Sync Contributor (or "Contributor" if Storage Sync Contributor isn't available) on the storage account you are trying to sync with. Potentially "Contributor" or "Storage Sync Contributor" on the resource group where your Azure Arc-enabled server and Storage Sync Service reside.
While you have Owner, the account used to run the registration command on the AWS server also needs specific permissions. Ensure the account you are using to run the azcmagent connect
(or equivalent) command on the AWS machine has Azure Connected Machine Onboarding role OR Contributor role on the resource group where you are registering the machine. Local administrator/root privileges on the AWS machine itself to install and configure the agent.
- In the Azure portal, go to your subscription -> "Resource providers" and ensure
Microsoft.HybridCompute
,Microsoft.GuestConfiguration
,Microsoft.HybridConnectivity
, andMicrosoft.StorageSync
are all registered. If not, register them.
References:
- https://learn.microsoft.com/en-us/troubleshoot/azure/azure-storage/files/file-sync/file-sync-troubleshoot-installation
- https://learn.microsoft.com/en-us/azure/azure-arc/servers/troubleshoot-vm-extensions
Hope the above answer helps! Please let us know do you have any further queries.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.