Forum Discussion
OMS Log Analytics query Function/alias creation via ARM template
- Jan 30, 2019
Hi,
For creating function you actually use the saved searches API.
https://docs.microsoft.com/en-us/rest/api/loganalytics/savedsearches/createorupdate
There is a slight change in the properties of the call.
"properties": { "category": " Saved Search Test Category", "displayName": "Create or Update Saved Search Test", "query": "* | measure Count() by Computer", "FunctionAlias" : "AllComputers", "version": 2 }With that you create function.
And it is just Log Analytics now. We do not use OMS anymore.
I am not sure if I understand the question correctly but if you are talking about export to PowerBI feature I do not think why it wouldn't possible to use functions there. In basics that integration is basically executing query at specific period against the API and getting the data.
Thanks for the response.
My question is 'Is it possible to export the saved queries via ARM template'?
Before our customers use powerBI, they can deploy the ARM template. And after that they can use powerBI to call those functions through RestAPI.
Thanks.
- Feb 20, 2019
I do not know if the portal export feature works for these resources but if you have them deployed via ARM template to one environment you can deploy them to another very easily. The ARM template is your export.