Azure创建自定义VM镜像

  1. 创建一个虚拟机,参考 https://blog.csdn.net/m0_48468018/article/details/132267096,入站端口开启80,22
  2. 进行远程远程连接

  3. 使用CLI命令部署NGINX,输入如下命令
go 复制代码
sudo su
apt-get update -y
apt-get install nginx git -y

最后的效果

  1. 关闭创建的虚拟机,并在概述中停止虚拟机
go 复制代码
shut down
  1. 点击捕获按钮,创建映像,将映像共享到azure compute gallery 选择否 即可

  2. 转到资源,通过镜像创建虚拟机,创建的时候注意开放80端口

  3. 访问该公共IP,可以看到也成功部署了nginx

相关推荐
En^_^Joy1 小时前
LangChain消息系统全解析:从基础到实战(四)
数据库·microsoft·langchain
宝桥南山11 小时前
Visual Studio - 记录一个Visual Studio 2026(Insiders)的更新问题
windows·microsoft·微软·.net·.netcore·visual studio
csdn_aspnet2 天前
使用 Docker 运行 Microsoft SQL 数据库服务器
数据库·microsoft·docker·sqlserver
csdn_aspnet3 天前
生产环境中 SQL Server 的 Docker 使用建议
运维·microsoft·docker·容器·sqlserver
csdn_aspnet3 天前
如何在 Docker 上安装 SQL Server
运维·microsoft·docker·容器·sqlserver
宝桥南山5 天前
Visual Studio 2026新特性 - 可以直接连接DeepSeek(使用Custom Endpoint Provider配置项)
ide·microsoft·微软·aigc·.net·visual studio
轻松,带微笑6 天前
AI竞争进入下半场:微软押注专业模型,通用大模型不再是唯一答案
人工智能·microsoft
峥嵘life6 天前
Android16 热点「网络共享」开关的设计与实现
服务器·网络·microsoft
奇树谦7 天前
UML 时序图(Sequence Diagram)详解:从基础概念到实际项目应用
microsoft·uml
2601_967980118 天前
Python 与云计算:AWS、GCP、Azure 实践
python·云计算·azure·aws·gcp