File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/Storage/Storage.Management/help Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ This command gets the properties of a symbolic link named "mylink" in the "links
9696### Example 2: Get multiple symbolic links in a directory
9797``` powershell
9898$files = Get-AzStorageFile -ShareName "nfsshare" -Path "linkdir" -Context $ctx | Get-AzStorageFile -ExcludeExtendedInfo
99- $symLinkFiles = $files | ? {$_.FileProperties.PosixProperties.FileType -eq "SymLink"}
99+ $symLinkFiles = $files | Where-Object {$_.FileProperties.PosixProperties.FileType.ToString() -eq "SymLink"}
100100foreach ($file in $symLinkFiles) {
101101 $symlink = Get-AzStorageFileSymbolicLink -ShareName "nfsshare" -Path "linkdir/$($file.Name)" -Context $ctx
102102 Write-Output "$($file.Name) -> $([System.Web.HttpUtility]::UrlDecode($symlink.ShareFileSymbolicLinkInfo.LinkText))"
Original file line number Diff line number Diff line change @@ -48,15 +48,15 @@ The **New-AzStorageFileSymbolicLink** cmdlet creates a symbolic link to a file i
4848### Example 1: Create a symbolic link with all optional parameters
4949``` powershell
5050$ctx = New-AzStorageContext -StorageAccountName "myaccount" -EnableFileBackupRequestIntent
51- New-AzStorageFileSymbolicLink -ShareName $shareName -Path "links/testlink" -LinkText "config/app.conf" -Metadata @{ "meta1"="value1";"meta2"="value2"} -FileCreatedOn "2025-09-01T00:00:00Z" -FileLastWrittenOn "2025-09-15T12:00:00Z" -Owner "1000" -Group "1000" -Context $ctx
51+ New-AzStorageFileSymbolicLink -ShareName "nfsshare" -Path "links/testlink" -LinkText "config/app.conf" -Metadata @{ "meta1"="value1";"meta2"="value2"} -FileCreatedOn "2025-09-01T00:00:00Z" -FileLastWrittenOn "2025-09-15T12:00:00Z" -Owner "1000" -Group "1000" -Context $ctx
5252```
5353
5454This command creates a symbolic link with all available optional parametersThe symbolic link points to a relative path "config/app.conf".
5555
5656### Example 2: Create a symbolic link using ShareClient object
5757``` powershell
5858$ctx = New-AzStorageContext -StorageAccountName "myaccount" -EnableFileBackupRequestIntent
59- $shareClient = Get-AzStorageShare -Name $shareName -Context $ctx
59+ $shareClient = Get-AzStorageShare -Name "nfsshare" -Context $ctx
6060$shareClient | New-AzStorageFileSymbolicLink -Path "dir1/app-link" -LinkText "config/app.conf"
6161```
6262
@@ -65,7 +65,7 @@ This command creates a symbolic link using a ShareClient object obtained from Ge
6565### Example 3: Create a symbolic link using directory client
6666``` powershell
6767$ctx = New-AzStorageContext -StorageAccountName "myaccount" -EnableFileBackupRequestIntent
68- $dirClient = Get-AzStorageFile -ShareName $shareName -Path "testdir" -Context $ctx
68+ $dirClient = Get-AzStorageFile -ShareName "nfsshare" -Path "testdir" -Context $ctx
6969$dirClient | New-AzStorageFileSymbolicLink -Path "testlink" -LinkText "app/main.exe"
7070```
7171
You can’t perform that action at this time.
0 commit comments