-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Showing
3 changed files
with
18 additions
and
15 deletions.
There are no files selected for viewing
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
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
29 changes: 16 additions & 13 deletions
29
src/Kusto/Kusto.Autorest/examples/Get-AzKustoClusterCalloutPolicy.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 |
---|---|---|
@@ -1,16 +1,19 @@ | ||
### Example 1: Adding two callout policies to a cluster | ||
### Example 1: List callout policies to a cluster | ||
```powershell | ||
$kustoCalloutPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20240413.ICalloutPolicy]@{ | ||
calloutType = "kusto" | ||
outboundAccess = "Allow" | ||
calloutUriRegex = "*" | ||
} | ||
$sqlCalloutPolicy = [Microsoft.Azure.PowerShell.Cmdlets.Kusto.Models.Api20240413.ICalloutPolicy]@{ | ||
calloutType = "sql" | ||
outboundAccess = "Deny" | ||
calloutUriRegex = "*" | ||
} | ||
Add-AzKustoClusterCalloutPolicy -ResourceGroupName rg1 -ClusterName cluster1 -SubscriptionId sub -Value -Value @($kustoCalloutPolicy, $sqlCalloutPolicy) | ||
Get-AzKustoClusterCalloutPolicy -ResourceGroupName rg1 -ClusterName cluster1 -SubscriptionId sub | ||
``` | ||
|
||
```output | ||
CalloutId CalloutType CalloutUriRegex OutboundAccess | ||
--------- ----------- --------------- -------------- | ||
*_cosmosdb cosmosdb * Allow | ||
*_postgresql postgresql * Deny | ||
*_sandbox_artifacts sandbox_artifacts * Allow | ||
*_genevametrics genevametrics * Deny | ||
*_kusto kusto * Allow | ||
*_sql sql * Deny | ||
``` | ||
|
||
The above command adds the two defined callout policies to cluster1 in rg1. | ||
The above command returns a list of the callout policies of cluster1 in rg1. |