Azure / connectthedots

Connect tiny devices to Microsoft Azure services to build IoT solutions
http://connectthedots.io
MIT License
399 stars 274 forks source link

MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.StreamAnalytics' #221

Closed pietrobr closed 8 years ago

pietrobr commented 8 years ago

If I run the "AzurePrep" Project I get this error:

MissingSubscriptionRegistration: The subscription is not registered to use namespace 'Microsoft.StreamAnalytics'. when the output console is "Creating Alert Stream Analytics Jobs..

This happens in both Visual Studio 2013 and Visual Studio 2015. I'm using Azure Tool v 2.7 on MSDN Subscription

pietrobr commented 8 years ago

I find out that if I create a test Stream Analytics job from the Azure portal, this operation register the missing namespace (provider?) in the subscription. After that the AzurePrep code works as expected with no errors. Probably the code could be enhanced registering the provider if not already there using REST API.

resolutedreamer commented 8 years ago

I am also having this issue. I do not understand how it was solved. How do i "create a test Stream Analytics job from the Azure portal"

sudheer594 commented 8 years ago

make sure your subscribtion is registered to 'Microsoft.StreamAnalytics'. In Azure CLI, run "azure provider list" to list all the providers and verify the status. To register "Microsoft.StreamAnalytics", run "azure provider register Microsoft.StreamAnalytics".

rodneyjoyce commented 5 years ago

Update for AZ: az provider register -n Microsoft.StreamAnalytics