Azure / azure-iot-remote-monitoring

Azure IoT Remote Monitoring preconfigured solution
Other
249 stars 221 forks source link

Error when redeploy solution #432

Closed iamgyt closed 3 years ago

iamgyt commented 7 years ago

When redeploy a solution, it reports error. I did a quick check, the latest EventHub APIVersion doesn't have this property anymore: ehSku=$($eventhubSku.Properties.MessagingSku)

Error Message:

New-AzureRmResourceGroupDeployment : 3:14:30 PM - Error: Code=InvalidDeploymentParameterValue; Message=The value of deployment parameter 'ehSku' is null. Please specify the value or use the parameter reference. See https://aka.ms/arm-deploy/#parameter-file for details. At C:\000Projects\azure-iot-remote-monitoring-master\Common\Deployment\PrepareIoTSample.ps1:212 char:11

malindaA commented 7 years ago

Having Same Issue.Did you find any solution?

malindaA commented 7 years ago

I fixed this by assigning "ehsku" to 1 mannualy in PrepareIoTSample.ps1

if (ResourceObjectExists $suitename $eventhubName Microsoft.Eventhub/namespaces)
{
    $eventhubSku = GetResourceObject $suitename $eventhubName Microsoft.Eventhub/namespaces
    $params += @{ehSku=1}
iamgyt commented 7 years ago

you can fix it like that @malindaA, or append "-ApiVersion 2015-08-01" to the line above. But actually the EventHub template has been changed, so it would be the template file itself need to be fixed, EventHub doesn't have a property named MessagingSku anymore.

ankitscribbles commented 3 years ago

Note: As of December 10th 2020, Remote Monitoring solution accelerator is no longer supported. All supporting repositories have been archived.