Update template.json
Removed the parameters for API connections, instead now the API connections are created with the ARM template deployment
This commit is contained in:
Родитель
64117ed6d6
Коммит
be3de2770b
|
@ -2,38 +2,31 @@
|
|||
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
|
||||
"contentVersion": "1.0.0.0",
|
||||
"parameters": {
|
||||
"workflows_Get_MachineData_EDR_SOAR_ActionsOnMachine_name": {
|
||||
"defaultValue": "Get-MachineData-EDR-SOAR-ActionsOnMachine",
|
||||
"type": "String"
|
||||
},
|
||||
"connections_azuresentinel_externalid": {
|
||||
"defaultValue": "/subscriptions/[subscription]/resourceGroups/SecureLab/providers/Microsoft.Web/connections/azuresentinel",
|
||||
"type": "String"
|
||||
},
|
||||
"connections_keyvault_externalid": {
|
||||
"defaultValue": "/subscriptions/[subscription]/resourceGroups/SecureLab/providers/Microsoft.Web/connections/keyvault",
|
||||
"type": "String"
|
||||
},
|
||||
"connections_sharepointonline_externalid": {
|
||||
"defaultValue": "/subscriptions/[subscription]/resourceGroups/SecureLab/providers/Microsoft.Web/connections/sharepointonline",
|
||||
"type": "String"
|
||||
},
|
||||
"connections_teams_externalid": {
|
||||
"defaultValue": "/subscriptions/[subscription]/resourceGroups/SecureLab/providers/Microsoft.Web/connections/teams",
|
||||
"type": "String"
|
||||
},
|
||||
"connections_windows_defender_atp_externalid": {
|
||||
"defaultValue": "/subscriptions/[subscription]/resourceGroups/SecureLab/providers/Microsoft.Web/connections/wdatp",
|
||||
"type": "String"
|
||||
"PlaybookName": {
|
||||
"defaultValue": "PlaybookName",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"variables": {},
|
||||
"variables": {
|
||||
"AzureSentinelConnectionName": "[concat('azuresentinel-', parameters('PlaybookName'))]",
|
||||
"AzureKeyVaultConnectionName": "[concat('azurekeyvault-', parameters('PlaybookName'))]",
|
||||
"SharepointOnlineConnectionName": "[concat('sharepointonline-', parameters('PlaybookName'))]",
|
||||
"DefenderATPConnectionName": "[concat('defenderatp-', parameters('PlaybookName'))]",
|
||||
"TeamsConnectionName": "[concat('teams-', parameters('PlaybookName'))]"
|
||||
},
|
||||
"resources": [
|
||||
{
|
||||
"type": "Microsoft.Logic/workflows",
|
||||
"apiVersion": "2017-07-01",
|
||||
"name": "[parameters('workflows_Get_MachineData_EDR_SOAR_ActionsOnMachine_name')]",
|
||||
"location": "southeastasia",
|
||||
"name": "[parameters('PlaybookName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"dependsOn": [
|
||||
"[resourceId('Microsoft.Web/connections', variables('AzureSentinelConnectionName'))]",
|
||||
"[resourceId('Microsoft.Web/connections', variables('AzureKeyVaultConnectionName'))]",
|
||||
"[resourceId('Microsoft.Web/connections', variables('SharepointOnlineConnectionName'))]",
|
||||
"[resourceId('Microsoft.Web/connections', variables('DefenderATPConnectionName'))]",
|
||||
"[resourceId('Microsoft.Web/connections', variables('TeamsConnectionName'))]"
|
||||
],
|
||||
"properties": {
|
||||
"state": "Enabled",
|
||||
"definition": {
|
||||
|
@ -1282,34 +1275,94 @@
|
|||
"$connections": {
|
||||
"value": {
|
||||
"azuresentinel": {
|
||||
"connectionId": "[parameters('connections_azuresentinel_externalid')]",
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('AzureSentinelConnectionName'))]",
|
||||
"connectionName": "azuresentinel",
|
||||
"id": "/subscriptions/[subscription]/providers/Microsoft.Web/locations/southeastasia/managedApis/azuresentinel"
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/azuresentinel')]"
|
||||
},
|
||||
"keyvault": {
|
||||
"connectionId": "[parameters('connections_keyvault_externalid')]",
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('AzureKeyVaultConnectionName'))]",
|
||||
"connectionName": "keyvault",
|
||||
"id": "/subscriptions/[subscription]/providers/Microsoft.Web/locations/southeastasia/managedApis/keyvault"
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/keyvault')]"
|
||||
},
|
||||
"sharepointonline": {
|
||||
"connectionId": "[parameters('connections_sharepointonline_externalid')]",
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('SharepointOnlineConnectionName'))]",
|
||||
"connectionName": "sharepointonline",
|
||||
"id": "/subscriptions/[subscription]/providers/Microsoft.Web/locations/southeastasia/managedApis/sharepointonline"
|
||||
},
|
||||
"teams": {
|
||||
"connectionId": "[parameters('connections_teams_externalid')]",
|
||||
"connectionName": "teams",
|
||||
"id": "/subscriptions/[subscription]/providers/Microsoft.Web/locations/southeastasia/managedApis/teams"
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/sharepointonline')]"
|
||||
},
|
||||
"wdatp": {
|
||||
"connectionId": "[parameters('connections_windows_defender_atp_externalid')]",
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('DefenderATPConnectionName'))]",
|
||||
"connectionName": "wdatp",
|
||||
"id": "/subscriptions/[subscription]/providers/Microsoft.Web/locations/southeastasia/managedApis/wdatp"
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/wdatp')]"
|
||||
},
|
||||
"teams": {
|
||||
"connectionId": "[resourceId('Microsoft.Web/connections', variables('TeamsConnectionName'))]",
|
||||
"connectionName": "teams",
|
||||
"id": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Web/locations/', resourceGroup().location, '/managedApis/teams')]"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "MICROSOFT.WEB/CONNECTIONS",
|
||||
"apiVersion": "2018-07-01-preview",
|
||||
"name": "[variables('AzureSentinelConnectionName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"api": {
|
||||
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location,'/managedApis/azuresentinel')]"
|
||||
},
|
||||
"displayName": "[variables('AzureSentinelConnectionName')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "MICROSOFT.WEB/CONNECTIONS",
|
||||
"apiVersion": "2018-07-01-preview",
|
||||
"name": "[variables('AzureKeyVaultConnectionName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"api": {
|
||||
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location,'/managedApis/keyvault')]"
|
||||
},
|
||||
"displayName": "[variables('AzureKeyVaultConnectionName')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "MICROSOFT.WEB/CONNECTIONS",
|
||||
"apiVersion": "2018-07-01-preview",
|
||||
"name": "[variables('SharepointOnlineConnectionName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"api": {
|
||||
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location,'/managedApis/sharepointonline')]"
|
||||
},
|
||||
"displayName": "[variables('SharepointOnlineConnectionName')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "MICROSOFT.WEB/CONNECTIONS",
|
||||
"apiVersion": "2018-07-01-preview",
|
||||
"name": "[variables('DefenderATPConnectionName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"api": {
|
||||
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location,'/managedApis/wdatp')]"
|
||||
},
|
||||
"displayName": "[variables('DefenderATPConnectionName')]"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "MICROSOFT.WEB/CONNECTIONS",
|
||||
"apiVersion": "2018-07-01-preview",
|
||||
"name": "[variables('TeamsConnectionName')]",
|
||||
"location": "[resourceGroup().location]",
|
||||
"properties": {
|
||||
"api": {
|
||||
"id": "[concat(subscription().id, '/providers/Microsoft.Web/locations/', resourceGroup().location,'/managedApis/teams')]"
|
||||
},
|
||||
"displayName": "[variables('TeamsConnectionName')]"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче