Microsoft Store for Business not Syncing with SCCM console.
Question
I followed the below article to establish the connection. Now it shows the Sync status as failed.
SCCM Sync With MSfB Microsoft Store For Business | ConfigMgr How To Manage Devices (anoopcnair.com)
Here is the error message from WsfbSyncWorker.log file. Not sure what is wrong here. Please help.
Unable to read encrypted registry value ‘SOFTWAREMicrosoftSMSComponentsSMS_CLOUDCONNECTION’ from key ‘WSfBClientSecretKey’
System.IO.IOException: This security ID may not be assigned as the owner of this object.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.CreateDirectory(String path, DirectorySecurity directorySecurity)
at Microsoft.ConfigurationManagement.ApplicationManagement.Wsfb.Sync.WsfbDownloader.InitializeRootContentLocation()
at Microsoft.ConfigurationManagement.ApplicationManagement.Wsfb.Sync.WsfbAadHttpsFactory.CreateDownloader(String tenant, String clientId, SecureString clientSecret, String rootContentLocation)
at Microsoft.ConfigurationManagement.ApplicationManagement.Wsfb.Sync.SyncWorker.StartSync()
Answers ( 9 )
I agree with Rajul! Can you try that ?
Yes. I deleted MSfB Azure Service and created another one again today. I also created a new webapp. I uploaded a screenshot of this.
I attached some screenshots to my original question. As per your documentation “ConfigMgr Settings to Connect Microsoft Store for Business” section went very well and “MSfB Side Configuration” also went as per the article.
In “Sync from Microsoft Store for Business” section, i clicked Sync and the status showed as failed. Not sure what else to look for. Please suggest.
I think it’s better to remove and redo as the site is unable to fetch the client secret key from registry. without the client secret key, it won’t be able to establish a connection.
Rahul, The registry key is empty.
Did you try to remove and add back?
I did and there is no change. It still failed. Please let me know if there are any other things that i need to lookout for. Thank you very much for your help.
I’m out of ideas. It’s worth raising a ticket with Microsoft or get a consultant in to resolve the issue
Can you repro the issue in the test environment if you have one?
Can you see the apps are added to the business store? as we explained in
https://www.anoopcnair.com/add-microsoft-store-application-to-configmgr-sccm/
you can see the newly added app listed
https://businessstore.microsoft.com/en-us/manage/inventory/apps-software
I don’t see anything specific in the log file snippet above