使用PowerShell删除自定义图像 [英] Delete a Custom image using PowerShell

查看:85
本文介绍了使用PowerShell删除自定义图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找如何使用PowerShell删除自定义图像。

I'm looking for how to delete a custom image using PowerShell.

推荐答案

这将删除图像:

This removes an image:

 

删除-AnlandRmImage

https://docs.microsoft.com/en-us/powershell/ module / azurerm.compute / remove-azurermimage?view = azurermps-6.13.0

 

Remove-AzureRmImage
[-ResourceGroupName]< String> [-ImageName]< String> [-Force] [-AsJob] [-DefaultProfile< IAzureContextContainer>] [-WhatIf] [ - 确认] [< CommonParameters>]

 

示例:

Example:

Remove-AzureRmImage -ResourceGroupName 'ResourceGroup01' -ImageName 'Image01' -Force;








$













这篇关于使用PowerShell删除自定义图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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