Can't run get-azstorageblob cmdlet in vscode pwsh 7 or ISE terminals #26839
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
customer-reported
needs-author-feedback
More information is needed from author to address the issue.
no-recent-activity
There has been no recent activity on this issue.
Storage
Description
Developing simple download tool and getting held up by get-azstorageblob not working in any VSCode nor ISE.
I was able to fix all issues old fashioned like and run script in both powershell.exe and pwsh.exe , but not being able to run attached debugger is pretty terrible.
Simply running this in powershell ISE will error, vscode will error as well when running in pwsh terminals.
$storagecontainer='maintenance'
$azureprodsqlmaintenancesas='...'
$blob='###*'
$azcontext=New-AzStorageContext -StorageAccountName #### -SasToken $azureprodsqlmaintenancesas
$debugpreference="silentlycontinue"
get-azstorageblob -Container $storagecontainer -Context $azcontext -blob $blob -Debug
Save that to a script and run it in powershell and pwsh7 and it works.
Issue script & Debug output
Environment data
Module versions
Error output
The text was updated successfully, but these errors were encountered: