am i missing something with the `contentType` prop...
# azure
n
am i missing something with the
contentType
property? does a
StringAsset
have to be an octet stream?
t
I don’t think this is related to the
contentType
. Do you get this error during preview, update, or refresh?
n
both
preview
and
update
, before the changes are even generated. I removed the
contentType
so that it would default to octet-stream which allowed the preview to generate but then ran into the same error on an actual update
here is the stack trace
Copy code
error: Running program '/Users/blah/source/blah/unicode/infra' failed with an unhandled exception:
    Error: Invalid asset encountered when unmarshaling resource property
        at deserializeProperty (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:437:31)
        at deserializeProperty (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:506:23)
        at deserializeProperty (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:463:32)
        at Object.deserializeProperties (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/rpc.js:126:24)
        at /Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:524:43
        at Generator.next (<anonymous>)
        at /Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:21:71
        at new Promise (<anonymous>)
        at __awaiter (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:17:12)
        at resolveOutputs (/Users/blah/source/blah/unicode/infra/node_modules/@pulumi/azure-native/node_modules/@pulumi/pulumi/runtime/resource.js:519:12)
    error: update failed
t
Could you open an issue for that?
n
looks like using a
FileAsset
worked. I will open an issue.