gpt4 book ai didi

azure - 在 Azure 中创建虚拟机也会创建云服务

转载 作者:行者123 更新时间:2023-12-01 11:38:46 26 4
gpt4 key购买 nike

来自文档

When you create an application and run it in Azure, the code and configuration together are called an Azure cloud service (known as a hosted service in earlier Azure releases).

By creating a cloud service, you can deploy a multi-tier application in Azure, defining multiple roles to distribute processing and allow flexible scaling of your application. A cloud service consists of one or more web roles and/or worker roles, each with its own application files and configuration.

我的理解是,Azure 中的虚拟机是 self 管理的,没有角色的概念,那么为什么在 Azure 中创建虚拟机也会创建云服务。

最佳答案

出现这种情况是因为云服务是托管容器。它包含了公共(public) IP 地址等的内部结构。创建虚拟机后,需要对其进行托管,从而将其放入云服务中。您可以在同一云服务中托管多个虚拟机。过去这对您来说有些隐秘,但现在您可以更清楚地了解正在发生的事情。

具有角色的“云服务”部署模型也刚刚部署到同一类型的容器中。不幸的是,部署与容器同名,这可能会导致这种困惑。

最终,两种部署模型都将虚拟机旋转到作为信任和网络边界的托管容器中。一种模型为您提供了对虚拟机的更多控制权,另一种模型则消除了更多控制权,但简化了您的职责。微软一直表示 IaaS 和 PaaS 之间的界限正在变得模糊并且变得更加灰色。

关于azure - 在 Azure 中创建虚拟机也会创建云服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24203465/

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