Skip to content

Commit

Permalink
Create README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
safeenab786 authored Sep 12, 2024
1 parent 7924f92 commit 730279d
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Powershell scripts/Enable AI Threat protection plan/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Enable AI workloads
This script will help you activate the AI workloads plan in Microsoft Defender for Cloud.

## Description


There are three ways to activate AI workloads plan:

1. Powershell
#### Example for Powershell command:

```PowerShell
Set-AzSecurityPricing -Name "AI" -PricingTier "Standard" -Extension '[{"name":"AIPromptEvidence","isEnabled":"True","additionalExtensionProperties":null}]'
Set-AzSecurityPricing -Name "AI" -PricingTier "Standard" -Extension '[{"name":"AIPromptEvidence","isEnabled":"False","additionalExtensionProperties":null}]'
```
[Reference Documentation](https://learn.microsoft.com/en-us/powershell/module/az.security/set-azsecuritypricing?view=azps-12.2.0)

2. Azure CLI
#### Example for Azure CLI:

```CLI
az security pricing create -n AI --tier standard --extensions name=AIPromptEvidence isEnabled=true
az security pricing create -n AI --tier standard --extensions name=AIPromptEvidence isEnabled=false
```
[Reference Documentation](https://learn.microsoft.com/en-us/cli/azure/security/pricing?view=azure-cli-latest)

3. Azure Policy

Activate AI workloads plan using a built-in policy "Enable threat protection for AI worklaods"

#### Link
The powershell script ready to use is posted in the following location:
[https://github.com/Azure/Azure-Security-Center/tree/master/Powershell scripts](https://github.com/Azure/Azure-Security-Center/tree/master/Powershell%20scripts)

0 comments on commit 730279d

Please sign in to comment.