sparse-intern-71089
03/07/2021, 10:58 PMtall-librarian-49374
03/08/2021, 7:02 AMnew Dictionary<string, object>...
powerful-football-81694
03/08/2021, 9:40 AMInput<T>
or should the values be resolved before @tall-librarian-49374?powerful-football-81694
03/08/2021, 9:49 AMDiagnostics:
azure-native:resources:Deployment (hostname-binding-template):
error: azure-native:resources:Deployment resource 'hostname-binding-template' has a problem: 'properties.template' should be of type '' but got a string
powerful-football-81694
03/08/2021, 10:25 AMSystem.Text.Json.JsonDocument
and JObject
but neither works.
Diagnostics:
pulumi:pulumi:Stack (SvcDownload-dev):
error: Running program '/Users/danielrosenberg/Git/OrgFlow/SvcDownload/infra/bin/Debug/netcoreapp3.1/OrgFlow.Download.Pulumi.dll' failed with an unhandled exception:
System.InvalidOperationException: System.Text.Json.JsonDocument is not a supported argument type.
resource:hostname-binding-template[azure-native:resources:Deployment].properties.id.template.id
tall-librarian-49374
03/08/2021, 10:44 AMtall-librarian-49374
03/08/2021, 10:44 AMpowerful-football-81694
03/08/2021, 11:52 AMpowerful-football-81694
03/08/2021, 11:52 AMpowerful-football-81694
03/08/2021, 11:53 AMpowerful-football-81694
03/08/2021, 11:56 AMtall-librarian-49374
03/08/2021, 11:57 AMpowerful-football-81694
03/08/2021, 12:07 PMpowerful-football-81694
03/08/2021, 12:39 PM"sku": "Dynamic",
"skuCode": "Y1",
into this:
"sku": {
"value": "Dynamic"
},
"skuCode": {
"value": "Y1"
},
To match what ARM expects.
I think it would be a huge improvement if the new provider did this for you (like the old one did).powerful-football-81694
03/08/2021, 12:41 PMpowerful-football-81694
03/08/2021, 12:42 PMDiagnostics:
azure-native:resources:Deployment (hostname-binding-template):
error: Code="InvalidDeployment" Message="The 'location' property is not allowed for a deployment at resource group scope. Please see <https://aka.ms/deploy-to-subscription> for usage details."
I’m not specifying the “location” property anywhere, neither in the template JSON nor in the resource properties.powerful-football-81694
03/08/2021, 12:43 PMtall-librarian-49374
03/08/2021, 12:51 PMI think it would be a huge improvement if the new provider did this for you (like the old one did).This is unlikely for now. Our current approach is staying true to the specs (even if they are sub-optimal).
powerful-football-81694
03/08/2021, 12:54 PMOur current approach is staying true to the specsI can appreciate that. A workaround is not too difficult, and the need for templated deployments should be almost zero with the new provider anyway.
tall-librarian-49374
03/08/2021, 12:54 PMAny idea how to get around that one?Ouch, that’s not good. Could you try setting
location
to null in your code?powerful-football-81694
03/08/2021, 12:54 PMDeploymentArgs
object you mean, or in the template JSON?tall-librarian-49374
03/08/2021, 12:54 PMpowerful-football-81694
03/08/2021, 12:55 PMtall-librarian-49374
03/08/2021, 12:56 PMtall-librarian-49374
03/08/2021, 12:59 PMpowerful-football-81694
03/08/2021, 12:59 PMpowerful-football-81694
03/08/2021, 1:00 PMtall-librarian-49374
03/08/2021, 2:51 PMpowerful-football-81694
03/08/2021, 3:31 PMtall-librarian-49374
03/08/2021, 3:40 PMpowerful-football-81694
03/08/2021, 4:00 PM