Azure Trusted Launch, VM’lerinizi rootkit ve bootkit saldırılarına karşı korumak için Secure Boot ve vTPM gibi özellikler sunar. PowerShell ile bu güvenlik özelliklerini etkinleştirebilirsiniz.
Mevcut VM’lerin Trusted Launch Durumunu Kontrol Etmek
PowerShell
$vms = Get-AzVM -ResourceGroupName vpntest
$report = $vms | ForEach-Object {
$secProfile = $_.SecurityProfile
[PSCustomObject]@{
VMName = $_.Name
SecurityType = $secProfile?.SecurityType ?? "Standard"
SecureBoot = $secProfile?.UefiSettings?.SecureBootEnabled ?? $false
vTPM = $secProfile?.UefiSettings?.VTpmEnabled ?? $false
}
}
$report | Format-Table -AutoSize
$report | Where-Object { $_.SecurityType -ne "TrustedLaunch" } |
Export-Csv "non-trusted-vms.csv" -NoTypeInformation
Write-Host "Rapor kaydedildi." -ForegroundColor Cyan
