Hi @Kateryna Balaban I didn't find a specific examples but if you tried pattern matching and it didn't work, try using a regular expression. If that doesn't work let me know.
{
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Resources/subscriptions/resourceGroups"
},
{
"not": {
"field": "name",
"match": "[concat(parameters('namingConvention'), parameters('allowedNumbers'),'^[a-zA-Z0-9_]*$'"]
}
}
]
},
"then": {
"effect": "deny"
}
}