Gallery › Trusted Launch › Azure built-in policies
[Preview]: Configure prerequisites to enable Guest Attestation on Trusted Launch enabled VMs
Converted Initiative Version 3.0.0-preview Preview
Configure the Trusted Launch enabled virtual machines to automatically install the Guest Attestation extension and enable system-assigned managed identity to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation. For more details, please refer to the following link - https://aka.ms/trustedlaunch
ConvertTo-Bylaw converted this initiative, and proved that the file compiles back to the same definition.
Azure Policy JSONGuestAttestationPrerequisites.json · 95 lines
{
"properties": {
"displayName": "[Preview]: Configure prerequisites to enable Guest Attestation on Trusted Launch enabled VMs",
"policyType": "BuiltIn",
"description": "Configure the Trusted Launch enabled virtual machines to automatically install the Guest Attestation extension and enable system-assigned managed identity to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation. For more details, please refer to the following link - https://aka.ms/trustedlaunch",
"metadata": {
"category": "Trusted Launch",
"version": "3.0.0-preview",
"preview": true
},
"version": "3.0.0-preview",
"parameters": {
"attestationEndpoint": {
"defaultValue": "",
"type": "string",
"metadata": {
"displayName": "Guest attestation tenant URL",
"description": "The Microsoft Azure Attestation (MAA) custom tenant URL."
}
}
},
"policyDefinitions": [
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/6074e9a3-c711-4856-976d-24d51f9e065b",
"definitionVersion": "7.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_DeployLinuxExtensionVM",
"parameters": {
"attestationEndpoint": {
"value": "[parameters('attestationEndpoint')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/98ea2fc7-6fc6-4fd1-9d8d-6331154da071",
"definitionVersion": "5.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_DeployWindowsExtensionVM",
"parameters": {
"attestationEndpoint": {
"value": "[parameters('attestationEndpoint')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/17b3de92-f710-4cf4-aa55-0e7859f1ed7b",
"definitionVersion": "6.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_EnableSystemId"
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e",
"definitionVersion": "6.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_DeployLinuxExtensionVMSS",
"parameters": {
"attestationEndpoint": {
"value": "[parameters('attestationEndpoint')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf",
"definitionVersion": "4.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_DeployWindowsExtensionVMSS",
"parameters": {
"attestationEndpoint": {
"value": "[parameters('attestationEndpoint')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/496e010e-fa91-4c00-be4b-92b481f67b58",
"definitionVersion": "2.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_DeployExtensionSigVM",
"parameters": {
"attestationEndpoint": {
"value": "[parameters('attestationEndpoint')]"
}
}
},
{
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/009259b0-12e8-42c9-94e7-7af86aa58d13",
"definitionVersion": "2.*.*-preview",
"policyDefinitionReferenceId": "TrustedLaunch_DeployExtensionSigVMSS",
"parameters": {
"attestationEndpoint": {
"value": "[parameters('attestationEndpoint')]"
}
}
}
],
"versions": [
"3.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policySetDefinitions/281d9e47-d14d-4f05-b8eb-18f2c4a034ff",
"name": "281d9e47-d14d-4f05-b8eb-18f2c4a034ff"
}Bylaw281d9e47-d14d-4f05-b8eb-18f2c4a034ff.bylaw.ps1 · 79 lines
# Converted from GuestAttestationPrerequisites.json by ConvertTo-Bylaw.
Initiative '281d9e47-d14d-4f05-b8eb-18f2c4a034ff' {
Properties @{
DisplayName = '[Preview]: Configure prerequisites to enable Guest Attestation on Trusted Launch enabled VMs'
Description = 'Configure the Trusted Launch enabled virtual machines to automatically install the Guest Attestation extension and enable system-assigned managed identity to allow Azure Security Center to proactively attest and monitor the boot integrity. Boot integrity is attested via Remote Attestation. For more details, please refer to the following link - https://aka.ms/trustedlaunch'
Category = 'Trusted Launch'
Version = '3.0.0-preview'
Preview = $true
PolicyVersion = '3.0.0-preview'
}
Parameter AttestationEndpoint @{
Type = 'string'
Default = ''
DisplayName = 'Guest attestation tenant URL'
Description = 'The Microsoft Azure Attestation (MAA) custom tenant URL.'
}
PolicyDefinition @{
Id = '6074e9a3-c711-4856-976d-24d51f9e065b'
ReferenceId = 'TrustedLaunch_DeployLinuxExtensionVM'
Version = '7.*.*-preview'
Parameters = @{
attestationEndpoint = (Param AttestationEndpoint)
}
}
PolicyDefinition @{
Id = '98ea2fc7-6fc6-4fd1-9d8d-6331154da071'
ReferenceId = 'TrustedLaunch_DeployWindowsExtensionVM'
Version = '5.*.*-preview'
Parameters = @{
attestationEndpoint = (Param AttestationEndpoint)
}
}
PolicyDefinition @{
Id = '17b3de92-f710-4cf4-aa55-0e7859f1ed7b'
ReferenceId = 'TrustedLaunch_EnableSystemId'
Version = '6.*.*-preview'
}
PolicyDefinition @{
Id = '57c2e3f0-98cf-4c3b-aa6b-e8f70726e74e'
ReferenceId = 'TrustedLaunch_DeployLinuxExtensionVMSS'
Version = '6.*.*-preview'
Parameters = @{
attestationEndpoint = (Param AttestationEndpoint)
}
}
PolicyDefinition @{
Id = 'c9b2ae08-09e2-4f0e-bb43-b60bf0135bdf'
ReferenceId = 'TrustedLaunch_DeployWindowsExtensionVMSS'
Version = '4.*.*-preview'
Parameters = @{
attestationEndpoint = (Param AttestationEndpoint)
}
}
PolicyDefinition @{
Id = '496e010e-fa91-4c00-be4b-92b481f67b58'
ReferenceId = 'TrustedLaunch_DeployExtensionSigVM'
Version = '2.*.*-preview'
Parameters = @{
attestationEndpoint = (Param AttestationEndpoint)
}
}
PolicyDefinition @{
Id = '009259b0-12e8-42c9-94e7-7af86aa58d13'
ReferenceId = 'TrustedLaunch_DeployExtensionSigVMSS'
Version = '2.*.*-preview'
Parameters = @{
attestationEndpoint = (Param AttestationEndpoint)
}
}
}Members (7)
- Configure supported Linux virtual machines to automatically install the Guest Attestation extension
- Configure supported Windows virtual machines to automatically install the Guest Attestation extension
- [Preview]: Configure system-assigned managed identity to enable Azure Monitor assignments on VMs
- Configure supported Linux virtual machine scale sets to automatically install the Guest Attestation extension
- Configure supported Windows virtual machine scale sets to automatically install the Guest Attestation extension
- Configure VMs created with Shared Image Gallery images to install the Guest Attestation extension
- Configure VMSS created with Shared Image Gallery images to install the Guest Attestation extension
Source: built-in-policies/policySetDefinitions/Trusted Launch/GuestAttestationPrerequisites.json in Azure/azure-policy, under the MIT licence.
Bylaw