Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up module help pipeline #51

Open
Jawz84 opened this issue Aug 20, 2021 · 0 comments
Open

Speed up module help pipeline #51

Jawz84 opened this issue Aug 20, 2021 · 0 comments

Comments

@Jawz84
Copy link
Owner

Jawz84 commented Aug 20, 2021

Improve speed of helpwriter in the pipeline by eliminating the need for Azure PowerShell (which takes forever to load / login to from azure/login@v1)

Use Az cli instead in https://github.com/Jawz84/explainpowershell/blob/09f902583fc4df8ec655d006464ce01b6c861fdb/explainpowershell.helpcollector/helpwriter.ps1

Get storage account key
$a = az storage account keys list --resource-group powershellexplainer --account-name explainpowershell | convertfrom-json
$a | where keyname -eq key2 | select -exp value
$key2 = $a | where keyname -eq key2 | select -exp value

how to read an entity:
az storage entity show --account-name explainpowershell --table-name TestHelpData --partition-key CommandHelp --row-key it --account-key $key2

write entity:
see here: https://github.com/Azure/azure-cli-samples/blob/master/storage/tables.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant