从Runbook运行的Get-AzureKeyVaultSecret似乎没有完成 [英] Get-AzureKeyVaultSecret ran from runbook doesn't seem to complete

查看:79
本文介绍了从Runbook运行的Get-AzureKeyVaultSecret似乎没有完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好!

我有一个执行一些操作的运行手册-并从Azure Key Vault获取机密.我已经在本地测试了脚本-似乎零问题..秘密回报.但是,当我在Runbook中运行相同的脚本时,我的事件中心记录成功 记录直到Get-AzureKeyVaultSecret之前.一旦碰到Get-AzureKeyVaultSecret,它就会尝试运行..似乎永远不会完成并进入下一个日志记录语句.

我正在使用..

使用Add-AzureRmAccount进行身份验证以使用服务主体(与我在本地进行身份验证的一个主体),然后使用Get-AzureKeyVaultSecret -VaultName $ vaultName尝试获取机密列表.

是否有一种方法可以捕获在运行本上运行时可能正在发生的/可能会丢失的任何输出?

非常感谢!

解决方案

您好,我们正在开发一款出色的产品:Azure自动化PowerShell ISE加载项.您可以下载它并在此GitHub页面上找到说明:

https://github.com/azureautomation/azure-automation-ise-addon

我很确定它可以帮助您调试Runbook.


Hi there!

I've got a runbook that takes some actions - and gets secrets from Azure Key Vault. I've tested the script locally - and it seems to have zero issue.. the secret returns. However, when I run the same script within a runbook - my event hub logging successfully logs until right before the Get-AzureKeyVaultSecret. Once it hits the Get-AzureKeyVaultSecret, it attempts to run .. never seems to finish and get to the next logging statement.

I'm using..

Add-AzureRmAccount to authenticate with a Service Principal (same one I auth with locally) and then Get-AzureKeyVaultSecret -VaultName $vaultName to try and get the list of secrets. 

Is there a way to catch any output that may be occuring / may be missed as it's run on the runbook? 

Thanks so much!

解决方案

Hi dawgeth, there is a great product being developed: Azure Automation PowerShell ISE Add-On. You can download it and find instructions on this GitHub page:

https://github.com/azureautomation/azure-automation-ise-addon

I am pretty sure it should help you with the debugging of your runbook. 


这篇关于从Runbook运行的Get-AzureKeyVaultSecret似乎没有完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