cost 211 ms
Azure 自动化 powershell 运行手册挂起问题 - Azure Automation powershell runbook hung up issue

我正在创建一个具有 powershell 运行手册的 Azure 自动化帐户。 该脚本只是循环遍历资源组中的每个 VM,并删除特定文件夹下的所有文件。 该脚本工作正常,但问题是如果 VM 不正常或存在某些连接问题,则脚本会挂在那里。 不会抛出任何错误或异常。 它只是一直等待,并最终在数小时后超时。 ...

如何使用 powershell 命令创建触发运行手册的计划? - How to create a schedule which triggers the runbook using powershell command?

我正在尝试使用 Azure 自动化帐户中的 powershell 命令创建一个计划来触发运行手册。 Runbook 将自动化变量resourcevariable作为输入参数。 能够创建一个时间表。 但无法注册它,因为它会抛出错误,指出无效的 runbook 参数。 任何人都可以建议如何注册它并触 ...

Azure Runbook 错误:无法加载文件或程序集“Microsoft.SqlServer.BatchParser.dll” - Azure Runbook Error: Could not load file or assembly 'Microsoft.SqlServer.BatchParser.dll'

我有一段非常简单的代码,我试图从 Azure Runbook 运行,但是当我这样做时,它会导致以下错误消息 代码: 我正在使用运行 5.1 的 Powershell 工作流运行手册。 我也更新了 SQLServer 模块,但没有成功。 当我从 Azure Cloud Shell 运行时,我没有遇到 ...

在 Azure 自动化(Powershell 运行手册)中执行 .exe 时如何解决“程序被组策略阻止”的问题 - How to Fix "The program is blocked by Group policy " issue while executing the .exe in Azure Automation (Powershell runbook)

我有一个使用 C# dll 作为模块的运行手册。 此 C# 代码在内部启动进程 (.exe)。 这在 Azure 自动化(powershell runbook)中不起作用。 有人可以帮我解决这个问题吗? 我试图删除 Microsoft 文件夹中存在的 HKCU:\ 项目,但未能成功。 ...

Invoke-ASCmd XMLA 结果存储在 Azure Data Lake 中,格式为 .csv 或 .txt - Invoke-ASCmd XMLA Results to storage results in Azure Data Lake with either .csv or .txt format

我已经构建了一个 Azure Powershell runbook (5.0) 来针对 SSAS 服务器运行 MDX 查询,该查询只是为了获取分区名称 如果我在 SSMS 中运行它,我会得到想要的结果 当我使用 powershell 运行手册运行查询时出现问题,因为结果基本上是 XMLA outp ...

使用 Runbook 停止 Azure Function 应用程序 - Stop an Azure Function App by using Runbook

我有一个 Azure Function 应用程序正在运行,我需要按计划停止和启动它。 尝试使用带有 PowerShell 脚本的 Runbook 通过 Azure 自动化帐户对其进行自动化。 一行命令行得通吗? 我在下面试过。 运行时会抛出错误 - 我是否必须将 function 应用程序的名称作为 ...

Runbook 执行 New-AzSqlDatabaseImport 错误“无权执行操作” - Runbook execution New-AzSqlDatabaseImport error "dont not have authorization to perform action"

自动化帐户的访问控制集 [IAM] SQL 数据库贡献者资源组(已继承) SQL 数据库贡献者订阅(继承) 存储 Blob 数据贡献者订阅(继承) 在系统分配的托管标识下运行。 需要执行 Runbook 从 Azure Blob 存储中的 bacpac 文件备份恢复 DB,但出现以下错误: 正 ...

如何连接 Azure 自动化 Runbook 中的存储帐户 - How to connect with Storage account in Azure automation runbook

在 Azure 自动化 Runbook 中,我想连接存储帐户并在没有帐户密钥的情况下获取上下文。 我可以连接存储帐户密钥,但我不想连接存储密钥。 供参考 错误是“上下文不能为空。” 我希望在没有存储帐户密钥的情况下连接存储帐户。 ...

