We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have policies created using Azure Policy. I'd like to convert them to Pulumi policies by importing them.
{ "properties": { "displayName": "Vulnerability Assessment settings for SQL server should contain an email address to receive scan reports", "policyType": "BuiltIn", "mode": "Indexed", "description": "Ensure that an email address is provided for the 'Send scan reports to' field in the Vulnerability Assessment settings. This email address receives scan result summary after a periodic scan runs on SQL servers.", "metadata": { "version": "2.0.0", "category": "SQL" }, "parameters": { "effect": { "type": "String", "metadata": { "displayName": "Effect", "description": "Enable or disable the execution of the policy" }, "allowedValues": [ "AuditIfNotExists", "Disabled" ], "defaultValue": "AuditIfNotExists" } }, "policyRule": { "if": { "field": "type", "equals": "Microsoft.Sql/servers" }, "then": { "effect": "[parameters('effect')]", "details": { "type": "Microsoft.Sql/servers/vulnerabilityAssessments", "name": "default", "existenceCondition": { "allOf": [ { "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]", "notEquals": "" }, { "count": { "field": "Microsoft.Sql/servers/vulnerabilityAssessments/default.recurringScans.emails[*]" }, "notEquals": 0 } ] } } } } }, ... }
The text was updated successfully, but these errors were encountered:
That would be really cool to reuse existing policy definitions and import them as cross guards.
Sorry, something went wrong.
No branches or pull requests
Hello!
Issue details
I have policies created using Azure Policy. I'd like to convert them to Pulumi policies by importing them.
Expand to see an example of a policy definition
Affected area/feature
The text was updated successfully, but these errors were encountered: