Troubleshoot Cloud Management Gateway Error: Task [CreateDeployment for service (CMG NAME)] has failed
by Ginu
Issue: Cloud Management Gateway deployment failing with error in CloudMgr.log
‘The subscription is not registered to use namespace ‘Microsoft.ClassicCompute’
Root Cause: The Microsoft.ClassicCompute & Microsoft.Storage resource providers are not registered within the Azure subscription.
It is clearly stated in CloudMgr.log for missing resource providers. Newly registered Azure Subscriptions doesn’t have this resource provider registered by default, so we need to register in Azure.
CloudMgr.log
ERROR: Resource Manager – Deployment operation details: {“value”:[{“id”:”/subscriptions/d130e3f8-f7c8-4d54-9385-cf3e20ce757e/resourceGroups/ginucmg/providers/Microsoft.Resources/deployments/CreateCloudServiceaefc4b6d-4272-46f1-9358-8cfa5fa4c324/operations/878E1DEDF179AEA8″,”operationId”:”878E1DEDF179AEA8″,”properties”:{“provisioningOperation”:”Create”,”provisioningState”:”Failed”,”timestamp”:”2020-05-03T13:29:15.0136857Z”,”duration”:”PT0.0653837S”,”trackingId”:”4ba64f3b-5ee6-475d-847c-e876f47eae56″,”statusCode”:”Conflict”,”statusMessage”:{“error”:{“code”:”MissingSubscriptionRegistration”,”message”:“The subscription is not registered to use namespace ‘Microsoft.ClassicCompute’. See https://aka.ms/rps-not-found for how to register subscriptions.”,”details”:[{“code”:”MissingSubscriptionRegistration”,”target”:”Microsoft.ClassicCompute”,”message”:”The subscription is not registered to use namespace ‘Microsoft.ClassicCompute’. See https://aka.ms/rps-not-found for how to register subscriptions.”}]}},”targetResource”:{“id”:”/subscriptions/d130e3f8-f7c8-4d54-9385-cf3e20ce757e/resourceGroups/ginucmg/providers/Microsoft.ClassicCompute/domainNames/ginucmg“,”resourceType”:“Microsoft.ClassicCompute/domainNames”,”resourceName”:”ginucmg”}}}]}
- Login to Azure Portal. Navigate to All Services -> Subscriptions

- Select the Subscription used for deploying Cloud Management Gateway.
- Click on “Resource Providers” under Settings and find “Microsoft.ClassicCompute” Provider and Click on Register.
- Similarly Register “Microsoft.Storage” Provider.
- Within few minutes, you will find both registered.
