Skip to content

Commit 649648b

Browse files
Migrate Cdn from generation to main (#22760)
* Move Cdn to main * Update ChangeLog.md --------- Co-authored-by: Beisi Zhou <[email protected]>
1 parent e9a8f65 commit 649648b

23 files changed

+218
-120
lines changed

src/Cdn/Az.Cdn.format.ps1xml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3297,28 +3297,6 @@
32973297
</TableRowEntries>
32983298
</TableControl>
32993299
</View>
3300-
<View>
3301-
<Name>Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20230501.EdgeNode</Name>
3302-
<ViewSelectedBy>
3303-
<TypeName>Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20230501.EdgeNode</TypeName>
3304-
</ViewSelectedBy>
3305-
<TableControl>
3306-
<TableHeaders>
3307-
<TableColumnHeader>
3308-
<Label>Name</Label>
3309-
</TableColumnHeader>
3310-
</TableHeaders>
3311-
<TableRowEntries>
3312-
<TableRowEntry>
3313-
<TableColumnItems>
3314-
<TableColumnItem>
3315-
<PropertyName>Name</PropertyName>
3316-
</TableColumnItem>
3317-
</TableColumnItems>
3318-
</TableRowEntry>
3319-
</TableRowEntries>
3320-
</TableControl>
3321-
</View>
33223300
<View>
33233301
<Name>Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.Api20230501.EdgenodeResult</Name>
33243302
<ViewSelectedBy>

src/Cdn/Az.Cdn.psd1

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 6/6/2023
6+
# Generated on: 9/11/2023
77
#
88

99
@{
@@ -226,8 +226,7 @@ PrivateData = @{
226226
# IconUri = ''
227227

228228
# ReleaseNotes of this module
229-
ReleaseNotes = '* Upgraded API version to 2023-05-01
230-
* Fixed known issue for ''Update-AzCdnProfile'', ''Update-AzFrontDoorCdnProfile'', ''Remove-AzCdnProfile'', ''Remove-AzCdnProfile'''
229+
# ReleaseNotes = ''
231230

232231
# Prerelease string of this module
233232
# Prerelease = ''

src/Cdn/Cdn.sln

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,19 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.0.31903.59
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{E457DD4B-9010-4138-A0A3-5F5997CE548C}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Accounts", "..\Accounts\Accounts\Accounts.csproj", "{7E484AE2-FFB4-43B9-B753-998F7CF2A2BA}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{49F36FA5-A063-4240-9309-0FC3FD812B45}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AssemblyLoading", "..\Accounts\AssemblyLoading\AssemblyLoading.csproj", "{C18D043B-CFE1-4724-840D-551F2F8FA564}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{776AC8ED-F4EF-4DD9-B958-9B271BD6FF93}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication", "..\Accounts\Authentication\Authentication.csproj", "{8A78E7D0-6B8E-4863-BD9D-E3FF2D67F1C5}"
1111
EndProject
12-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{4094C014-7DA6-4B92-B83A-DAEA42E98231}"
12+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authentication.ResourceManager", "..\Accounts\Authentication.ResourceManager\Authentication.ResourceManager.csproj", "{1FB6A813-63DD-49B1-9EAA-822CCB6A68CE}"
1313
EndProject
14-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{5EDEB58A-9296-4DFD-9E03-47645649CE25}"
14+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AuthenticationAssemblyLoadContext", "..\Accounts\AuthenticationAssemblyLoadContext\AuthenticationAssemblyLoadContext.csproj", "{6BBE4D45-A2A3-445B-9CBD-03A89CA921F3}"
1515
EndProject
16-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{61E836C5-41CB-4954-B1D4-39212C148439}"
16+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Authenticators", "..\Accounts\Authenticators\Authenticators.csproj", "{3E90800D-5DC6-4BA1-B89F-661CCA463A1B}"
1717
EndProject
18-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Cdn", "Az.Cdn.csproj", "{D1EDFBB2-89C0-4D0E-AF66-DF26CE4F9DDC}"
18+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Az.Cdn", "Az.Cdn.csproj", "{879319E3-80DC-4A5C-B5A0-3CCF326F9D0C}"
1919
EndProject
2020
Global
2121
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -26,33 +26,33 @@ Global
2626
HideSolutionNode = FALSE
2727
EndGlobalSection
2828
GlobalSection(ProjectConfigurationPlatforms) = postSolution
29-
{E457DD4B-9010-4138-A0A3-5F5997CE548C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30-
{E457DD4B-9010-4138-A0A3-5F5997CE548C}.Debug|Any CPU.Build.0 = Debug|Any CPU
31-
{E457DD4B-9010-4138-A0A3-5F5997CE548C}.Release|Any CPU.ActiveCfg = Release|Any CPU
32-
{E457DD4B-9010-4138-A0A3-5F5997CE548C}.Release|Any CPU.Build.0 = Release|Any CPU
33-
{49F36FA5-A063-4240-9309-0FC3FD812B45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34-
{49F36FA5-A063-4240-9309-0FC3FD812B45}.Debug|Any CPU.Build.0 = Debug|Any CPU
35-
{49F36FA5-A063-4240-9309-0FC3FD812B45}.Release|Any CPU.ActiveCfg = Release|Any CPU
36-
{49F36FA5-A063-4240-9309-0FC3FD812B45}.Release|Any CPU.Build.0 = Release|Any CPU
37-
{776AC8ED-F4EF-4DD9-B958-9B271BD6FF93}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38-
{776AC8ED-F4EF-4DD9-B958-9B271BD6FF93}.Debug|Any CPU.Build.0 = Debug|Any CPU
39-
{776AC8ED-F4EF-4DD9-B958-9B271BD6FF93}.Release|Any CPU.ActiveCfg = Release|Any CPU
40-
{776AC8ED-F4EF-4DD9-B958-9B271BD6FF93}.Release|Any CPU.Build.0 = Release|Any CPU
41-
{4094C014-7DA6-4B92-B83A-DAEA42E98231}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42-
{4094C014-7DA6-4B92-B83A-DAEA42E98231}.Debug|Any CPU.Build.0 = Debug|Any CPU
43-
{4094C014-7DA6-4B92-B83A-DAEA42E98231}.Release|Any CPU.ActiveCfg = Release|Any CPU
44-
{4094C014-7DA6-4B92-B83A-DAEA42E98231}.Release|Any CPU.Build.0 = Release|Any CPU
45-
{5EDEB58A-9296-4DFD-9E03-47645649CE25}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46-
{5EDEB58A-9296-4DFD-9E03-47645649CE25}.Debug|Any CPU.Build.0 = Debug|Any CPU
47-
{5EDEB58A-9296-4DFD-9E03-47645649CE25}.Release|Any CPU.ActiveCfg = Release|Any CPU
48-
{5EDEB58A-9296-4DFD-9E03-47645649CE25}.Release|Any CPU.Build.0 = Release|Any CPU
49-
{61E836C5-41CB-4954-B1D4-39212C148439}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50-
{61E836C5-41CB-4954-B1D4-39212C148439}.Debug|Any CPU.Build.0 = Debug|Any CPU
51-
{61E836C5-41CB-4954-B1D4-39212C148439}.Release|Any CPU.ActiveCfg = Release|Any CPU
52-
{61E836C5-41CB-4954-B1D4-39212C148439}.Release|Any CPU.Build.0 = Release|Any CPU
53-
{D1EDFBB2-89C0-4D0E-AF66-DF26CE4F9DDC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54-
{D1EDFBB2-89C0-4D0E-AF66-DF26CE4F9DDC}.Debug|Any CPU.Build.0 = Debug|Any CPU
55-
{D1EDFBB2-89C0-4D0E-AF66-DF26CE4F9DDC}.Release|Any CPU.ActiveCfg = Release|Any CPU
56-
{D1EDFBB2-89C0-4D0E-AF66-DF26CE4F9DDC}.Release|Any CPU.Build.0 = Release|Any CPU
29+
{7E484AE2-FFB4-43B9-B753-998F7CF2A2BA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
30+
{7E484AE2-FFB4-43B9-B753-998F7CF2A2BA}.Debug|Any CPU.Build.0 = Debug|Any CPU
31+
{7E484AE2-FFB4-43B9-B753-998F7CF2A2BA}.Release|Any CPU.ActiveCfg = Release|Any CPU
32+
{7E484AE2-FFB4-43B9-B753-998F7CF2A2BA}.Release|Any CPU.Build.0 = Release|Any CPU
33+
{C18D043B-CFE1-4724-840D-551F2F8FA564}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
34+
{C18D043B-CFE1-4724-840D-551F2F8FA564}.Debug|Any CPU.Build.0 = Debug|Any CPU
35+
{C18D043B-CFE1-4724-840D-551F2F8FA564}.Release|Any CPU.ActiveCfg = Release|Any CPU
36+
{C18D043B-CFE1-4724-840D-551F2F8FA564}.Release|Any CPU.Build.0 = Release|Any CPU
37+
{8A78E7D0-6B8E-4863-BD9D-E3FF2D67F1C5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
38+
{8A78E7D0-6B8E-4863-BD9D-E3FF2D67F1C5}.Debug|Any CPU.Build.0 = Debug|Any CPU
39+
{8A78E7D0-6B8E-4863-BD9D-E3FF2D67F1C5}.Release|Any CPU.ActiveCfg = Release|Any CPU
40+
{8A78E7D0-6B8E-4863-BD9D-E3FF2D67F1C5}.Release|Any CPU.Build.0 = Release|Any CPU
41+
{1FB6A813-63DD-49B1-9EAA-822CCB6A68CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
42+
{1FB6A813-63DD-49B1-9EAA-822CCB6A68CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
43+
{1FB6A813-63DD-49B1-9EAA-822CCB6A68CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
44+
{1FB6A813-63DD-49B1-9EAA-822CCB6A68CE}.Release|Any CPU.Build.0 = Release|Any CPU
45+
{6BBE4D45-A2A3-445B-9CBD-03A89CA921F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
46+
{6BBE4D45-A2A3-445B-9CBD-03A89CA921F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
47+
{6BBE4D45-A2A3-445B-9CBD-03A89CA921F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
48+
{6BBE4D45-A2A3-445B-9CBD-03A89CA921F3}.Release|Any CPU.Build.0 = Release|Any CPU
49+
{3E90800D-5DC6-4BA1-B89F-661CCA463A1B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
50+
{3E90800D-5DC6-4BA1-B89F-661CCA463A1B}.Debug|Any CPU.Build.0 = Debug|Any CPU
51+
{3E90800D-5DC6-4BA1-B89F-661CCA463A1B}.Release|Any CPU.ActiveCfg = Release|Any CPU
52+
{3E90800D-5DC6-4BA1-B89F-661CCA463A1B}.Release|Any CPU.Build.0 = Release|Any CPU
53+
{879319E3-80DC-4A5C-B5A0-3CCF326F9D0C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
54+
{879319E3-80DC-4A5C-B5A0-3CCF326F9D0C}.Debug|Any CPU.Build.0 = Debug|Any CPU
55+
{879319E3-80DC-4A5C-B5A0-3CCF326F9D0C}.Release|Any CPU.ActiveCfg = Release|Any CPU
56+
{879319E3-80DC-4A5C-B5A0-3CCF326F9D0C}.Release|Any CPU.Build.0 = Release|Any CPU
5757
EndGlobalSection
5858
EndGlobal

src/Cdn/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
-->
2020

2121
## Upcoming Release
22+
* Customized output property for `Get-AzCdnEdgeNode` command
2223

2324
## Version 3.1.0
2425
* Upgraded API version to 2023-05-01

src/Cdn/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ directive:
272272
labels:
273273
PropertiesMigratedProfileResourceIdId: MigratedProfileResourceId
274274

275+
- where:
276+
model-name: EdgeNode
277+
set:
278+
format-table:
279+
properties:
280+
- Id
281+
275282
# Delete 404
276283
- from: swagger-document
277284
where: $.paths["/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}"].delete

src/Cdn/examples/Update-AzCdnEndpoint.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,16 @@ WestUs endptest001 testps-rg-da16jm
3333

3434
Update an AzureCDN Endpoint under the AzureCDN profile via identity
3535

36+
37+
### Example 3: Update an AzureCDN Endpoint under the AzureCDN profile, enabled content compression
38+
```powershell
39+
Update-AzCdnEndpoint -Name cdntestcert -ProfileName classicCDNtest -ResourceGroupName yaoshitest -IsCompressionEnabled:$true
40+
```
41+
42+
```output
43+
Location Name ResourceGroupName
44+
-------- ---- -----------------
45+
WestUs endptest001 testps-rg-da16jm
46+
```
47+
48+
Update an AzureCDN Endpoint under the AzureCDN profile, enabled content compression

src/Cdn/examples/Update-AzCdnOrigin.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,15 @@ origin1 testps-rg-da16jm
2525

2626
Update an AzureCDN origin under the AzureCDN endpoint via identity
2727

28+
### Example 3: Update an AzureCDN origin under the AzureCDN endpoint, disable the origin
29+
```powershell
30+
Update-AzCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -Name origin1 -HttpPort 456 -HttpsPort 789
31+
```
32+
33+
```output
34+
Name ResourceGroupName
35+
---- -----------------
36+
origin1 testps-rg-da16jm
37+
```
38+
39+
Update an AzureCDN origin under the AzureCDN endpoint, disable the origin

src/Cdn/examples/Update-AzFrontDoorCdnOrigin.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,18 @@ Name ResourceGroupName
2323
ori001 testps-rg-da16jm
2424
```
2525

26-
Update an AzureFrontDoor origin group under the profile via identity
26+
Update an AzureFrontDoor origin group under the profile via identity
27+
28+
29+
### Example 3: Update an AzureFrontDoor origin group under the profile, disable the EnforceCertificateNameCheck
30+
```powershell
31+
Update-AzFrontDoorCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001 -OriginName ori001 -EnforceCertificateNameCheck:$false
32+
```
33+
34+
```output
35+
Name ResourceGroupName
36+
---- -----------------
37+
ori001 testps-rg-da16jm
38+
```
39+
40+
Update an AzureFrontDoor origin group under the profile, disable the EnforceCertificateNameCheck

src/Cdn/examples/Update-AzFrontDoorCdnRoute.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,18 @@ Name ResourceGroupName
2323
route001 testps-rg-da16jm
2424
```
2525

26-
Update an AzureFrontDoor route under the AzureFrontDoor profile via identity
26+
Update an AzureFrontDoor route under the AzureFrontDoor profile via identity
27+
28+
29+
### Example 3: Update an AzureFrontDoor route under the AzureFrontDoor profile, enable content compression
30+
```powershell
31+
Update-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001 -CompressionSettingIsCompressionEnabled:true
32+
```
33+
34+
```output
35+
Name ResourceGroupName
36+
---- -----------------
37+
route001 testps-rg-da16jm
38+
```
39+
40+
Update an AzureFrontDoor route under the AzureFrontDoor profile, enable content compression

src/Cdn/exports/ProxyCmdletDefinitions.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12996,6 +12996,8 @@ $tags = @{
1299612996
Tag2 = 22
1299712997
}
1299812998
Get-AzCdnEndpoint -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -Name endptest001 | Update-AzCdnEndpoint -Tag $tags -DefaultOriginGroupId $originGroup.Id
12999+
.Example
13000+
Update-AzCdnEndpoint -Name cdntestcert -ProfileName classicCDNtest -ResourceGroupName yaoshitest -IsCompressionEnabled:$true
1299913001

1300013002
.Inputs
1300113003
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
@@ -13620,6 +13622,8 @@ Updates an existing origin within an endpoint.
1362013622
Update-AzCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -Name origin1 -HttpPort 456 -HttpsPort 789
1362113623
.Example
1362213624
Get-AzCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -Name origin1 | Update-AzCdnOrigin -HttpPort 456 -HttpsPort 789
13625+
.Example
13626+
Update-AzCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName cdn001 -EndpointName endptest001 -Name origin1 -HttpPort 456 -HttpsPort 789
1362313627

1362413628
.Inputs
1362513629
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
@@ -14863,6 +14867,8 @@ Updates an existing origin within an origin group.
1486314867
Update-AzFrontDoorCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001 -OriginName ori001 -Weight 999
1486414868
.Example
1486514869
Get-AzFrontDoorCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001 -OriginName ori001 | Update-AzFrontDoorCdnOrigin -Weight 999
14870+
.Example
14871+
Update-AzFrontDoorCdnOrigin -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -OriginGroupName org001 -OriginName ori001 -EnforceCertificateNameCheck:$false
1486614872

1486714873
.Inputs
1486814874
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity
@@ -15176,6 +15182,8 @@ Updates an existing route with the specified route name under the specified subs
1517615182
Update-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001 -EnabledState "Enabled"
1517715183
.Example
1517815184
Get-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001 | Update-AzFrontDoorCdnRoute -EnabledState "Enabled"
15185+
.Example
15186+
Update-AzFrontDoorCdnRoute -ResourceGroupName testps-rg-da16jm -ProfileName fdp-v542q6 -EndpointName end001 -Name route001 -CompressionSettingIsCompressionEnabled:true
1517915187

1518015188
.Inputs
1518115189
Microsoft.Azure.PowerShell.Cmdlets.Cdn.Models.ICdnIdentity

0 commit comments

Comments
 (0)