使用 PowerShell Automation 在周末降级 Azure 资源 - Downgrading Azure Resources during weekends using PowerShell Automation

为了节省 Azure DevOps 的开支,我正在尝试扩展资源,这可以根据需要进行扩展。 团队负责人将更新 SharePoint 中的资源需求,并且需要使用SharePoint 数据执行 runbook。 团队负责人将更新 SharePoint 中的资源需求,并且需要使用 SharePoint 数据 ...

无法找到类型 [Microsoft.883587760644488.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.AutomationRuleRunPlaybookAction] - Unable to find type [Microsoft.Azure.PowerShell.Cmdlets.SecurityInsights.Models.Api20210901Preview.AutomationRuleRunPlaybookAction]

我正在尝试使用 powershell 运行手册中的以下命令在 Sentinel 中创建自动化规则。 我已经在Runbook中导入了5.1版本的SecurityInsights模块。 相同的命令在 VScode powershell 中运行良好。但仅在 runbook 中面临问题。 任何人都可以帮我 ...

Bicep 使用 URI 发布 runbook - Bicep publish runbook using URI

我正在使用 Bicep 创建一个自动化帐户、Blob 存储、将文件上传到 Blob,然后在我的自动化帐户中创建一个 Runbook。 这是第一次工作,但如果我更新进入我的 blob 的文件,这不会反映在我的 runbook 中。 这是我的 runbook 部署的副本 - 发布链接 URI 是否可能 ...

Terraform 从 PSGallery 导入 runbook 到 Azure Automation Account - Terraform import runbook to Azure Automation Account from PSGallery

我正在尝试使用 Terraform 脚本从 PS Gallery 导入 runbook。 该脚本和 Azure API 均未抛出任何错误,并按预期创建了 Runbook。 问题是,runbook 的内容显然是错误的。 我猜它是仍然压缩的 nupkg 文件。 这是我正在使用的代码: 这是 URL 我 ...

使用 runbook 编写 PowerShell 脚本来获取 VM 的快照: Run as Account: Azure - Write the PowerShell script using runbook to take the snapshot of the VM: Run as Account: Azure

我正在尝试以自动方式使用 Runbook 编写 powerShell 脚本,该脚本必须通过 RUN AS ACCOUNT 获取 VM(磁盘和数据磁盘)的快照,该帐户使用服务主体连接到 az 帐户并将它们列出快照任何想法或帮助,谢谢:) ...

防止在 Azure Automation Runbook 中自动导入 PowerShell 模块 - Prevent auto import of PowerShell modules in Azure Automation Runbook

我有一个 Azure 自动化 PowerShell 运行手册,它根据输入参数调用特定的子运行手册。 子 Runbook 使用不同的 PowerShell 模块执行操作。 我相信 Azure Automation 会在调用子 Runbook 时自动加载/导入所需的模块。 我想防止这种行为,并使用imp ...

在 Hybrid Worker 上运行的 runbook 中的 Set-AzContext 身份验证只工作了几次,最终失败了 - Set-AzContext authentication inside a runbook run on Hybrid Worker works only a few times, eventually fails

我没有使用 Connect-AzAccount,而是使用本地保存在我的 Hybrid Worker 上的配置文件来针对 Azure 进行身份验证,并在每次运行 runbook 时加载它。 此方法有效,但在成功运行 2 或 3 次后,以下所有 Runbook 作业最终都处于已暂停状态 state。 不 ...

使用来自 Azure 的 Get-VICredentialStoreItem 的 vCenter 登录失败 - vCenter logon failing using Get-VICredentialStoreItem from Azure automation runbooking with hybrid worker

我们正在使用 Azure 自动化运行手册,使用混合工作者并尝试从本地 vCenter 环境收集信息。 我们正在使用 Get-VICredentialStoreItem 登录到 vCenter,但使用存储的凭据登录本身在运行手册中失败。 当我在混合工作服务器上本地使用此脚本时,它工作正常。 我们得到的 ...


 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM