Skip to content

Commit 96b5f67

Browse files
authored
Fix example 10 of Set-AzStorageAccount (#21121)
* Fix example 10 of Set-AzStorageAccount * Update ExampleIssues.csv for Storage
1 parent 7082867 commit 96b5f67

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Storage/Storage.Management/help/Set-AzStorageAccount.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,15 +174,15 @@ The command upgrade a Storage account with Kind "Storage" or "BlobStorage" to "S
174174

175175
### Example 10: Update a Storage account by enable Azure Files AAD DS Authentication and set DefaultSharePermission.
176176
```powershell
177-
$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -EnableAzureActiveDirectoryDomainServicesForFile $true -DefaultSharePermission StorageFileDataSmbShareOwner
177+
$account = Set-AzStorageAccount -ResourceGroupName "MyResourceGroup" -Name "mystorageaccount" -EnableAzureActiveDirectoryDomainServicesForFile $true -DefaultSharePermission StorageFileDataSmbShareContributor
178178
179179
$account.AzureFilesIdentityBasedAuth
180180
```
181181

182182
```output
183183
DirectoryServiceOptions ActiveDirectoryProperties DefaultSharePermission
184184
----------------------- ------------------------- ----------------------
185-
AADDS Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties StorageFileDataSmbShareOwner
185+
AADDS Microsoft.Azure.Commands.Management.Storage.Models.PSActiveDirectoryProperties StorageFileDataSmbShareContributor
186186
```
187187

188188
The command update a Storage account by enable Azure Files AAD DS Authentication.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"Module","Cmdlet","Example","Line","RuleName","ProblemId","Severity","Description","Extent","Remediation"
2+
"Az.Storage","Set-AzStorageAccount","5","4","Invalid_Cmdlet","5000","1","New-AzKeyVault is not a valid command name.","New-AzKeyVault -VaultName 'MyKeyVault' -ResourceGroupName 'MyResourceGroup' -Location 'EastUS2'","Check the spell of New-AzKeyVault."
3+
"Az.Storage","Set-AzStorageAccount","5","5","Invalid_Cmdlet","5000","1","Add-AzKeyVaultKey is not a valid command name.","Add-AzKeyVaultKey -VaultName 'MyKeyVault' -Name 'MyKey' -Destination 'Software'","Check the spell of Add-AzKeyVaultKey."
4+
"Az.Storage","Set-AzStorageAccount","5","6","Invalid_Cmdlet","5000","1","Set-AzKeyVaultAccessPolicy is not a valid command name.","Set-AzKeyVaultAccessPolicy -VaultName 'MyKeyVault' -ObjectId $account.Identity.PrincipalId -PermissionsToKeys wrapkey,unwrapkey,get","Check the spell of Set-AzKeyVaultAccessPolicy."

0 commit comments

Comments
 (0)