An Azure machine learning service for building and deploying models.
Hello @Mustapha Yussif
As the next troubleshooting step for the Credential Service / 404 NotFound error you're seeing, please try the following sequence. This follows the process outlined in Microsoft's documentation, Change storage account access keys – Azure Machine Learning.
Step 1: Regenerate the storage account access keys
In the Azure Portal, go to your storage account → Access keys → regenerate key1 and/or key2 (or use the Azure CLI/PowerShell if you prefer). Save the new key value somewhere secure — you'll need it if you plan to re-register any datastores later.
Step 2: Sync the new keys to the Azure ML workspace
Normally, the Azure Machine Learning workspace automatically synchronizes to the new key and begins using it within about an hour. Since we want this applied immediately, please force the sync manually:
- Sign in to the Azure subscription that contains the workspace using the Azure CLI, and confirm (via
az account showor similar) that the active subscription is the same one hosting the Azure ML workspace. - Run the sync command:
az ml workspace sync-keys -n myworkspace -g myresourcegroup
Replace myworkspace with your actual Azure ML workspace name, and myresourcegroup with the resource group that contains it.
- If you get an error saying the
mlextension isn't installed, install it first withaz extension add -n ml, then re-run the sync-keys command. - This command automatically syncs the new storage account keys to the workspace.
Step 3: Re-register any affected datastores (if applicable)
If the storage account is also used as a registered datastore (not just for workspace-level storage like logs, models, and snapshots), you'll also need to re-register the datastore(s) that use this storage account, either through the SDK or Azure ML studio. Updating only the workspace key or only the datastore credentials — but not both — can leave things in an inconsistent state and cause further errors, so please make sure both are updated together.
Step 4: Retry switching the storage access mode to Identity
Once the key sync (and any datastore re-registration) is confirmed complete, please retry changing the workspace storage access mode from AccountKey to Identity.
Thanks,
Manish.