Skip to content

Commit 80bb8ed

Browse files
authored
[Storage] Fix create file sas issue with file object pipeline (#19708)
1 parent 809c842 commit 80bb8ed

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

src/Storage/Storage.Management/ChangeLog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
- `Stop-AzStorageFileCopy`
3939
* Migrated Get/List blob to always use 'Azure.Storage.Blobs'
4040
- `Get-AzStorageBlob`
41+
* Fix create file sas failure with file object pipeline
42+
- `New-AzStorageFileSasToken`
4143

4244
## Version 4.9.0
4345
* Supported to create or update Storage account with Azure Files Active Directory Domain Service Kerberos Authentication

src/Storage/Storage/File/Cmdlet/NewAzureStorageFileSasToken.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,5 @@ public override void ExecuteCmdlet()
207207
WriteObject(sasToken);
208208
}
209209
}
210-
211-
protected override IStorageFileManagement CreateChannel()
212-
{
213-
if (this.Channel == null || !this.ShareChannel)
214-
{
215-
this.Channel = new StorageFileManagement(this.GetCmdletStorageContext());
216-
}
217-
218-
return this.Channel;
219-
}
220210
}
221211
}

src/Storage/Storage/File/Cmdlet/NewAzureStorageShareSasToken.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,5 @@ public override void ExecuteCmdlet()
135135
WriteObject(sasToken);
136136
}
137137
}
138-
139-
protected override IStorageFileManagement CreateChannel()
140-
{
141-
if (this.Channel == null || !this.ShareChannel)
142-
{
143-
this.Channel = new StorageFileManagement(this.GetCmdletStorageContext());
144-
}
145-
146-
return this.Channel;
147-
}
148138
}
149139
}

0 commit comments

Comments
 (0)