Skip to content

Commit 13641be

Browse files
authored
Merge pull request Azure#10973 from JKeddo95/patch-2
Fix Broken Example Code
2 parents df1e2b4 + ebf019f commit 13641be

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Compute/Compute/ChangeLog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
* Add EncryptionType and DiskEncryptionSetId parameters to the following cmdlets:
2525
- New-AzDiskUpdateConfig, New-AzSnapshotUpdateConfig
2626
* Add ColocationStatus parameter to Get-AzProximityPlacementGroup cmdlet.
27+
* Fix broken example code for 'Revoke-AzSnapshotAccess' and 'Grant-AzSnapshotAccess'
2728

2829
## Version 3.3.0
2930
* Fix Set-AzVMCustomScriptExtension cmdlet for a VM with managed OD disk which does not have OS profile.

src/Compute/Compute/help/Grant-AzSnapshotAccess.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ The **Grant-AzSnapshotAccess** cmdlet grants an access to a snapshot.
2525

2626
### Example 1
2727
```
28-
PS C:\> Grant-AzDiskAccess -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01' -Access 'Read' -DurationInSecond 60;
28+
PS C:\> Grant-AzSnapshotAccess -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01' -Access 'Read' -DurationInSecond 60;
2929
```
3030

3131
Grant 'Read' access to the snapshot named 'Snapshot01' in the resource group named 'ResourceGroup01' for 60 seconds.

src/Compute/Compute/help/Revoke-AzSnapshotAccess.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The **Revoke-AzSnapshotAccess** cmdlet revokes an access to a snapshot.
2424

2525
### Example 1
2626
```
27-
PS C:\> Revoke-AzDiskAccess -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01'
27+
PS C:\> Revoke-AzSnapshotAccess -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01'
2828
```
2929

3030
Revoke the access to the snapshot named 'Snapshot01' in the resource group named 'ResourceGroup01'

0 commit comments

Comments
 (0)