Open stawen opened 3 years ago
Thank you for such a detailed issue and investigation!
Indeed, we are not sending any body because the API spec defines no body parameters.
It seems like we behave similarly to the Azure SDK here, which is always our first comparison.
We could send an empty body for such cases. However, a quick check shows that there are several dozens of resources without a body parameter - we would need to test how they behave for empty body vs. nil body.
@mikhailshilkov hi, for information, i have tested with azure-native, i have the same issue.
I'm having the same problem with the same site extension. Would it be possible to add a property to the auto-generated code that would allow us to either add the body or not and thus avoid possibly breaking other extensions?
FYI I've opened up an issue on the Azure SDK project for this as well since it is also broken.
a quick check shows that there are several dozens of resources without a body parameter
I'm fairly certain that a PUT operation is always supposed to have a body:
Hey guys,
This realistically is a server / documentation issue, probably not an Azure SDK issue (which is probably why it's being ignored by MS?). I can confirm that sending {}
in the PUT
command successfully creates the WebAppSiteExtension
.
@mikhailshilkov the complexities and risks of going against the documentation understandable. If only MS's API's had a little more resilience we wouldn't be in this situation where there's no movement from any side, and everyone suffers.
hi,
With Azure nextGen, I build a windows App Service Plan. and webapp, I want to activate an extension (here dynatrace, same problem with others). All resources are created correctly unless extension
I've got this error
I test with an ARM template and it worked. I based my pulumi code on the ARM template.
Steps to Reproduce
Pulumi code
Just
WebAppSiteExtension
doesn't workTemplate ARM that work
In this ARM, i create only extension on previously resource created
AZURE API REST
We see this issues https://github.com/Azure/azure-rest-api-specs/issues/2819
so we test it and voila, if you leave your body empty, it doesn't work,
but if you put {}, it's work !
if this can help you to solved it ;)
Context (Environment)
Azure France Central @pulumi/azure@3.46.0 @pulumi/azure-nextgen@0.6.0 @pulumi/pulumi@2.20.0 @types/node@10.17.51