如何使linux vm连接另一个工作区? [英] How to make a linux vm to connect another workspace?

查看:88
本文介绍了如何使linux vm连接另一个工作区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不小心删除了现有的日志分析工作区。

I accidentally deleted a existing log analytics workspace.

所以我创建了一个新的日志分析工作区并试图让我的linux vm连接到新工作区。

So I create a new log analytics workspace and tried to make my linux vm to connect to the new workspace.

我按照https://docs.microsoft.com/en-us/azure中的"添加或删除工作区"步骤操作/ azure-monitor / platform / agent-manage

I followed the steps 'Adding or removing a workspace' in https://docs.microsoft.com/en-us/azure/azure-monitor/platform/agent-manage

命令' / opt / microsoft / omsagent / bin / omsadmin.sh
-l'显示它已连接到新工作区。

但仍然显示vm与'其他工作区'$在天蓝色门户网站的工作区虚拟机页面中显示"LOG ANALYTICS CONNECTION"列的b $ b。

我可以在'高级设置> Linux
服务器> 1 LINUX COMPUTERS CONNECTED'中看到vm的信息

And I can see the vm's info in the 'Advanced settings>Linux Servers> 1 LINUX COMPUTERS CONNECTED'

应该怎样我要解决这个问题吗?

What should I do to fix this?

推荐答案

似乎您正在使用Log Analytics VM扩展来安装代理并连接到Log Analytics。因此,您不应该执行上述操作以在计算机上重新安装代理。当您有扩展时 最好转到
虚拟机并从那里删除扩展。之后你可以通过Log Analytics刀片再次添加它以启动Azure VM。你甚至可以去新的工作区并删除连接到其他工作区并将其连接到新工作区。
断开连接代理基本上卸载代理并删除扩展名。

Seems you are using the Log Analytics VM extension to install the agent and connect to Log Analytics. Because of that you shouldn't done the operation above to re-install the agent on the machine. When you have the extension  it is best to go to the VM and remove the extension from there. After that you can go and add it again via the Log Analytics blade for onboarding Azure VMs. You could even had gone to the new workspace and remove the connection to the other workspace and connect it to your new one. Disconnecting agent basically uninstalls the agent and removes the extension.

如果它有帮助,请将此回复标记为答案。

Mark this reply as answer if it has helped you.


这篇关于如何使linux vm连接另一个工作区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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