Closed bennage closed 9 years ago
The scripts cannot be completely replaced by ARM yet. At least, I don't think that it can be. The templates to use are here: https://github.com/mspnp/iot-journey/tree/bennage/using-arm/setup/LongTermStorage-StreamAnalytics
We'll need to do the following:
Create the EventHub (with namespace and consumer group) using a template
New-AzureResourceGroupDeployment -ResourceGroupName SomeResourceGroup -TemplateFile .\setup\LongTermStorage-StreamAnalytics\deploy-eventhub.json -TemplateParameterObject @{ namespaceName = "mynamespace"; eventHubName="myhub"; consumerGroupName="mygroup" }
SharedAccessAuthorizationRule
New-AzureResourceGroupDeployment
I just realized that these templates do not set the Throughput Units on the Service Bus namespace. I'm not sure if we can even do that...
The scripts cannot be completely replaced by ARM yet. At least, I don't think that it can be. The templates to use are here: https://github.com/mspnp/iot-journey/tree/bennage/using-arm/setup/LongTermStorage-StreamAnalytics
We'll need to do the following:
Create the EventHub (with namespace and consumer group) using a template
New-AzureResourceGroupDeployment -ResourceGroupName SomeResourceGroup -TemplateFile .\setup\LongTermStorage-StreamAnalytics\deploy-eventhub.json -TemplateParameterObject @{ namespaceName = "mynamespace"; eventHubName="myhub"; consumerGroupName="mygroup" }
SharedAccessAuthorizationRule
in the ASM imperative style. Very close to the code that we currently have in AzureServiceBus.pm1.New-AzureResourceGroupDeployment
, passing in the shared access name/key.