Importing Saved Searches into your OMS workspaces

In my previous article, I have shown how to extract Saved Searches from your Azure OMS workspaces. Having that file in your hands, you can use the script below to import the results into another workspace.

First, get a hold of the script here. Also make sure you have all pre-requisites mentioned in the previous article.

When you first run it, you will be prompted for authentication:

image

If you have multiple tenants, you will be asked which tenant to use:

Then about the subscription:

image

Next, you should be prompted about the workspace you would like to target:

image

And finally, the file to be imported, which has been exported with the script in the previous post:

image

Once the script is done, you should see a new category in your workspace:

image

And that is it!

Hope this helps!