Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
349 views
in Technique[技术] by (71.8m points)

Azure Monitor externaldata operator to query Blob storage using a Private Endpoint

When writing KQL in an Azure Monitor Workbook and using the externaldata operator to retrieve data from Blob storage is it possible to access the Blob storage through a Private Endpoint?

(externaldata (Title:string) [
    @"https://test.blob.core.windows.net/test/todos.json?...SAS.."
] with(format='multijson', ingestionMapping='[{"Column":"Title","Properties":{"Path":"$.title"}}]'))
question from:https://stackoverflow.com/questions/65910967/azure-monitor-externaldata-operator-to-query-blob-storage-using-a-private-endpoi

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

that specific behavior/syntax of using KQL + externaldata would be very specific to what you are querying. It might work if querying an ADX cluster, but might not work for querying log analytics, but really depends on the configuration/settins of the endpoint.

you could also possibly use the "Custom Endpoint" data source in workbooks, though then the auth starts to be the question.

If i use that specific url, https://test.blob.core.windows.net/test/todos.json in a custom provider, the browser rejects it saying that the blob does not support CORS:

Access to XMLHttpRequest at 'https://test.blob.core.windows.net/test/todos.json' from origin 'https://ms.portal.azure.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

if the specific url you want to call requires some kind of auth, that gets a little bit harder both from workbook and from the externaldata operator

if you can make a query work in the logs blade or ADX tools with the externaldata syntax, it should also work inside workbooks.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...