Skip to content

az synapse pipeline show does not return full json #20501

@ross-p-smith

Description

@ross-p-smith

I should be able to download the json of a pipeline and then use that very same json to create a pipeline

For instance if I run

artifact_json=$(az synapse ${artifact_type} show \
                --workspace-name "${SYNAPSE_WORKSPACE_NAME}" \
                --name ${artifact} \
                --output json)

I will be missing the top level "properties" key that contains "activities".

This means I cannot use this command

az synapse ${artifact_type} create --file "${artifact_json}" --name "${artifact_name}"\
                --workspace-name "${SYNAPSE_WORKSPACE_NAME}" "${args[@]}" -o json

you will get an error

  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/synapse/manual/operations/artifacts.py", line 80, in create_or_update_pipeline
    properties = PipelineResource.from_dict(definition_file['properties'])
KeyError: 'properties'

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions