Closed iamgyt closed 3 years ago
Having Same Issue.Did you find any solution?
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}
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.
Note: As of December 10th 2020, Remote Monitoring solution accelerator is no longer supported. All supporting repositories have been archived.
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