Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Cdn")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.1")]
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.1")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("6.0.2")]
[assembly: System.Reflection.AssemblyVersionAttribute("6.0.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]


30 changes: 4 additions & 26 deletions src/Cdn/Cdn.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,8 @@ require:
- $(this-folder)/../../readme.azure.noprofile.md
input-file:
# You need to specify your swagger files here.
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/stable/2025-06-01/afdx.json
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/stable/2025-06-01/cdn.json
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/preview/2024-07-22-preview/edgeaction.json
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/Cdn/preview/2026-04-01-preview/openapi.json
- $(repo)/specification/cdn/resource-manager/Microsoft.Cdn/Cdn/preview/2024-07-22-preview/edgeaction.json

# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
# - (this-folder)/relative-path-to-your-swagger
Expand All @@ -44,7 +43,7 @@ module-version: 0.1.0
# Normally, title is the service name
title: Cdn
subject-prefix: $(service-name)
commit: 9b87e611b5016ed5c8d0eea2ee4578be782e7feb
commit: 9e9079a5d235e0c804e7fbb188258a84b4221571

# If there are post APIs for some kinds of actions in the RP, you may need to
# uncomment following line to support viaIdentity for these post APIs
Expand Down Expand Up @@ -469,7 +468,7 @@ directive:
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
"$ref": "../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
"$ref": "../../../../../../common-types/resource-management/v6/types.json#/definitions/ErrorResponse"
}
}
}
Expand Down Expand Up @@ -530,25 +529,4 @@ directive:
deprecated-by-azversion: 14.4.0
change-effective-date: 2025/11/01

# Breaking change: all EdgeAction cmdlets are being removed.
# The EdgeAction preview API (2024-07-22-preview) is being retired and will
# no longer be exposed by this module.
# Affected cmdlets (matched via subjectPrefix: Cdn + subject starting with EdgeAction):
# Add-AzCdnEdgeActionAttachment, Deploy-AzCdnEdgeActionVersionCode,
# Get-AzCdnEdgeAction, Get-AzCdnEdgeActionExecutionFilter,
# Get-AzCdnEdgeActionVersion, Get-AzCdnEdgeActionVersionCode,
# New-AzCdnEdgeAction, New-AzCdnEdgeActionExecutionFilter,
# New-AzCdnEdgeActionVersion, Remove-AzCdnEdgeAction,
# Remove-AzCdnEdgeActionAttachment, Remove-AzCdnEdgeActionExecutionFilter,
# Remove-AzCdnEdgeActionVersion, Update-AzCdnEdgeAction,
# Update-AzCdnEdgeActionExecutionFilter, Update-AzCdnEdgeActionVersion
- where:
subjectPrefix: Cdn
subject: ^EdgeAction.*$
set:
breaking-change:
change-description: All 'Az*CdnEdgeAction*' cmdlets are being deprecated and will be removed in a future release. The underlying EdgeAction preview API is being retired.
deprecated-by-version: 5.4.0
deprecated-by-azversion: 14.5.0
change-effective-date: 2026/05/15
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"resourceType": "cdnWebApplicationFirewallPolicies",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
"commands": [
{
"name": "Get-AzCdnPolicy",
"description": "Retrieve protection policy with specified name within a resource group.",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn/get-azcdnpolicy"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String[]>]"
]
}
]
},
"examples": [
{
"description": "Retrieve protection policy with specified name within a resource group.",
"parameters": [
{
"name": "-Name",
"value": "[Path.policyName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
},
{
"name": "Remove-AzCdnPolicy",
"description": "Deletes Policy",
"path": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/cdnWebApplicationFirewallPolicies/{policyName}",
"help": {
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn/remove-azcdnpolicy"
},
"parameterSets": [
{
"parameters": [
"-Name <String>",
"-ResourceGroupName <String>",
"[-SubscriptionId <String>]"
]
}
]
},
"examples": [
{
"description": "Deletes Policy",
"parameters": [
{
"name": "-Name",
"value": "[Path.policyName]"
},
{
"name": "-ResourceGroupName",
"value": "[Path.resourceGroupName]"
},
{
"name": "-SubscriptionId",
"value": "[Path.subscriptionId]"
}
]
}
]
}
]
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/afdEndpoints/routes",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/afdEndpoints",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/customDomains",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints/customDomains",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints/originGroups",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints/origins",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/endpoints",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/originGroups/origins",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/originGroups",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/ruleSets/rules",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/ruleSets",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/secrets",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles/securityPolicies",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
2 changes: 1 addition & 1 deletion src/Cdn/Cdn.Autorest/UX/Microsoft.Cdn/profiles.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"resourceType": "profiles",
"apiVersion": "2025-06-01",
"apiVersion": "2026-04-01-preview",
"learnMore": {
"url": "https://learn.microsoft.com/powershell/module/az.cdn"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@ function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject
$Domain,
[Parameter(HelpMessage="List of paths.")]
[string[]]
$PatternsToMatch
$PatternsToMatch,
[Parameter(HelpMessage="List of routes.")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.IResourceReference[]]
$Route
)

process {
Expand All @@ -48,6 +51,9 @@ function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject
if ($PSBoundParameters.ContainsKey('PatternsToMatch')) {
$Object.PatternsToMatch = $PatternsToMatch
}
if ($PSBoundParameters.ContainsKey('Route')) {
$Object.Route = $Route
}
return $Object
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject
[Parameter(HelpMessage="Waf associations.")]
[Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ISecurityPolicyWebApplicationFirewallAssociation[]]
$Association,
[Parameter(HelpMessage="Indicates if this is a profile-level WAF policy.")]
[bool]
$IsProfileLevel,
[Parameter(HelpMessage="Resource ID.")]
[string]
$WafPolicyId
Expand All @@ -45,6 +48,9 @@ function New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallParametersObject
if ($PSBoundParameters.ContainsKey('Association')) {
$Object.Association = $Association
}
if ($PSBoundParameters.ContainsKey('IsProfileLevel')) {
$Object.IsProfileLevel = $IsProfileLevel
}
if ($PSBoundParameters.ContainsKey('WafPolicyId')) {
$Object.WafPolicyId = $WafPolicyId
}
Expand Down
10 changes: 3 additions & 7 deletions src/Cdn/Cdn.Autorest/docs/Add-AzCdnEdgeActionAttachment.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,12 @@ A long-running operation for adding an EdgeAction attachment.

## EXAMPLES

### Example 1: Add an Edge Action Attachment
### Example 1: Add an EdgeAction attachment
```powershell
Add-AzCdnEdgeActionAttachment -ResourceGroupName testps-rg-da16jm -EdgeActionName edgeaction001 -AttachedResourceId "/subscriptions/12345678-1234-1234-1234-123456789012/resourceGroups/testps-rg-da16jm/providers/Microsoft.Cdn/profiles/testprofile/endpoints/endpoint001"
Add-AzCdnEdgeActionAttachment -ResourceGroupName testps-rg-da16jm -EdgeActionName edgeaction001 -AttachedResourceId "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testps-rg-da16jm/providers/Microsoft.Cdn/profiles/fdp001/ruleSets/ruleset001/rules/rule001"
```

```output
EdgeActionId : 12345678-1234-1234-1234-123456789012
```

Add an Edge Action Attachment to link an edge action with a CDN resource using its full resource ID
Adds the specified Front Door rule as an attachment to the EdgeAction resource.

## PARAMETERS

Expand Down
Loading