如何将用户分配的托管标识添加到 Azure 实验室 VM?
How to add user assigned managed identity to Azure Lab VM?
我的目标是让一个 VM 运行 为 Azure DevOps 构建一个用户分配的托管标识,这样我们就可以让所有东西都保持无连接字符串。
我刚刚在其中创建了一个 Azure 实验室和一个 VM。
实验室这样做的原因是我们可以在晚上和周末将其关闭。
但是,我找不到为其分配托管身份的选项。
如果可以,我该怎么做?
看来实验室虚拟机(Microsoft.DevTestLab/labs/virtualmachines
)目前不支持MSI,需要使用azure VM(Microsoft.Compute/virtualMachines
).
参考 - Services that support managed identities for Azure resources.
此外,我注意到你使用实验室 VM 是因为 auto-start/stop 原因,实际上 Azure VM 也支持,请参阅 Start/Stop VMs during off-hours solution in Azure Automation,不仅安排VM 启动和停止,还有其他功能。
我的目标是让一个 VM 运行 为 Azure DevOps 构建一个用户分配的托管标识,这样我们就可以让所有东西都保持无连接字符串。
我刚刚在其中创建了一个 Azure 实验室和一个 VM。
实验室这样做的原因是我们可以在晚上和周末将其关闭。
但是,我找不到为其分配托管身份的选项。
如果可以,我该怎么做?
看来实验室虚拟机(Microsoft.DevTestLab/labs/virtualmachines
)目前不支持MSI,需要使用azure VM(Microsoft.Compute/virtualMachines
).
参考 - Services that support managed identities for Azure resources.
此外,我注意到你使用实验室 VM 是因为 auto-start/stop 原因,实际上 Azure VM 也支持,请参阅 Start/Stop VMs during off-hours solution in Azure Automation,不仅安排VM 启动和停止,还有其他功能。