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

Get incorrect api-version value for LogicApp Trigger CallbackUrl through powershell command

Open ToMakeSense opened this issue 8 years ago • 7 comments

Through powershell command Get-AzureRmLogicAppTriggerCallbackUrl, I will get an URL like: https://prod-50.westeurope.logic.azure.com:443/workflows/XXXXXXXXXXXXXX/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=XXXXXXXXXXXXX

but check it in the azure portal, the URL is: https://prod-50.westeurope.logic.azure.com:443/workflows/XXXXXXXXXXXXXX/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=XXXXXXXXXXXXX

That is to say, through powershell, the value of api-version is 2016-06-01, but the actual value is 2016-10-01 via azure portal

ToMakeSense avatar Aug 13 '18 02:08 ToMakeSense

@pankajsn @daviburg Can you take a look at this issue?

maddieclayton avatar Aug 13 '18 18:08 maddieclayton

Any feedback on this?

ToMakeSense avatar Aug 22 '18 07:08 ToMakeSense

Same issues still exists in AZ PowerShell 1.4.0 Get-AzLogicAppTriggerCallbackUrl

And I think the template version for logic app needs to be added( only version 2016-06-01 is listed in below links). Microsoft.Logic workflows template reference

Howerver, I found four versions up to now in other repository. azure-resource-manager-schemas image

I also have confusion on the version azure/azure-resource-manager-schemas#494

ToMakeSense avatar Mar 05 '19 08:03 ToMakeSense

@refortie Can you take a look at this issue?

maddieclayton avatar Mar 05 '19 18:03 maddieclayton

So I'm not sure what the issue is here. The version in the response for the callback URL is tied to the API version used to call the endpoint. So in the Portal the 2016-10-01 API version is being used, whereas the SDK/PowerShell cmdlet is using 2016-06-01 version.

refortie avatar Mar 05 '19 21:03 refortie

@refortie thanks for your reply. According to my cognition, after deployment, the logic app trigger callback url(the API version) should be the static whatever tools is used to get it.

ToMakeSense avatar Mar 07 '19 05:03 ToMakeSense

similar question https://github.com/MicrosoftDocs/azure-docs/issues/42939

ToMakeSense avatar Dec 06 '19 05:12 ToMakeSense