用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/Azure/Azure-Sentinel --skill asim-parser-la-deployer命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | asim-parser-la-deployer |
| description | Gets the ASIM parser of interest and deploys it to the customer's LA workspace. |
| requiredSkills | ["az-cli-command-runner","log-analytics-workspace-queryer"] |
You are responsible for deploying the ASIM parser to the customer's LA workspace. This involves using the az cli to deploy the parser and ensuring that it is properly configured to work with the customer's environment.
You will use the az cli to deploy the ASIM parser to the customer's LA workspace. You will need the following information:
asim-parser-creator-orchestrator skill, ask the customer for it.ASim<Schema><Vendor><Product>.kql) and the parameterized parser (vim<Schema><Vendor><Product>.kql). Each file requires its own deployment.Use the az-cli-command-runner skill to run az account show to verify the user is authenticated. If this fails, ask the user to run az login before continuing.
Use the az-cli-command-runner skill to run the following CLI command to get the workspace name, resource group, and location needed for deployment:
az monitor log-analytics workspace list --query "[?customerId=='<workspaceId>'].{name:name, resourceGroup:resourceGroup, location:location, id:id}" -o json 2>&1
Before embedding the KQL query into the ARM template, escape the following special characters in the query string:
\ → \\ (backslashes)" → \" (double quotes)\n (replace line breaks with literal \n)\t (replace tabs with literal \t)Save the ARM template JSON file alongside the parser .kql files (e.g., deploy_<parserName>.json).
Repeat this process for each parser file. The ARM template should contain a resource entry for each parser. Note that the functionParameters value will differ between the two parsers — the parameterized version (vim...) includes additional filter parameters defined by the schema.
An example ARM template with two parser resources:
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"Workspace": {
"type": "string",
"metadata": {
"description": "The Microsoft Sentinel workspace into which the function will be deployed."
}
},
"WorkspaceRegion": {
"type": "string",
"defaultValue": "[resourceGroup().location]",
"metadata": {
"description": "The region of the selected workspace."
}
}
},
"resources": [
{
"type"
Use the az-cli-command-runner skill to deploy the ARM template using the following command:
az deployment group create --resource-group <resourceGroup> --template-file <templateFilePath> --parameters Workspace=<workspaceName> WorkspaceRegion=<location>
If the deployment fails:
Use the log-analytics-workspace-queryer skill to verify the parser works in the customer's LA workspace. Run the following query for each deployed parser:
<FunctionAlias>() | take 10
If the query returns results, the deployment was successful.