Get-AzApplicationInsightsWorkbookTemplate
resourceName을 사용하여 단일 통합 문서 템플릿을 가져옵니다.
구문
Get-AzApplicationInsightsWorkbookTemplate
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzApplicationInsightsWorkbookTemplate
-InputObject <IApplicationInsightsIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
resourceName을 사용하여 단일 통합 문서 템플릿을 가져옵니다.
예제
예제 1: resourceName으로 단일 통합 문서 템플릿 가져오기
Get-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name workbooktemplate-pwsh01
ResourceGroupName Name Location
----------------- ---- --------
appinsights-hkrs2v-test workbooktemplate-pwsh01 westu
이 명령은 resourceName으로 단일 통합 문서 템플릿을 가져옵니다.
예제 2: 파이프라인으로 단일 통합 문서 템플릿 가져오기
$gallery = New-AzApplicationInsightsWorkbookTemplateGalleryObject -Category "Failures" -Name "Simple Template" -Type 'tsg' -ResourceType "microsoft.insights/components" -Order 100
$data = @{
"version"= "Notebook/1.0";
"items"= @(
@{
"type"= 1;
"content"= @{
"json"= "## New workbook\n---\n\nWelcome to your new workbook. This area will display text formatted as markdown.\n\n\nWe've included a basic analytics query to get you started. Use the `Edit` button below each section to configure it or add more sections."
};
"name"= "text - 2"
},
@{
"type"= 3;
"content"= @{
"version"= "KqlItem/1.0";
"query"= "union withsource=TableName *\n| summarize Count=count() by TableName\n| render barchart";
"size"= 1;
"exportToExcelOptions"= "visible";
"queryType"= 0;
"resourceType"= "microsoft.operationalinsights/workspaces"
};
"name"= "query - 2"
}
);
"styleSettings"= @{};
"$schema"= "https://github.com/Microsoft/Application-Insights-Workbooks/blob/master/schema/workbook.json"
}
New-AzApplicationInsightsWorkbookTemplate -ResourceGroupName resourceGroup -Name 'workbooktemplate-pwsh01' -Location 'westus2' -Gallery $gallery -TemplateData $data -Priority 1 | Get-AzApplicationInsightsWorkbookTemplate
ResourceGroupName Name Location
----------------- ---- --------
appinsights-hkrs2v-test workbooktemplate-pwsh01 westus2
이 명령은 파이프라인별로 단일 통합 문서 템플릿을 가져옵니다.
매개 변수
-DefaultProfile
DefaultProfile 매개 변수가 작동하지 않습니다. 다른 구독에 대해 cmdlet을 실행하는 경우 사용 가능한 경우 SubscriptionId 매개 변수를 사용합니다.
형식: | PSObject |
별칭: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
필수: | False |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-InputObject
생성할 ID 매개 변수는 INPUTOBJECT 속성에 대한 NOTES 섹션을 참조하고 해시 테이블을 만듭니다.
형식: | IApplicationInsightsIdentity |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | True |
와일드카드 문자 허용: | False |
-Name
Application Insights 구성 요소 리소스의 이름입니다.
형식: | String |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-ResourceGroupName
리소스 그룹의 이름입니다. 이름은 대/소문자를 구분하지 않습니다.
형식: | String |
Position: | Named |
Default value: | None |
필수: | True |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-SubscriptionId
대상 구독의 ID입니다.
형식: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
필수: | False |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
입력
출력
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell