mirror of
https://dev.azure.com/effectory/Survey%20Software/_git/Cloud%20Engineering
synced 2026-02-27 10:45:02 +01:00
51 lines
1.2 KiB
JSON
51 lines
1.2 KiB
JSON
{
|
|
"mode": "All",
|
|
"policyRule": {
|
|
"if": {
|
|
"anyOf": [
|
|
{
|
|
"allOf": [
|
|
{
|
|
"field": "type",
|
|
"equals": "Microsoft.Storage/storageAccounts"
|
|
},
|
|
{
|
|
"field": "Microsoft.Storage/storageAccounts/minimumTlsVersion",
|
|
"notEquals": "TLS1_2"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"allOf": [
|
|
{
|
|
"field": "type",
|
|
"equals": "Microsoft.Storage/storageAccounts"
|
|
},
|
|
{
|
|
"field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
|
|
"notEquals": "true"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"then": {
|
|
"effect": "[parameters('effect')]"
|
|
}
|
|
},
|
|
"parameters": {
|
|
"effect": {
|
|
"type": "String",
|
|
"metadata": {
|
|
"displayName": "Effect",
|
|
"description": "Enable or disable the execution of the policy"
|
|
},
|
|
"allowedValues": [
|
|
"Audit",
|
|
"deny",
|
|
"Disabled"
|
|
],
|
|
"defaultValue": "Audit"
|
|
}
|
|
}
|
|
} |