gpt4 book ai didi

azure - 适用于 Linux 的 OMS 代理可以使用 powershell 或通过门户安装吗?

转载 作者:行者123 更新时间:2023-12-03 02:55:19 24 4
gpt4 key购买 nike

我需要为 Linux 计算机重新安装 oms 代理,有没有办法通过 Azure power shell 或门户来执行此操作?

最佳答案

您可以关注this步骤

To remove the existing agent and then install the new agent, follow these steps:

  • Connect to the Linux computer, and then open a terminal session. To

    download the desired script, run the following command:

wget https://raw.githubusercontent.com/Microsoft/OMS-Agent-for-Linux/master/installer/scripts/onboard_agent.sh .

  • 运行sudo sh onboard_agent.sh --purge 。这会下载最新的 安装脚本的版本并运行卸载 将删除所有现有代理组件的操作。
  • 删除 /etc/opt/microsoft/omsagent and /var/opt/microsoft/omsagent文件夹。
  • 运行以下命令: sudo sh onboard_agent.sh -w <workspaceid> -s <primarykey>

注释

  • 在此命令中,将 和 替换为 来自实际 Azure 工作区 ID 和主键的适当值, 分别。

  • 如果您使用的是 Azure 公共(public)服务以外的云服务 云,您必须添加 -d 参数来标识该域 要使用的。例如,如果您使用 Azure 美国政府云,请运行 以下命令:

sudo sh onboard_agent.sh -w workspaceid -s primarykey -d opinsights.azure.us

关于azure - 适用于 Linux 的 OMS 代理可以使用 powershell 或通过门户安装吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53188997/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com