I'm kind of new developing in Azure, I developed a logic app that works correctly and I need to import to an azure sql datawarehouse the version history and the run history of this logic app. I created an Analytics logs workspace and I activated the logs, the logs are correctly stored in a blobstorage.
I need to extract the run/version history of this logic app to feed a datawarehouse table but I'm facing two problems:
For the run history: How can I retrieve the information stored in a blobstorage? I tried to create an external table in my datawarehouse (like described here Can't CREATE EXTERNAL DATA SOURCE in SQL) but I get the following error when I tried to create the external source:
CREATE EXTERNAL DATA SOURCE BlobStorageDataSource WITH ( TYPE = BLOB_STORAGE, LOCATION = 'https://primarystoragedwh.table.core.windows.net/blobstoragedwh', CREDENTIAL = AzureBlobStorageCredential );
Msg 103010, Level 16, State 1, Line 4 Parse error at line: 4, column: 12: Incorrect syntax near 'BLOB_STORAGE'.
For the version history: Im trying to use a scrip task in SSIS to import the rest api data from (as described here https://docs.microsoft.com/en-us/rest/api/logic/workflowversions/list) but I dont know how to code to retrieve the data from the rest call.
Your thoughts and help are appreciated! Manuel.