boundless-airport-99052
12/07/2020, 12:54 PMterraform azurerm - v2.34.0
provider.
I downgraded to @pulumi/azure - v3.28.0
which uses terraform azurerm v2.33.0
according to https://github.com/pulumi/pulumi-azure/blob/master/CHANGELOG.md
But I still got the same error message
error: azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace resource 'log-f-stack-s-a-sb' has a problem: expected daily_quota_gb to be at least (0.000000), got -1.000000
The daily_quota_gb
property was not present before`terraform azurerm v2.34.0` so I wonder why I still got this error.
Terraform changelog: https://github.com/terraform-providers/terraform-provider-azurerm/releases/tag/v2.34.0
I can also confirm this with this commit which in only present in v2.34- support for theazurerm_log_analytics_workspace
property (#8861)daily_quota_gb
broad-dog-22463
12/07/2020, 12:59 PMif workspaceCapping := resp.WorkspaceCapping; workspaceCapping != nil {
d.Set("daily_quota_gb", resp.WorkspaceCapping.DailyQuotaGb)
} else {
d.Set("daily_quota_gb", utils.Float(-1))
}
boundless-airport-99052
12/07/2020, 1:00 PMbroad-dog-22463
12/07/2020, 1:00 PMboundless-airport-99052
12/07/2020, 1:01 PMbroad-dog-22463
12/07/2020, 1:01 PM"daily_quota_gb": {
Type: schema.TypeFloat,
Optional: true,
Default: -1.0,
DiffSuppressFunc: dailyQuotaGbDiffSuppressFunc,
ValidateFunc: validation.FloatAtLeast(0),
},
boundless-airport-99052
12/07/2020, 1:03 PMbroad-dog-22463
12/07/2020, 1:04 PMboundless-airport-99052
12/07/2020, 1:04 PMbroad-dog-22463
12/07/2020, 1:04 PMboundless-airport-99052
12/07/2020, 1:05 PMdaily_quota_gb
was not existing at allbroad-dog-22463
12/07/2020, 1:06 PMboundless-airport-99052
12/07/2020, 1:07 PMbroad-dog-22463
12/07/2020, 1:12 PMboundless-airport-99052
12/07/2020, 1:15 PMdailyQuotaGb
in the pulumi code. But this property is returned by azure - I try to add the ignoreChanges
property and I still got this error)@pulumi/azure v3.32.0
) with a new AnalyticsWorkspace resource. I was able to reproduce the error message.
Then I downgraded to @pulumi/azure v3.28.0
and I didn’t have the error anymore 👍
But on my real project, after having downgraded to @pulumi/azure v3.28.0
I still got the error 🤔
The only difference I see is that in my real project the AnalyticsWorkspace resource already exists.
Do you have any idea?broad-dog-22463
12/07/2020, 1:35 PMboundless-airport-99052
12/07/2020, 1:40 PM9
and got this:
I1207 14:37:59.165317 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: __defaults={[{dailyQuotaGb} {internetIngestionEnabled} {internetQueryEnabled} {location}]}
I1207 14:37:59.165358 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: dailyQuotaGb={-1}
I1207 14:37:59.165376 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: internetIngestionEnabled={true}
I1207 14:37:59.165390 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: internetQueryEnabled={true}
I1207 14:37:59.165403 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: location={francecentral}
I1207 14:37:59.165413 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: name={log-f-stack-s-a-sb-yh}
I1207 14:37:59.165439 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: resourceGroupName={rg-cloud-platform}
I1207 14:37:59.165465 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: retentionInDays={30}
I1207 14:37:59.165488 71348 rpc.go:247] Unmarshaling property for RPC[Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb).inputs]: sku={PerGB2018}
I1207 14:37:59.165509 71348 provider_plugin.go:574] Provider[azure, 0xc0013b7c80].Check(urn:pulumi:sandbox::foundations::maif:subscription$azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace::log-f-stack-s-a-sb) success: inputs=#9 failures=#1
I1207 14:37:59.165530 71348 eventsink.go:86] eventSink::Error(<{%reset%}>azure:operationalinsights/analyticsWorkspace:AnalyticsWorkspace resource 'log-f-stack-s-a-sb' has a problem: expected daily_quota_gb to be at least (0.000000), got -1.000000<{%reset%}>)
v2.28.0
of terraform-provider-azurerm
and no code mention daily_quota_gb
node_modules
folder, I grep for dailyQuotaGb
or `daily_quota_qb`and didn’t find anything neitherbroad-dog-22463
12/07/2020, 2:33 PMboundless-airport-99052
12/07/2020, 3:29 PM