Export-AzAutomationDscNodeReportContent
將從 DSC 節點傳送之 DSC 報表的原始內容匯出至自動化。
語法
Export-AzAutomationDscNodeReportContent
-NodeId <Guid>
-ReportId <Guid>
[-OutputFolder <String>]
[-Force]
[-ResourceGroupName] <String>
[-AutomationAccountName] <String>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Export-AzAutomationDscNodeReportContent Cmdlet 會匯出 APS 預期狀態設定 (DSC) 報告的原始內容。 DSC 節點會將 DSC 報告傳送至 Azure 自動化。
範例
範例 1:從 DSC 節點導出報表
$Node = Get-AzAutomationDscNode -ResourceGroupName "ResourceGroup03" -AutomationAccountName "AutomationAccount01" -Name "Computer14"
$Report = Get-AzAutomationDscNodeReport -ResourceGroupName "ResourceGroup03" -AutomationAccountName "ContosoAutomationAccount" -NodeId $Node.Id -Latest
$Report | Export-AzAutomationDscNodeReportContent -OutputFolder "C:\Users\PattiFuller\Desktop"
這組命令會將最新報表從名為 Computer14 的 DSC 節點導出至桌面。
參數
-AutomationAccountName
指定自動化帳戶的名稱。 此 Cmdlet 會匯出屬於此參數所指定自動化帳戶的 DSC 節點報告內容。
類型: | String |
Position: | 1 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Confirm
在執行 Cmdlet 之前,提示您進行確認。
類型: | SwitchParameter |
別名: | cf |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-DefaultProfile
用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Force
指出這個 Cmdlet 會將現有的本機檔案取代為具有相同名稱的新檔案。
類型: | SwitchParameter |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-NodeId
指定此 Cmdlet 匯出報表內容之 DSC 節點的唯一標識碼。
類型: | Guid |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-OutputFolder
指定此 Cmdlet 匯出報表內容的輸出資料夾。
類型: | String |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | True |
接受萬用字元: | False |
-ReportId
指定此 Cmdlet 匯出之 DSC 節點報告的唯一標識碼。
類型: | Guid |
別名: | Id |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-ResourceGroupName
指定資源群組的名稱。 此 Cmdlet 會匯出屬於此 Cmdlet 所指定之資源群組之 DSC 節點之報表的內容。
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-WhatIf
顯示 Cmdlet 執行時會發生什麼事。 Cmdlet 未執行。
類型: | SwitchParameter |
別名: | wi |
Position: | Named |
預設值: | False |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |