https://pulumi.com logo
Title
r

rhythmic-finland-36256

06/04/2020, 12:05 PM
Upgrading an IoTHub from
Basic
to
Standard
SKU fails with strange error message. Deleting and recreating with the same code worked though.
Is changing the SKU from
B1
to
S1
an operation that should result in a create-delete-replacement instead of an in-place update?
Diagnostics:
  azure:iot:IoTHub (streamm-dev-iot):
    error: 1 error occurred:
    	* updating urn:pulumi:dev::streamm::azure:iot/ioTHub:IoTHub::streamm-dev-iot: Error creating/updating IotHub "streamm-dev-iot7a977d7e" (Resource Group "streamm-deva66a76f0"): devices.IotHubResourceClient#CreateOrUpdate: Failure sending request: StatusCode=404 -- Original Error: Code="Failed" Message="The async operation failed." InnerError={"unmarshalError":"json: cannot unmarshal number into Go struct field serviceError2.code of type string"} AdditionalInfo=[{"code":404010,"httpStatusCode":"NotFound","message":"Default eventHub endpoint 'operationsMonitoringEvents' is missing from the EventHub Endpoints. If you contact a support representative please include this correlation identifier: d57518f2-0053-4199-aecd-0b3fa0627b0b, timestamp: 2020-06-03 14:37:19Z, errorcode: IH404010."}]
This was not a one-time error but reproducible. Removing the iothub in one run and creating it afterwards worked though.
Code sample (from inside a
ComponentResource
)
const iotHub = new azure.iot.IoTHub(`${name}-iot`, {
    resourceGroupName: args.resourceGroup.name,
    sku: {
        capacity: 1,
        name: "S1",
    },
    fallbackRoute: {
        enabled: true,
        endpointNames: ["events"],
    }
}, {additionalSecretOutputs: ["sharedAccessPolicies"]});