JSON compareHide
compare mode:
side-by-side
line-by-line
version left: 1.1.0-preview 1.0.0-preview
version right: 1.2.0-deprecated 1.1.0-preview 1.0.0-preview
@@ -1,13 +1,13 @@
1
{
2
-
"displayName": "[Preview]: Configure Azure Arc-enabled Windows machines with Log Analytics agents connected to default Log Analytics workspace",
3
"policyType": "BuiltIn",
4
"mode": "Indexed",
5
"description": "Protect your Azure Arc-enabled Windows machines with Microsoft Defender for Cloud capabilities, by installing Log Analytics agents that send data to a default Log Analytics workspace created by Microsoft Defender for Cloud.",
6
"metadata": {
7
"category": "Monitoring",
8
-
"version": "1.1.0-preview",
9
-
"preview": true
10
},
11
"parameters": {
12
"effect": {
13
"type": "String",
@@ -18,9 +18,9 @@
18
"allowedValues": [
19
"DeployIfNotExists",
20
"Disabled"
21
],
22
-
"defaultValue": "DeployIfNotExists"
23
}
24
},
25
"policyRule": {
26
"if": {
1
{
2
+
"displayName": "[Deprecated ]: Configure Azure Arc-enabled Windows machines with Log Analytics agents connected to default Log Analytics workspace",
3
"policyType": "BuiltIn",
4
"mode": "Indexed",
5
"description": "Protect your Azure Arc-enabled Windows machines with Microsoft Defender for Cloud capabilities, by installing Log Analytics agents that send data to a default Log Analytics workspace created by Microsoft Defender for Cloud.",
6
"metadata": {
7
"category": "Monitoring",
8
+
"version": "1.2 .0-deprecated ",
9
+
"deprecated ": true
10
},
11
"parameters": {
12
"effect": {
13
"type": "String",
18
"allowedValues": [
19
"DeployIfNotExists",
20
"Disabled"
21
],
22
+
"defaultValue": "Disabled "
23
}
24
},
25
"policyRule": {
26
"if": {
JSON
api-version=2021-06-01
Copy definition Copy definition 4 EPAC EPAC
{ 7 items displayName: "[Deprecated]: Configure Azure Arc-enabled Windows machines with Log Analytics agents connected to default Log Analytics workspace" , policyType: "BuiltIn" , mode: "Indexed" , description: "Protect your Azure Arc-enabled Windows machines with Microsoft Defender for Cloud capabilities, by installing Log Analytics agents that send data to a default Log Analytics workspace created by Microsoft Defender for Cloud." , metadata: { 3 items category: "Monitoring" , version: "1.2.0-deprecated" , deprecated: true } , parameters: { 1 item } , policyRule: { 2 items if: { 1 item allOf: [ 2 items { 2 items field: "type" , equals: "Microsoft.HybridCompute/machines" } , { 2 items field: "Microsoft.HybridCompute/machines/osName" , equals: "windows" } ] } , then: { 2 items effect: "[parameters('effect')]" , details: { 5 items deploymentScope: "subscription" , type: "Microsoft.HybridCompute/machines/extensions" , roleDefinitionIds: [ 1 item "/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c" Contributor ] , existenceCondition: { 1 item allOf: [ 3 items { 2 items field: "Microsoft.HybridCompute/machines/extensions/type" , equals: "MicrosoftMonitoringAgent" } , { 2 items field: "Microsoft.HybridCompute/machines/extensions/publisher" , equals: "Microsoft.EnterpriseCloud.Monitoring" } , { 2 items field: "Microsoft.HybridCompute/machines/extensions/provisioningState" , equals: "Succeeded" } ] } , deployment: { 2 items location: "eastus" , properties: { 3 items mode: "incremental" , template: { 5 items $schema: "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" , contentVersion: "1.0.0.0" , parameters: { 3 items } , variables: { 10 items locationLongNameToShortMap: { 31 items australiacentral: "CAU" , australiaeast: "EAU" , australiasoutheast: "SEAU" , brazilsouth: "CQ" , canadacentral: "CCA" , centralindia: "CIN" , centralus: "CUS" , eastasia: "EA" , eastus2euap: "eus2p" , eastus: "EUS" , eastus2: "EUS2" , francecentral: "PAR" , germanywestcentral: "DEWC" , japaneast: "EJP" , koreacentral: "SE" , northcentralus: "NCUS" , northeurope: "NEU" , norwayeast: "NOE" , southcentralus: "SCUS" , southeastasia: "SEA" , switzerlandnorth: "CHN" , switzerlandwest: "CHW" , southafricanorth: "JNB" , swedencentral: "SEC" , uaenorth: "DXB" , uksouth: "SUK" , ukwest: "WUK" , westcentralus: "WCUS" , westeurope: "WEU" , westus: "WUS" , westus2: "WUS2" } , selectedLocation: 🔍 "[
if(
variables(
'isContainLocation'
),
variables(
'locationLongNameToShortMap'
)[
parameters('location')
],
parameters('location')
)
]", locationCode: 🔍 "[
if(
lessOrEquals(
length(
variables(
'selectedLocation'
)
),
8
),
variables(
'selectedLocation'
),
concat(
substring(
variables(
'selectedLocation'
),
0,
6
),
substring(
variables(
'selectedLocation'
),
sub(
length(
variables(
'selectedLocation'
)
),
2
),
2
)
)
)
]", subscriptionId: "[subscription().subscriptionId]" , defaultRGName: 🔍 "[
concat(
'DefaultResourceGroup-',
variables(
'locationCode'
)
)
]", defaultRGLocation: "[parameters('location')]" , workspaceName: 🔍 "[
concat(
'DefaultWorkspace-',
variables(
'subscriptionId'
),
'-',
variables(
'locationCode'
)
)
]", deployDefaultAscResourceGroup: 🔍 "[
concat(
'deployDefaultAscResourceGroup-',
uniqueString(
deployment().name
)
)
]", deployExtension: 🔍 "[
concat(
'deployExtension-',
uniqueString(
deployment().name
)
)
]", isContainLocation: 🔍 "[
contains(
variables(
'locationLongNameToShortMap'
),
parameters('location')
)
]" } , resources: [ 3 items { 4 items type: "Microsoft.Resources/resourceGroups" , apiVersion: "2020-06-01" , name: "[variables('defaultRGName')]" , location: "[variables('defaultRGLocation')]" } , { 6 items type: "Microsoft.Resources/deployments" , apiVersion: "2020-06-01" , name: "[variables('deployDefaultAscResourceGroup')]" , dependsOn: [ 1 item 🔍 "[
resourceId(
'Microsoft.Resources/resourceGroups',
variables(
'defaultRGName'
)
)
]"] , properties: { 4 items mode: "Incremental" , expressionEvaluationOptions: { 1 item } , parameters: { 2 items } , template: { 5 items $schema: "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" , contentVersion: "1.0.0.0" , parameters: { 2 items } , variables: { 1 item } , resources: [ 2 items { 5 items type: "Microsoft.OperationalInsights/workspaces" , name: "[parameters('workspaceName')]" , apiVersion: "2015-11-01-preview" , location: "[parameters('defaultRGLocation')]" , properties: { 3 items } } , { 7 items type: "Microsoft.OperationsManagement/solutions" , name: "[variables('securityCenterFreeSolution').Name]" , apiVersion: "2015-11-01-preview" , location: "[parameters('defaultRGLocation')]" , dependsOn: [ 1 item "[parameters('workspaceName')]" ] , properties: { 1 item workspaceResourceId: 🔍 "[
resourceId(
'Microsoft.OperationalInsights/workspaces/',
parameters('workspaceName')
)
]" } , plan: { 4 items name: "[variables('securityCenterFreeSolution').Name]" , publisher: "Microsoft" , product: 🔍 "[
Concat(
'OMSGallery/',
variables(
'securityCenterFreeSolution'
).GalleryName
)
]", promotionCode: "" } } ] } } , resourceGroup: "[variables('defaultRGName')]" } , { 6 items type: "Microsoft.Resources/deployments" , apiVersion: "2020-06-01" , name: "[variables('deployExtension')]" , dependsOn: [ 1 item "[variables('deployDefaultAscResourceGroup')]" ] , properties: { 4 items mode: "Incremental" , expressionEvaluationOptions: { 1 item } , parameters: { 3 items workspaceId: { 1 item value: 🔍 "[
concat(
subscription().id,
'/resourceGroups/',
variables(
'defaultRGName'
),
'/providers/Microsoft.OperationalInsights/workspaces/',
variables(
'workspaceName'
)
)
]" } , vmName: { 1 item value: "[parameters('vmName')]" } , location: { 1 item value: "[parameters('location')]" } } , template: { 5 items $schema: "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#" , contentVersion: "1.0.0.0" , parameters: { 3 items } , variables: { 4 items vmExtensionName: "MicrosoftMonitoringAgent" , vmExtensionPublisher: "Microsoft.EnterpriseCloud.Monitoring" , vmExtensionType: "MicrosoftMonitoringAgent" , vmExtensionTypeHandlerVersion: "1.0" } , resources: [ 1 item { 5 items name: 🔍 "[
concat(
parameters('vmName'),
'/',
variables(
'vmExtensionName'
)
)
]", type: "Microsoft.HybridCompute/machines/extensions" , location: "[parameters('location')]" , apiVersion: "2019-12-12" , properties: { 6 items publisher: "[variables('vmExtensionPublisher')]" , type: "[variables('vmExtensionType')]" , typeHandlerVersion: "[variables('vmExtensionTypeHandlerVersion')]" , autoUpgradeMinorVersion: true , settings: { 2 items workspaceId: 🔍 "[
reference(
parameters('workspaceId'),
'2015-03-20'
).customerId
]", stopOnMultipleConnections: "true" } , protectedSettings: { 1 item workspaceKey: 🔍 "[
listKeys(
parameters('workspaceId'),
'2015-03-20'
).primarySharedKey
]" } } } ] } } , resourceGroup: "[parameters('vmResourceGroup')]" } ] } , parameters: { 3 items } } } } } } }