Azure / Azure/azure-powershell
[Feature]: New-AzStorageBlobSASToken New-AzStorageAccountSASToken etc should support -AsSecureString
Open
feature-request
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Description of the new feature
I'm creating a SAS url with New-AzStorageBlobSASToken and writing it to an AKV using Set-AzKeyVaultSecret.
Set-AzKeyVaultSecret expects a securestring, and when it doesn't get one, PowerShell is helpful and prints out the whole value. :-)
The `New-AzStorage*SASToken` powershell cmdlets should support an `-AsSecureString` parameter, which changes the return value to a secure string, similar to how Get-AzAccessToken handles it.
### Proposed implementation details (optional)
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.