Export the specific Flow
azmgmt flow export -i|--id <id> -e|--environment <environment> -f|--format <format>Hey there @waldekmastykarz, can I give this one a go?
hmm - I may have spoken too soon.
It doesn't seem there's any easy to call API's available to implement the ZIP export. It might be possible to turn an export into a ZIP locally, but I'm not sure that'll be compatible with importing back in to the Flow interface...
Ignore my previous comment, after reverse engineering the Flow web UI, I think I'm able to replicate the process. Please assign this one to me.
Thanks for double-checking @mpowney! All yours!
When specifying the output format of ZIP, there are some additional values that are embedded in the exported package:
I'll add the above as optional arguments that are relevant when the output format is ZIP. The API calls generate a ZIP package successfully without them.
However, if the output format is specified as JSON, and any of these arguments are specified, the command will fail validation.
Good idea 馃憤
Hey @waldekmastykarz - I'm pondering the telemetry reporting for this command. Does the getTelemetryProperties() method need to be implemented here for it to provide telemetry details?
I notice in the azmgmt flow get command, there's no getTelemetryProperties() implementation...
It would be interesting to track the format that people use to export the Flow to. Other than that, we have no use for environment or flow ID.