Skip to content

Commit

Permalink
Backfill the migration guide for Az.Cdn
Browse files Browse the repository at this point in the history
  • Loading branch information
yaoshi committed Sep 14, 2023
1 parent b72083f commit 951c379
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs-conceptual/azps-10.2.0/migrate-az-8.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,34 @@ Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfil
-Name $originName -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789
```

### `Unpublish-AzCdnEndpointContent`
Replaced by command `Clear-AzCdnEndpointContent`

#### Before
```powershell
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
```
#### After
```powershell
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
```

### `Publish-AzCdnEndpointContent`
Replaced by command `Import-AzCdnEndpointContent`

#### Before
```powershell
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
```
#### After
```powershell
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
```

## Az.EventHub

### `New-AzEventHubNamespace`
Expand Down
28 changes: 28 additions & 0 deletions docs-conceptual/azps-10.3.0/migrate-az-8.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,34 @@ Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfil
-Name $originName -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789
```

### `Unpublish-AzCdnEndpointContent`
Replaced by command `Clear-AzCdnEndpointContent`

#### Before
```powershell
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
```
#### After
```powershell
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
```

### `Publish-AzCdnEndpointContent`
Replaced by command `Import-AzCdnEndpointContent`

#### Before
```powershell
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
```
#### After
```powershell
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
```

## Az.EventHub

### `New-AzEventHubNamespace`
Expand Down
28 changes: 28 additions & 0 deletions docs-conceptual/azps-9.7.1/migrate-az-8.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,34 @@ Update-AzCdnOrigin -ResourceGroupName $resourceGroupName -ProfileName $cdnProfil
-Name $originName -HostName "mystorage2.blob.core.windows.net" -HttpPort 456 -HttpsPort 789
```

### `Unpublish-AzCdnEndpointContent`
Replaced by command `Clear-AzCdnEndpointContent`

#### Before
```powershell
Unpublish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-PurgeContent $PurgeContent
```
#### After
```powershell
Clear-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $PurgeContent
```

### `Publish-AzCdnEndpointContent`
Replaced by command `Import-AzCdnEndpointContent`

#### Before
```powershell
Publish-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-LoadContent $LoadContent
```
#### After
```powershell
Import-AzCdnEndpointContent -ResourceGroupName $resourceGroupName -ProfileName $cdnProfileName -EndpointName $endpointName `
-ContentPath $LoadContent
```

## Az.EventHub

### `New-AzEventHubNamespace`
Expand Down

0 comments on commit 951c379

Please sign in to comment.