Skip to content
New issue

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

Alias request: "Microsoft.SecurityCopilot/capacities/geo" #1398

Open
PieterbasNagengast opened this issue Oct 29, 2024 · 0 comments
Open

Alias request: "Microsoft.SecurityCopilot/capacities/geo" #1398

PieterbasNagengast opened this issue Oct 29, 2024 · 0 comments

Comments

@PieterbasNagengast
Copy link

Scenario

Need to audit or deny specific GEO's (Location) for Copilot for Security capacities.

Definition

    {
        "properties": {
        "displayName": "Only allow specific GEO for Copilot for Security capacities prompt evaluation",
        "description": "Only allow specific GEO for Copilot for Security capacities prompt evaluation",
	"parameters": {
		"geo": {
			"type": "string",
			"metadata": {
					"description": "Copilot prompt evaluation Location"
			},
			"allowedValues": [
				"EU",
				"US",
				"UK",
				"ANZ"
			]
		},
		"effect": {
			"type": "String",
			"metadata": {
				"displayName": "Effect",
				"description": "Enable or disable the execution of the policy"
			},
			"allowedValues": [
				"Audit",
				"Disabled",
				"Deny"
			],
			"defaultValue": "Deny"
		}
	},
  "policyRule": {
    "if": {
			"allOf": [
          {
            "field": "type",
            "equals": "Microsoft.SecurityCopilot/capacities"
          },
					{
            "field": "Microsoft.SecurityCopilot/capacities/geo",
            "notEquals": "[parameters('geo')]"
          }
			]
    },
    "then": {
      "effect": "[parameters('effect')]"
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant