Gallery › Security Center › Azure built-in policies
[Deprecated]: Configure machines to create the user-defined Microsoft Defender for Cloud pipeline using Azure Monitor Agent
Converted Initiative Version 1.0.2-deprecated Deprecated
This policy initiative is deprecated as part of Microsoft Defender for Cloud updated strategy. As part of this strategy, Azure Monitor agent is no longer required to receive Defender for Servers security features, but is required for Defender for SQL Server on machines. For more information visit: https://aka.ms/MdcAgentStrategy. Configure machines to automatically install the Azure Monitor and Azure Security agents. Use the user-provided Log Analytics workspace to store audit records.
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
{
"properties": {
"displayName": "[Deprecated]: Configure machines to create the user-defined Microsoft Defender for Cloud pipeline using Azure Monitor Agent",
"policyType": "BuiltIn",
"description": "This policy initiative is deprecated as part of Microsoft Defender for Cloud updated strategy. As part of this strategy, Azure Monitor agent is no longer required to receive Defender for Servers security features, but is required for Defender for SQL Server on machines. For more information visit: https://aka.ms/MdcAgentStrategy. Configure machines to automatically install the Azure Monitor and Azure Security agents. Use the user-provided Log Analytics workspace to store audit records.",
"metadata": {
"category": "Security Center",
"version": "1.0.2-deprecated",
"deprecated": true
},
"version": "1.0.2",
"parameters": {
"userWorkspaceResourceId": {
"type": "String",
"metadata": {
"displayName": "Workspace Resource Id",
"description": "Select the Log Analytics workspace to which the virtual machines in scope will send their logs. If this workspace is outside of the scope of the assignment you must manually grant 'Log Analytics Contributor' permissions (or similar) to the policy assignment's principal ID.",
"strongType": "omsWorkspace"
}
},
"workspaceRegion": {
"type": "String",
"metadata": {
"displayName": "Workspace region",
"description": "Region of the Workspace to which the virtual machines in scope will send their logs. Needed to create the Data Collection Rule in the same region",
"strongType": "location"
}
},
"bringYourOwnUserAssignedManagedIdentity": {
"type": "Boolean",
"metadata": {
"displayName": "Bring Your Own User-Assigned Managed Identity",
"description": "If set to true, Azure Monitor Agent will use the user-assigned managed identity specified via the 'User-Assigned Managed Identity ...' parameters for authentication. Otherwise, Azure Monitor Agent will use the user-assigned managed identity /subscriptions/<subscription-id>/resourceGroups/built-in-identity-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/built-in-identity-<location> for authentication."
},
"allowedValues": [
false,
true
],
"defaultValue": false
},
"userAssignedManagedIdentityName": {
"type": "String",
"metadata": {
"displayName": "User-Assigned Managed Identity Name",
"description": "The name of the user-assigned managed identity which Azure Monitor Agent will use for authentication when 'Bring Your Own User-Assigned Managed Identity' is set to true."
},
"defaultValue": ""
},
"userAssignedManagedIdentityResourceGroup": {
"type": "String",
"metadata": {
"displayName": "User-Assigned Managed Identity Resource Group",
"description": "The resource group of the user-assigned managed identity which Azure Monitor Agent will use for authentication when 'Bring Your Own User-Assigned Managed Identity' is set to true."
},
"defaultValue": ""
}
},
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d367bd60-64ca-4364-98ea-276775bddd94",
"definitionVersion": "1.*.*-preview",
"policyDefinitionReferenceId": "AddUserAssignedIdentity_VM",
"parameters": {
"bringYourOwnUserAssignedManagedIdentity": {
"value": "[parameters('bringYourOwnUserAssignedManagedIdentity')]"
},
"userAssignedIdentityName": {
"value": "[parameters('userAssignedManagedIdentityName')]"
},
"identityResourceGroup": {
"value": "[parameters('userAssignedManagedIdentityResourceGroup')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/ae8a10e6-19d6-44a3-a02d-a2bdfc707742",
"definitionVersion": "3.*.*",
"policyDefinitionReferenceId": "DeployAzureMonitorLinuxAgent_UAI_VM",
"parameters": {
"bringYourOwnUserAssignedManagedIdentity": {
"value": "[parameters('bringYourOwnUserAssignedManagedIdentity')]"
},
"userAssignedManagedIdentityName": {
"value": "[parameters('userAssignedManagedIdentityName')]"
},
"userAssignedManagedIdentityResourceGroup": {
"value": "[parameters('userAssignedManagedIdentityResourceGroup')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/637125fd-7c39-4b94-bb0a-d331faf333a9",
"definitionVersion": "1.*.*",
"policyDefinitionReferenceId": "DeployAzureMonitorWindowsAgent_UAI_VM",
"parameters": {
"bringYourOwnUserAssignedManagedIdentity": {
"value": "[parameters('bringYourOwnUserAssignedManagedIdentity')]"
},
"userAssignedManagedIdentityName": {
"value": "[parameters('userAssignedManagedIdentityName')]"
},
"userAssignedManagedIdentityResourceGroup": {
"value": "[parameters('userAssignedManagedIdentityResourceGroup')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/5f8eb305-9c9f-4abe-9bb0-df220d9faba2",
"definitionVersion": "7.*.*-preview",
"policyDefinitionReferenceId": "DeployAzureSecurityLinuxAgent_VM"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/1537496a-b1e8-482b-a06a-1cc2415cdc7b",
"definitionVersion": "5.*.*-preview",
"policyDefinitionReferenceId": "DeployAzureSecurityWindowsAgent_VM"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c15c5978-ab6e-4599-a1c3-90a7918f5371",
"definitionVersion": "1.*.*-preview",
"policyDefinitionReferenceId": "MDC_AMA_UserWorkspacePipeline_Deploy_VM",
"parameters": {
"userWorkspaceResourceId": {
"value": "[parameters('userWorkspaceResourceId')]"
},
"workspaceRegion": {
"value": "[parameters('workspaceRegion')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/9c0aa188-e5fe-4569-8f74-b6e155624d9a",
"definitionVersion": "2.*.*-preview",
"policyDefinitionReferenceId": "MDC_AMA_UserWorkspacePipeline_DCRA_Deploy",
"parameters": {
"workspaceRegion": {
"value": "[parameters('workspaceRegion')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/845857af-0333-4c5d-bbbc-6076697da122",
"definitionVersion": "2.*.*",
"policyDefinitionReferenceId": "DeployAzureMonitorLinuxAgent_Arc"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/94f686d6-9a24-4e19-91f1-de937dc171a4",
"definitionVersion": "2.*.*",
"policyDefinitionReferenceId": "DeployAzureMonitorWindowsAgent_Arc"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/2f47ec78-4301-4655-b78e-b29377030cdc",
"definitionVersion": "1.*.*-preview",
"policyDefinitionReferenceId": "DeployAzureSecurityLinuxAgent_Arc"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/d01f3018-de9f-4d75-8dae-d12c1875da9f",
"definitionVersion": "1.*.*-preview",
"policyDefinitionReferenceId": "DeployAzureSecurityWindowsAgent_Arc"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/aba46665-c3a7-4319-ace1-a0282deebac2",
"definitionVersion": "1.*.*-preview",
"policyDefinitionReferenceId": "MDC_AMA_UserWorkspacePipeline_Deploy_Arc",
"parameters": {
"userWorkspaceResourceId": {
"value": "[parameters('userWorkspaceResourceId')]"
},
"workspaceRegion": {
"value": "[parameters('workspaceRegion')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9ae938d-3d6f-4466-b7c3-351761d9c890",
"definitionVersion": "2.*.*-preview",
"policyDefinitionReferenceId": "MDC_AMA_UserWorkspacePipeline_DCRA_Deploy_Arc",
"parameters": {
"workspaceRegion": {
"value": "[parameters('workspaceRegion')]"
}
}
}
],
"versions": [
"1.0.2"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/500ab3a2-f1bd-4a5a-8e47-3e09d9a294c3",
"name": "500ab3a2-f1bd-4a5a-8e47-3e09d9a294c3"
}# Converted from MDC_AzureMonitoring_UAI_UserWorkspace.json by ConvertTo-Bylaw.
Initiative '500ab3a2-f1bd-4a5a-8e47-3e09d9a294c3' {
Properties @{
DisplayName = '[Deprecated]: Configure machines to create the user-defined Microsoft Defender for Cloud pipeline using Azure Monitor Agent'
Description = 'This policy initiative is deprecated as part of Microsoft Defender for Cloud updated strategy. As part of this strategy, Azure Monitor agent is no longer required to receive Defender for Servers security features, but is required for Defender for SQL Server on machines. For more information visit: https://aka.ms/MdcAgentStrategy. Configure machines to automatically install the Azure Monitor and Azure Security agents. Use the user-provided Log Analytics workspace to store audit records.'
Category = 'Security Center'
Version = '1.0.2-deprecated'
Deprecated = $true
PolicyVersion = '1.0.2'
}
Parameter UserWorkspaceResourceId @{
Type = 'String'
DisplayName = 'Workspace Resource Id'
Description = 'Select the Log Analytics workspace to which the virtual machines in scope will send their logs. If this workspace is outside of the scope of the assignment you must manually grant ''Log Analytics Contributor'' permissions (or similar) to the policy assignment''s principal ID.'
Metadata = [ordered]@{ strongType = 'omsWorkspace' }
}
Parameter WorkspaceRegion @{
Type = 'String'
DisplayName = 'Workspace region'
Description = 'Region of the Workspace to which the virtual machines in scope will send their logs. Needed to create the Data Collection Rule in the same region'
Metadata = [ordered]@{ strongType = 'location' }
}
Parameter BringYourOwnUserAssignedManagedIdentity @{
Type = 'Boolean'
AllowedValues = @($false, $true)
Default = $false
DisplayName = 'Bring Your Own User-Assigned Managed Identity'
Description = 'If set to true, Azure Monitor Agent will use the user-assigned managed identity specified via the ''User-Assigned Managed Identity ...'' parameters for authentication. Otherwise, Azure Monitor Agent will use the user-assigned managed identity /subscriptions/<subscription-id>/resourceGroups/built-in-identity-rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/built-in-identity-<location> for authentication.'
}
Parameter UserAssignedManagedIdentityName @{
Default = ''
DisplayName = 'User-Assigned Managed Identity Name'
Description = 'The name of the user-assigned managed identity which Azure Monitor Agent will use for authentication when ''Bring Your Own User-Assigned Managed Identity'' is set to true.'
}
Parameter UserAssignedManagedIdentityResourceGroup @{
Default = ''
DisplayName = 'User-Assigned Managed Identity Resource Group'
Description = 'The resource group of the user-assigned managed identity which Azure Monitor Agent will use for authentication when ''Bring Your Own User-Assigned Managed Identity'' is set to true.'
}
PolicyDefinition @{
Id = 'd367bd60-64ca-4364-98ea-276775bddd94'
ReferenceId = 'AddUserAssignedIdentity_VM'
Version = '1.*.*-preview'
Parameters = [ordered]@{
bringYourOwnUserAssignedManagedIdentity = (Param BringYourOwnUserAssignedManagedIdentity)
userAssignedIdentityName = (Param UserAssignedManagedIdentityName)
identityResourceGroup = (Param UserAssignedManagedIdentityResourceGroup)
}
}
PolicyDefinition @{
Id = 'ae8a10e6-19d6-44a3-a02d-a2bdfc707742'
ReferenceId = 'DeployAzureMonitorLinuxAgent_UAI_VM'
Version = '3.*.*'
Parameters = [ordered]@{
bringYourOwnUserAssignedManagedIdentity = (Param BringYourOwnUserAssignedManagedIdentity)
userAssignedManagedIdentityName = (Param UserAssignedManagedIdentityName)
userAssignedManagedIdentityResourceGroup = (Param UserAssignedManagedIdentityResourceGroup)
}
}
PolicyDefinition @{
Id = '637125fd-7c39-4b94-bb0a-d331faf333a9'
ReferenceId = 'DeployAzureMonitorWindowsAgent_UAI_VM'
Version = '1.*.*'
Parameters = [ordered]@{
bringYourOwnUserAssignedManagedIdentity = (Param BringYourOwnUserAssignedManagedIdentity)
userAssignedManagedIdentityName = (Param UserAssignedManagedIdentityName)
userAssignedManagedIdentityResourceGroup = (Param UserAssignedManagedIdentityResourceGroup)
}
}
PolicyDefinition @{
Id = '5f8eb305-9c9f-4abe-9bb0-df220d9faba2'
ReferenceId = 'DeployAzureSecurityLinuxAgent_VM'
Version = '7.*.*-preview'
}
PolicyDefinition @{
Id = '1537496a-b1e8-482b-a06a-1cc2415cdc7b'
ReferenceId = 'DeployAzureSecurityWindowsAgent_VM'
Version = '5.*.*-preview'
}
PolicyDefinition @{
Id = 'c15c5978-ab6e-4599-a1c3-90a7918f5371'
ReferenceId = 'MDC_AMA_UserWorkspacePipeline_Deploy_VM'
Version = '1.*.*-preview'
Parameters = [ordered]@{
userWorkspaceResourceId = (Param UserWorkspaceResourceId)
workspaceRegion = (Param WorkspaceRegion)
}
}
PolicyDefinition @{
Id = '9c0aa188-e5fe-4569-8f74-b6e155624d9a'
ReferenceId = 'MDC_AMA_UserWorkspacePipeline_DCRA_Deploy'
Version = '2.*.*-preview'
Parameters = @{
workspaceRegion = (Param WorkspaceRegion)
}
}
PolicyDefinition @{
Id = '845857af-0333-4c5d-bbbc-6076697da122'
ReferenceId = 'DeployAzureMonitorLinuxAgent_Arc'
Version = '2.*.*'
}
PolicyDefinition @{
Id = '94f686d6-9a24-4e19-91f1-de937dc171a4'
ReferenceId = 'DeployAzureMonitorWindowsAgent_Arc'
Version = '2.*.*'
}
PolicyDefinition @{
Id = '2f47ec78-4301-4655-b78e-b29377030cdc'
ReferenceId = 'DeployAzureSecurityLinuxAgent_Arc'
Version = '1.*.*-preview'
}
PolicyDefinition @{
Id = 'd01f3018-de9f-4d75-8dae-d12c1875da9f'
ReferenceId = 'DeployAzureSecurityWindowsAgent_Arc'
Version = '1.*.*-preview'
}
PolicyDefinition @{
Id = 'aba46665-c3a7-4319-ace1-a0282deebac2'
ReferenceId = 'MDC_AMA_UserWorkspacePipeline_Deploy_Arc'
Version = '1.*.*-preview'
Parameters = [ordered]@{
userWorkspaceResourceId = (Param UserWorkspaceResourceId)
workspaceRegion = (Param WorkspaceRegion)
}
}
PolicyDefinition @{
Id = 'c9ae938d-3d6f-4466-b7c3-351761d9c890'
ReferenceId = 'MDC_AMA_UserWorkspacePipeline_DCRA_Deploy_Arc'
Version = '2.*.*-preview'
Parameters = @{
workspaceRegion = (Param WorkspaceRegion)
}
}
}Members (13)
- [Preview]: Configure Virtual Machines to use Built-In User-Assigned Managed Identity
- Configure Linux virtual machines to run Azure Monitor Agent with user-assigned managed identity-based authentication
- Configure Windows virtual machines to run Azure Monitor Agent with user-assigned managed identity-based authentication
- [Deprecated]: Configure supported Linux virtual machines to automatically install the Azure Security agent
- [Deprecated]: Configure supported Windows machines to automatically install the Azure Security agent
- [Deprecated]: Configure machines to create the Microsoft Defender for Cloud user-defined pipeline using Azure Monitor Agent
- [Deprecated]: Configure Association to link virtual machines to user-defined Microsoft Defender for Cloud Data Collection Rule
- Configure Linux Arc-enabled machines to run Azure Monitor Agent
- Configure Windows Arc-enabled machines to run Azure Monitor Agent
- [Deprecated]: Configure supported Linux Arc machines to automatically install the Azure Security agent
- [Deprecated]: Configure supported Windows Arc machines to automatically install the Azure Security agent
- [Deprecated]: Configure Arc machines to create the Microsoft Defender for Cloud user-defined pipeline using Azure Monitor Agent
- [Deprecated]: Configure Association to link Arc machines to user-defined Microsoft Defender for Cloud Data Collection Rule
Source: built-in-policies/policySetDefinitions/Security Center/MDC_AzureMonitoring_UAI_UserWorkspace.json in Azure/azure-policy, under the MIT licence.
Bylaw