Sure let me help you on this, first open your Azure portal, go to the "Policy" service.
Click on "Definitions" then Click on "+ Policy definition."
Provide a name and description and category for your policy.
In the "Policy rule" section, use the below JSON policy definition
{
"mode": "All",
"policyRule": {
"if": {
"allOf": [
{
"field": "type",
"equals": "Microsoft.Storage/storageAccounts"
},
{
"not": {
"field": "Microsoft.Storage/storageAccounts/supportsHttpsTrafficOnly",
"equals": true
}
}
]
},
"then": {
"effect": "deny"
}
}
}
The abovepolicy denies the creation or modification of storage accounts that do not have (HTTPS) enabled.
finally in the "Policy" service, click on "Assignments" Click on "+ Assign policy.
Choose the policy definition you created earlier.
Set the "Parameters" as needed (if your policy has any).
Configure "Assignment name" and "Assignment description."
Click "Review + create" and then "Create" to assign the policy.
If this helps kindly accept the answer thanks much.