Share via


Get-AzureVMMicrosoftAntimalwareExtension

取得虛擬機器的 Microsoft Antimalware 擴充功能詳細資料。

注意

本檔中參考的 Cmdlet 用於管理使用服務管理 API 的舊版 Azure 資源。 如需管理 Azure Resource Manager 資源的 Cmdlet,請參閱 Az PowerShell 模組

Syntax

Get-AzureVMMicrosoftAntimalwareExtension
   -VM <IPersistentVM>
   [-Profile <AzureSMProfile>]
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   [<CommonParameters>]

Description

Get-AzureVMMicrosoftAntimalwareExtension Cmdlet 會取得虛擬機器的 Microsoft Antimalware 擴充功能詳細資料。 此 Cmdlet 會取得 使用 Set-AzureVMMicrosoftAntimalwareExtension Cmdlet 以程式設計方式開啟擴充功能的虛擬機器詳細資料。 Cmdlet 會取得與組態相等的 JavaScript 物件標記法(JSON)。 如果開啟監視,Cmdlet 也會取得反惡意程式碼監視組態的 .xml 標記法。

範例

範例 1:取得虛擬機器擴充功能的資訊

PS C:\> Get-AzureVM -ServiceName "ContosoService03" -Name "ContosoVM22" | Get-AzureVMMicrosoftAntimalwareExtension

此命令會取得虛擬機器的 Microsoft Antimalware 擴充功能詳細資料。 此命令會使用 Get-AzureVM Cmdlet 來取得指定的虛擬機器物件,然後使用管線運算子將物件傳遞至目前的 Cmdlet。 Get-AzureVMMicrosoftAntimalwareExtension 會取得延伸模組的組態資訊。

參數

-InformationAction

指定此 Cmdlet 如何回應資訊事件。

此參數可接受的值為:

  • 繼續
  • 忽略
  • 詢問
  • SilentlyContinue
  • 停止
  • 暫止
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-InformationVariable

指定資訊變數。

Type:String
Aliases:iv
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Profile

指定此 Cmdlet 從中讀取的 Azure 設定檔。 如果您未指定設定檔,此 Cmdlet 會從本機預設設定檔讀取。

Type:AzureSMProfile
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VM

將虛擬機器指定為 IPersistentVM 物件。

Type:IPersistentVM
Aliases:InputObject
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

輸入

IPersistentVM

輸出

VirtualMachineMicrosoftAntimalwareExtensionContext