Skip to content

Support dynamic expressions in custom data factory types #5157

@ezhong-msft

Description

@ezhong-msft

Related to hashicorp/terraform-provider-azurerm#31352

As per my comment there:

It seems that the Azure Go SDK is interpreting these data factory properties which are supposed to support both expressions and their base types as just their base types. Thus a marshaling error occurs as the provider tries to convert the expression object to a bool type.
I believe this applies to all fields in data factory resources which are supposed to support expressions (except string, which seems to have already addressed this issue). For reference:

// Note: The spec here is for string or object that resolves to a string API-side. Since Go is statically typed we need to use a raw object here or JSON processing will fail

A comment was left for the fix on the string type "We may need to update the other dfe- primitives in time, however, this is not essential for the AzureRM provider support today." so maybe now it is the time to update them?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions