Skip to content

Commit 68e0001

Browse files
Ptnan7JingnanNoriZC
authored
{AFD}add default value for content-types-to-compress (#28301)
Co-authored-by: Jingnan <[email protected]> Co-authored-by: NoriZC <[email protected]>
1 parent c9c0617 commit 68e0001

File tree

68 files changed

+659
-224
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+659
-224
lines changed

src/Cdn/Cdn.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - Cdn")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("3.3.1")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("3.3.1")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("5.0.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("5.0.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]

src/Cdn/Cdn.Autorest/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,6 +345,12 @@ directive:
345345
- where:
346346
subject: KeyGroupUpdate
347347
hide: true
348+
349+
# Hide New-AzFrontDoorCdnRoute to customize
350+
- where:
351+
subject: Route
352+
verb: New
353+
hide: true
348354

349355
# Rename
350356
- where:

src/Cdn/Cdn.Autorest/custom/New-AzFrontDoorCdnRoute.ps1

Lines changed: 424 additions & 0 deletions
Large diffs are not rendered by default.

src/Cdn/Cdn.Autorest/docs/Az.Cdn.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ Migrate the CDN profile to Azure Frontdoor(Standard/Premium) profile.
114114
This step prepares the profile for migration and will be followed by Commit to finalize the migration.
115115

116116
### [New-AzCdnCustomDomain](New-AzCdnCustomDomain.md)
117-
create a new custom domain within an endpoint.
117+
Create a new custom domain within an endpoint.
118118

119119
### [New-AzCdnDeliveryRuleCacheExpirationActionObject](New-AzCdnDeliveryRuleCacheExpirationActionObject.md)
120120
Create an in-memory object for DeliveryRuleCacheExpirationAction.
@@ -174,7 +174,7 @@ Create an in-memory object for DeliveryRuleUrlFileNameCondition.
174174
Create an in-memory object for DeliveryRuleUrlPathCondition.
175175

176176
### [New-AzCdnEndpoint](New-AzCdnEndpoint.md)
177-
create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
177+
Create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
178178

179179
### [New-AzCdnHealthProbeParametersObject](New-AzCdnHealthProbeParametersObject.md)
180180
Create an in-memory object for HealthProbeParameters.
@@ -189,10 +189,10 @@ Create an in-memory object for CdnManagedHttpsParameters.
189189
Create an in-memory object for MigrationEndpointMapping.
190190

191191
### [New-AzCdnOrigin](New-AzCdnOrigin.md)
192-
create a new origin within the specified endpoint.
192+
Create a new origin within the specified endpoint.
193193

194194
### [New-AzCdnOriginGroup](New-AzCdnOriginGroup.md)
195-
create a new origin group within the specified endpoint.
195+
Create a new origin group within the specified endpoint.
196196

197197
### [New-AzCdnOriginGroupOverrideActionObject](New-AzCdnOriginGroupOverrideActionObject.md)
198198
Create an in-memory object for OriginGroupOverrideAction.
@@ -222,13 +222,13 @@ Create an in-memory object for UrlSigningAction.
222222
Create an in-memory object for UserManagedHttpsParameters.
223223

224224
### [New-AzFrontDoorCdnCustomDomain](New-AzFrontDoorCdnCustomDomain.md)
225-
create a new domain within the specified profile.
225+
Create a new domain within the specified profile.
226226

227227
### [New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject](New-AzFrontDoorCdnCustomDomainTlsSettingParametersObject.md)
228228
Create an in-memory object for AfdDomainHttpsParameters.
229229

230230
### [New-AzFrontDoorCdnEndpoint](New-AzFrontDoorCdnEndpoint.md)
231-
create a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
231+
Create a new AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
232232

233233
### [New-AzFrontDoorCdnMigrationParametersObject](New-AzFrontDoorCdnMigrationParametersObject.md)
234234
Create an in-memory object for MigrationParameters.
@@ -237,10 +237,10 @@ Create an in-memory object for MigrationParameters.
237237
Create an in-memory object for MigrationWebApplicationFirewallMapping.
238238

239239
### [New-AzFrontDoorCdnOrigin](New-AzFrontDoorCdnOrigin.md)
240-
create a new origin within the specified origin group.
240+
Create a new origin within the specified origin group.
241241

242242
### [New-AzFrontDoorCdnOriginGroup](New-AzFrontDoorCdnOriginGroup.md)
243-
create a new origin group within the specified profile.
243+
Create a new origin group within the specified profile.
244244

245245
### [New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject](New-AzFrontDoorCdnOriginGroupHealthProbeSettingObject.md)
246246
Create an in-memory object for HealthProbeParameters.
@@ -270,10 +270,10 @@ Create an in-memory object for AfdPurgeParameters.
270270
Create an in-memory object for ResourceReference.
271271

272272
### [New-AzFrontDoorCdnRoute](New-AzFrontDoorCdnRoute.md)
273-
create a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
273+
Create a new route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
274274

275275
### [New-AzFrontDoorCdnRule](New-AzFrontDoorCdnRule.md)
276-
create a new delivery rule within the specified rule set.
276+
Create a new delivery rule within the specified rule set.
277277

278278
### [New-AzFrontDoorCdnRuleClientPortConditionObject](New-AzFrontDoorCdnRuleClientPortConditionObject.md)
279279
Create an in-memory object for DeliveryRuleClientPortCondition.
@@ -327,7 +327,7 @@ Create an in-memory object for DeliveryRuleRouteConfigurationOverrideAction.
327327
Create an in-memory object for DeliveryRuleServerPortCondition.
328328

329329
### [New-AzFrontDoorCdnRuleSet](New-AzFrontDoorCdnRuleSet.md)
330-
create a new rule set within the specified profile.
330+
Create a new rule set within the specified profile.
331331

332332
### [New-AzFrontDoorCdnRuleSocketAddrConditionObject](New-AzFrontDoorCdnRuleSocketAddrConditionObject.md)
333333
Create an in-memory object for DeliveryRuleSocketAddrCondition.
@@ -354,7 +354,7 @@ Create an in-memory object for UrlRewriteAction.
354354
Create an in-memory object for UrlSigningAction.
355355

356356
### [New-AzFrontDoorCdnSecret](New-AzFrontDoorCdnSecret.md)
357-
create a new Secret within the specified profile.
357+
Create a new Secret within the specified profile.
358358

359359
### [New-AzFrontDoorCdnSecretCustomerCertificateParametersObject](New-AzFrontDoorCdnSecretCustomerCertificateParametersObject.md)
360360
Create an in-memory object for CustomerCertificateParameters.
@@ -369,7 +369,7 @@ Create an in-memory object for ManagedCertificateParameters.
369369
Create an in-memory object for UrlSigningKeyParameters.
370370

371371
### [New-AzFrontDoorCdnSecurityPolicy](New-AzFrontDoorCdnSecurityPolicy.md)
372-
create a new security policy within the specified profile.
372+
Create a new security policy within the specified profile.
373373

374374
### [New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject](New-AzFrontDoorCdnSecurityPolicyWebApplicationFirewallAssociationObject.md)
375375
Create an in-memory object for SecurityPolicyWebApplicationFirewallAssociation.
@@ -470,39 +470,39 @@ Validates the custom domain mapping to ensure it maps to the correct Azure Front
470470
Check if a classic AFD instance can be migrated to Azure Front Door(Standard/Premium) profile.
471471

472472
### [Update-AzCdnEndpoint](Update-AzCdnEndpoint.md)
473-
update an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
473+
Update an existing CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
474474
Only tags can be updated after creating an endpoint.
475475
To update origins, use the update Origin operation.
476476
To update origin groups, use the update Origin group operation.
477477
To update custom domains, use the update Custom Domain operation.
478478

479479
### [Update-AzCdnOrigin](Update-AzCdnOrigin.md)
480-
update an existing origin within an endpoint.
480+
Update an existing origin within an endpoint.
481481

482482
### [Update-AzCdnOriginGroup](Update-AzCdnOriginGroup.md)
483-
update an existing origin group within an endpoint.
483+
Update an existing origin group within an endpoint.
484484

485485
### [Update-AzCdnProfile](Update-AzCdnProfile.md)
486486
Updates an existing CDN profile with the specified profile name under the specified subscription and resource group.
487487

488488
### [Update-AzFrontDoorCdnCustomDomain](Update-AzFrontDoorCdnCustomDomain.md)
489-
update an existing domain within a profile.
489+
Update an existing domain within a profile.
490490

491491
### [Update-AzFrontDoorCdnCustomDomainValidationToken](Update-AzFrontDoorCdnCustomDomainValidationToken.md)
492-
refresh the domain validation token.
492+
Refresh the domain validation token.
493493

494494
### [Update-AzFrontDoorCdnEndpoint](Update-AzFrontDoorCdnEndpoint.md)
495-
update an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
495+
Update an existing AzureFrontDoor endpoint with the specified endpoint name under the specified subscription, resource group and profile.
496496
Only tags can be updated after creating an endpoint.
497497
To update origins, use the update Origin operation.
498498
To update origin groups, use the update Origin group operation.
499499
To update domains, use the update Custom Domain operation.
500500

501501
### [Update-AzFrontDoorCdnOrigin](Update-AzFrontDoorCdnOrigin.md)
502-
update an existing origin within an origin group.
502+
Update an existing origin within an origin group.
503503

504504
### [Update-AzFrontDoorCdnOriginGroup](Update-AzFrontDoorCdnOriginGroup.md)
505-
update an existing origin group within a profile.
505+
Update an existing origin group within a profile.
506506

507507
### [Update-AzFrontDoorCdnProfile](Update-AzFrontDoorCdnProfile.md)
508508
Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN profile with the specified profile name under the specified subscription and resource group.
@@ -511,14 +511,14 @@ Updates an existing Azure Front Door Standard or Azure Front Door Premium or CDN
511511
Upgrade a profile from Standard_AzureFrontDoor to Premium_AzureFrontDoor.
512512

513513
### [Update-AzFrontDoorCdnRoute](Update-AzFrontDoorCdnRoute.md)
514-
update an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
514+
Update an existing route with the specified route name under the specified subscription, resource group, profile, and AzureFrontDoor endpoint.
515515

516516
### [Update-AzFrontDoorCdnRule](Update-AzFrontDoorCdnRule.md)
517-
update an existing delivery rule within a rule set.
517+
Update an existing delivery rule within a rule set.
518518

519519
### [Update-AzFrontDoorCdnSecret](Update-AzFrontDoorCdnSecret.md)
520-
update a new Secret within the specified profile.
520+
Update a new Secret within the specified profile.
521521

522522
### [Update-AzFrontDoorCdnSecurityPolicy](Update-AzFrontDoorCdnSecurityPolicy.md)
523-
patch an existing security policy within a profile.
523+
Patch an existing security policy within a profile.
524524

src/Cdn/Cdn.Autorest/docs/Enable-AzFrontDoorCdnProfileMigration.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ Commit the migrated Azure Front Door(Standard/Premium) profile..
2828
Enable-AzFrontDoorCdnProfileMigration -ProfileName name-migrated -ResourceGroupName rgName
2929
```
3030

31+
Commit the classic AFD Migration.
3132
Commit the migrated Azure Front Door(Standard/Premium) profile.
3233

3334
### Example 2: Commit the migrated Azure Front Door(Standard/Premium) profile., when the subscription of the profile is different from the local subscription
3435
```powershell
3536
Enable-AzFrontDoorCdnProfileMigration -ProfileName name-migrated -ResourceGroupName rgName -SubscriptionId testSubId01
3637
```
3738

39+
Commit the classic AFD Migration.
3840
Commit the migrated Azure Front Door(Standard/Premium) profile, when the subscription of the profile is different from the local subscription
3941

4042
## PARAMETERS

src/Cdn/Cdn.Autorest/docs/Invoke-AzCdnCommitProfileToAFDMigration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ Commit the migrated Azure Front Door(Standard/Premium) profile..
2828
Invoke-AzCdnCommitProfileToAFDMigration -ProfileName name-migrated -ResourceGroupName rgName
2929
```
3030

31-
Commit the Migration, the Microsoft CDN (classic) profile will be upgraded AFD.
31+
Commit the Classic CDN Migration, the Microsoft CDN (classic) profile will be upgraded AFD.
3232
After migration/upgrade, you won’t be able to view CDN resources.
3333

3434
### Example 2: Commit the migrated Microsoft CDN (classic) profile, when the subscription of the profile is different from the local subscription
3535
```powershell
3636
Invoke-AzCdnCommitProfileToAFDMigration -ProfileName name-migrated -ResourceGroupName rgName -SubscriptionId testSubId01
3737
```
3838

39-
Commit the Migration with different Subscription ID in local env, the Microsoft CDN (classic) profile will be upgraded AFD.
39+
Commit the Classic CDN Migration with different Subscription ID in local env, the Microsoft CDN (classic) profile will be upgraded AFD.
4040
After migration/upgrade, you won’t be able to view CDN resources.
4141

4242
## PARAMETERS

src/Cdn/Cdn.Autorest/docs/New-AzCdnCustomDomain.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# New-AzCdnCustomDomain
99

1010
## SYNOPSIS
11-
create a new custom domain within an endpoint.
11+
Create a new custom domain within an endpoint.
1212

1313
## SYNTAX
1414

@@ -61,7 +61,7 @@ New-AzCdnCustomDomain -EndpointName <String> -Name <String> -ProfileName <String
6161
```
6262

6363
## DESCRIPTION
64-
create a new custom domain within an endpoint.
64+
Create a new custom domain within an endpoint.
6565

6666
## EXAMPLES
6767

src/Cdn/Cdn.Autorest/docs/New-AzCdnEndpoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# New-AzCdnEndpoint
99

1010
## SYNOPSIS
11-
create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
11+
Create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
1212

1313
## SYNTAX
1414

@@ -57,7 +57,7 @@ New-AzCdnEndpoint -Name <String> -ProfileName <String> -ResourceGroupName <Strin
5757
```
5858

5959
## DESCRIPTION
60-
create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
60+
Create a new CDN endpoint with the specified endpoint name under the specified subscription, resource group and profile.
6161

6262
## EXAMPLES
6363

src/Cdn/Cdn.Autorest/docs/New-AzCdnOrigin.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# New-AzCdnOrigin
99

1010
## SYNOPSIS
11-
create a new origin within the specified endpoint.
11+
Create a new origin within the specified endpoint.
1212

1313
## SYNTAX
1414

@@ -66,7 +66,7 @@ New-AzCdnOrigin -EndpointName <String> -Name <String> -ProfileName <String> -Res
6666
```
6767

6868
## DESCRIPTION
69-
create a new origin within the specified endpoint.
69+
Create a new origin within the specified endpoint.
7070

7171
## EXAMPLES
7272

src/Cdn/Cdn.Autorest/docs/New-AzCdnOriginGroup.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ schema: 2.0.0
88
# New-AzCdnOriginGroup
99

1010
## SYNOPSIS
11-
create a new origin group within the specified endpoint.
11+
Create a new origin group within the specified endpoint.
1212

1313
## SYNTAX
1414

@@ -67,7 +67,7 @@ New-AzCdnOriginGroup -EndpointName <String> -Name <String> -ProfileName <String>
6767
```
6868

6969
## DESCRIPTION
70-
create a new origin group within the specified endpoint.
70+
Create a new origin group within the specified endpoint.
7171

7272
## EXAMPLES
7373

0 commit comments

Comments
 (0)