Closed JRo-connyun closed 2 years ago
Hi @JRo-connyun thank you for reporting
The Open API spec upstream seems to be wrong here, I filed https://github.com/Azure/azure-rest-api-specs/issues/14874
Meanwhile, we should re-evaluate whether such cases should lead to a panic. I filed https://github.com/pulumi/pulumi/issues/7329 to track that.
Hi @mikhailshilkov,
thanks for the quick response and the links to the upstream tickets! We will follow up on this.
The underlying issue in the .NET SDK was fixed in pulumi 3.17.0 and shipped in azure-native 1.45.0. Even if data types don't match, there will be no exception thrown by Pulumi. I'll go ahead and close this.
Creating an Azure Workbook fails on
pulumi up
, including subsequent calls topulumi up
. The workaround described in https://github.com/pulumi/pulumi-azure-native/issues/876#issuecomment-848713884 resolves the problem client side, but seems unsuited for deployment automation.Steps to reproduce
pulumi login azblob://<container-url>
pulumi
project from Azure-C# template withpulumi new azure-csharp
class MyStack : Stack { public MyStack() { var resourceGroup = new ResourceGroup("myResourceGroup", new ResourceGroupArgs { ResourceGroupName = "my-resource-group" }); var myWorkbook = new Workbook("myWorkbook", new WorkbookArgs { Category = "workbook", DisplayName = "My workbook", Kind = "shared", ResourceGroupName = resourceGroup.Name, ResourceName = "c0deea5e-3344-40f2-96f8-6f8e1c3b5722", SerializedData = "{\"version\":\"Notebook/1.0\",\"items\":[{\"type\":1,\"content\":{\"json\":\"Hello, World!\"},\"name\":\"text - 0\"}],\"isLocked\":true,\"fallbackResourceIds\":[\"Azure Monitor\"]}", SourceId = "azure monitor", Type = "microsoft.insights/workbooks" } ); } }