azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

There is unexpected line break in outputs of az logic workflow show command with --output yaml option

Open ShingoHanai opened this issue 1 year ago • 4 comments

Describe the bug

In case of workflow contains compose action input expression "@greaterOrEquals(ticks(addSeconds(utcNow(), 5)) ,ticks(convertToUtc('2050-06-01T00:00:00', 'Tokyo Standard Time')))", result is like below.

  • command az logic workflow show --resource-group logicapps --name array --output yaml

  • part of unexpected line break

definition:
  $schema: https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#
  actions:
    Compose:
      inputs: '@greaterOrEquals(ticks(addSeconds(utcNow(), 5)) ,ticks(convertToUtc(''2050-06-01T00:00:00'',
        ''Tokyo Standard Time'')))'
      runAfter: {}
      type: Compose

My customer requires this unsxpected line break removal. Can we fix it or is it by design?

Related command

az logic workflow show --resource-group logicapps --name array --output yaml

Errors

No error happed, but result contains unexpected line break.

Issue script & Debug output

PS C:\Users\shhanai> az logic workflow show --resource-group logicapps --name array --output yaml accessControl: {} accessEndpoint: https://prod-08.japaneast.logic.azure.com:443/workflows/6f5374ff8da24c5d8c60703cac296f43 changedTime: '2025-07-29T06:43:17.3771708Z' createdTime: '2024-07-02T01:28:28.7045754Z' definition: $schema: https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json# actions: Compose: inputs: '@greaterOrEquals(ticks(addSeconds(utcNow(), 5)) ,ticks(convertToUtc(''2050-06-01T00:00:00'', ''Tokyo Standard Time'')))' runAfter: {} type: Compose contentVersion: 1.0.0.0 outputs: {} parameters: $connections: defaultValue: {} type: Object triggers: Recurrence: evaluatedRecurrence: frequency: Month interval: 3 recurrence: frequency: Month interval: 3 type: Recurrence endpointsConfiguration: connector: outgoingIpAddresses: - address: 13.73.21.230 - address: 13.71.153.19 - address: 13.78.108.0/28 - address: 40.79.189.64/27 - address: 20.89.11.48/28 - address: 20.89.11.64/27 - address: 20.89.163.17 - address: 20.89.163.9 workflow: accessEndpointIpAddresses: - address: 13.71.146.140 - address: 13.78.84.187 - address: 13.78.62.130 - address: 13.78.43.164 - address: 20.191.174.52 - address: 20.194.207.50 - address: 20.18.198.232 - address: 20.18.197.179 - address: 20.18.198.148 - address: 20.18.238.86 - address: 4.189.8.207 - address: 4.189.9.80 - address: 4.189.10.88 - address: 4.189.8.209 - address: 172.207.65.96 - address: 172.207.65.97 outgoingIpAddresses: - address: 13.71.158.3 - address: 13.73.4.207 - address: 13.71.158.120 - address: 13.78.18.168 - address: 13.78.35.229 - address: 13.78.42.223 - address: 13.78.21.155 - address: 13.78.20.232 - address: 20.191.172.255 - address: 20.46.187.174 - address: 20.194.206.98 - address: 20.194.205.189 - address: 20.18.198.224 - address: 20.18.197.177 - address: 20.18.198.141 - address: 20.18.238.83 - address: 4.189.14.67 - address: 4.189.8.211 - address: 4.189.9.135 - address: 4.189.8.208 - address: 20.210.69.32 - address: 20.210.69.33 id: /subscriptions/f50fbafe-e4aa-4976-8168-1a136a15849e/resourceGroups/logicapps/providers/Microsoft.Logic/workflows/array identity: principalId: 528d56c8-9e22-43b5-b53e-6822cf3eda3e tenantId: 16b3c013-d300-468d-ac64-7eda0820b6d3 type: SystemAssigned location: japaneast name: array parameters: $connections: value: {} provisioningState: Succeeded resourceGroup: logicapps state: Enabled tags: {} type: Microsoft.Logic/workflows version: 08584478354881066617

Expected behavior

Outputs doesn't include unexpected line break.

Environment Summary

PS C:\Users\shhanai> az version { "azure-cli": "2.76.0", "azure-cli-core": "2.76.0", "azure-cli-telemetry": "1.1.0", "extensions": { "graphservices": "1.0.0b1", "logic": "1.1.0" } }

Additional context

No response

ShingoHanai avatar Aug 22 '25 01:08 ShingoHanai

Thank you for opening this issue, we will look into it.

yonzhan avatar Aug 22 '25 01:08 yonzhan

@yonzhan Do you have any update?

ShingoHanai avatar Aug 27 '25 06:08 ShingoHanai

@yonzhan Thank you for checking this. It would be very helpful if you could provide any updates or insights regarding a possible workaround.

nobuko-yamada avatar Sep 02 '25 22:09 nobuko-yamada

Routed to Azure/azure-cli-extensions as #10032 (https://github.com/Azure/azure-cli-extensions/issues/10032) because this targets the logic extension, whose source lives in Azure/azure-cli-extensions.


Posted by agent-assist (autonomous bug-fix pipeline).

azclibot avatar Jun 23 '26 04:06 azclibot