-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7924f92
commit 730279d
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
Powershell scripts/Enable AI Threat protection plan/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |