Gallery › Stack HCI › Azure built-in policies
[Deprecated]: Azure Stack HCI servers should meet Secured-core requirements
Converted Policy Audit Disabled Mode All Version 1.1.0-deprecated Deprecated
This policy is deprecated because it targets security settings resource. Instead of continuing to use this policy, we recommend you instead assign this replacement policy with policy ID /providers/Microsoft.Authorization/policyDefinitions/5e6bf724-0154-49bc-985f-27b2e07e636b. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.
ConvertTo-Bylaw converted this policy, and proved that the file compiles back to the same definition.
Azure Policy JSONSecuredCoreCompliance_Audit.json · 56 lines
{
"properties": {
"displayName": "[Deprecated]: Azure Stack HCI servers should meet Secured-core requirements",
"policyType": "BuiltIn",
"mode": "All",
"description": "This policy is deprecated because it targets security settings resource. Instead of continuing to use this policy, we recommend you instead assign this replacement policy with policy ID /providers/Microsoft.Authorization/policyDefinitions/5e6bf724-0154-49bc-985f-27b2e07e636b. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.",
"metadata": {
"version": "1.1.0-deprecated",
"category": "Stack HCI",
"deprecated": true
},
"version": "1.1.0",
"parameters": {
"effect": {
"type": "String",
"defaultValue": "Disabled",
"allowedValues": [
"Audit",
"Disabled"
],
"metadata": {
"displayName": "Effect",
"description": "Enable or disable the execution of the policy"
}
}
},
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.AzureStackHCI/clusters/securitySettings"
},
{
"not": {
"field": "Microsoft.AzureStackHCI/clusters/securitySettings/securityComplianceStatus.securedCoreCompliance",
"in": [
"Compliant",
"Pending"
]
}
}
]
},
"then": {
"effect": "[parameters('effect')]"
}
},
"versions": [
"1.1.0",
"1.0.0-PREVIEW"
]
},
"id": "/providers/Microsoft.Authorization/policyDefinitions/56c47221-b8b7-446e-9ab7-c7c9dc07f0ad",
"name": "56c47221-b8b7-446e-9ab7-c7c9dc07f0ad"
}Bylaw56c47221-b8b7-446e-9ab7-c7c9dc07f0ad.bylaw.ps1 · 29 lines
# Converted from SecuredCoreCompliance_Audit.json by ConvertTo-Bylaw.
Policy '56c47221-b8b7-446e-9ab7-c7c9dc07f0ad' {
Properties @{
DisplayName = '[Deprecated]: Azure Stack HCI servers should meet Secured-core requirements'
Description = 'This policy is deprecated because it targets security settings resource. Instead of continuing to use this policy, we recommend you instead assign this replacement policy with policy ID /providers/Microsoft.Authorization/policyDefinitions/5e6bf724-0154-49bc-985f-27b2e07e636b. Learn more about policy definition deprecation at aka.ms/policydefdeprecation.'
Version = '1.1.0-deprecated'
Category = 'Stack HCI'
Deprecated = $true
PolicyVersion = '1.1.0'
Mode = 'All'
}
Parameter Effect @{
AllowedValues = @('Audit', 'Disabled')
Default = 'Disabled'
DisplayName = 'Effect'
Description = 'Enable or disable the execution of the policy'
}
Resource 'Microsoft.AzureStackHCI/clusters/securitySettings' {
Require 'securityComplianceStatus.securedCoreCompliance is one of 2 values' {
Field securityComplianceStatus.securedCoreCompliance | Must -BeIn @('Compliant', 'Pending')
}
}
Effect (Param Effect)
}Source: built-in-policies/policyDefinitions/Stack HCI/SecuredCoreCompliance_Audit.json in Azure/azure-policy, under the MIT licence.
Bylaw