Azure Powershell-如何使用Close-StorageFileHandle

Azure Powershell-如何使用Close-StorageFileHandle,azure,powershell,Azure,Powershell,当我删除Azure fileshare上的文件时,它们会在第二天重新出现 这表示我可以使用cmdlet“Close-AzStorageFileHandle”。当我运行它时,它说找不到StorageContext。我对Powershell是新手。有人能给我一个例子脚本吗?困惑 关闭AzStorageFileHandle-ShareName“louis”-递归-CloseAll 看来我得用管子吹了?这是正确的方法吗 New-AzureStorageContext -StorageAccountNam

当我删除Azure fileshare上的文件时,它们会在第二天重新出现

这表示我可以使用cmdlet“Close-AzStorageFileHandle”。当我运行它时,它说找不到StorageContext。我对Powershell是新手。有人能给我一个例子脚本吗?困惑

关闭AzStorageFileHandle-ShareName“louis”-递归-CloseAll


看来我得用管子吹了?这是正确的方法吗

New-AzureStorageContext -StorageAccountName "mystorage" -StorageAccountKey "mykey==" | Close-AzStorageFileHandle -ShareName "myshare" -Recursive -CloseAll