Get-AzDataCollectionEndpoint
語法
List1 (預設值)
Get-AzDataCollectionEndpoint
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get
Get-AzDataCollectionEndpoint
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
List
Get-AzDataCollectionEndpoint
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
GetViaIdentity
Get-AzDataCollectionEndpoint
-InputObject <IDataCollectionRuleIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
範例
範例 1:依訂用帳戶識別碼取得資料收集端點
Get-AzDataCollectionEndpoint
Etag Kind Location Name ResourceGroupName
---- ---- -------- ---- -----------------
"b9029ae7-0000-0100-0000-65016d2a0000" eastus myCollectionEndpoint AMCS-TEST
"ba021b4b-0000-0100-0000-650170c20000" eastus myCollectionEndpoint2 AMCS-TEST
此命令會列出目前訂用帳戶的所有資料收集端點。
範例 2:取得指定資源群組的資料收集端點
Get-AzDataCollectionEndpoint -ResourceGroupName AMCS-TEST
Etag Kind Location Name ResourceGroupName
---- ---- -------- ---- -----------------
"b9029ae7-0000-0100-0000-65016d2a0000" eastus myCollectionEndpoint AMCS-TEST
"ba021b4b-0000-0100-0000-650170c20000" eastus myCollectionEndpoint2 AMCS-TEST
此命令會列出指定資源群組的資料收集端點。
範例 3:取得資料收集端點
Get-AzDataCollectionEndpoint -ResourceGroupName AMCS-TEST -Name myCollection
ConfigurationAccessEndpoint : https://mycollectionendpoint-bthd.eastus-1.handler.control.monitor.azure.com
Description :
Etag : "b9029ae7-0000-0100-0000-65016d2a0000"
FailoverConfigurationActiveLocation :
FailoverConfigurationLocation :
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/AMCS-TEST/providers/Microsoft.Insights/dataCollectionEndpoints/myCollectionEndpoint
IdentityPrincipalId :
IdentityTenantId :
IdentityType :
IdentityUserAssignedIdentity : {
}
ImmutableId : dce-014e59a439e04f44af4b97b16b7614df
Kind :
Location : eastus
LogIngestionEndpoint : https://mycollectionendpoint-bthd.eastus-1.ingest.monitor.azure.com
MetadataProvisionedBy :
MetadataProvisionedByResourceId :
MetricIngestionEndpoint : https://mycollectionendpoint-bthd.eastus-1.metrics.ingest.monitor.azure.com
Name : myCollectionEndpoint
NetworkAclsPublicNetworkAccess : Enabled
PrivateLinkScopedResource :
ProvisioningState : Succeeded
ResourceGroupName : AMCS-TEST
SystemDataCreatedAt : 9/13/2023 8:04:55 AM
SystemDataCreatedBy : v-jiaji@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 9/13/2023 8:04:55 AM
SystemDataLastModifiedBy : v-jiaji@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : Microsoft.Insights/dataCollectionEndpoints
此命令會列出一個 (具有單一元素的清單) 資料收集端點。
參數
-DefaultProfile
DefaultProfile 參數無法運作。
如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
參數屬性
| 類型: | PSObject
|
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | AzureRMContext, AzureCredential |
參數集
(All)
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
Identity 參數
GetViaIdentity
| Position: | Named |
| 必要: | True |
| 來自管線的值: | True |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-Name
資料收集端點的名稱。
名稱不區分大小寫。
參數屬性
| 類型: | String
|
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
| 別名: | DataCollectionEndpointName |
參數集
Get
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-ResourceGroupName
資源群組的名稱。
名稱不區分大小寫。
參數屬性
| 類型: | String
|
| 預設值: | None |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
Get
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
List
| Position: | Named |
| 必要: | True |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
-SubscriptionId
目標訂用帳戶的標識碼。
參數屬性
| 類型: | String[]
|
| 預設值: | (Get-AzContext).Subscription.Id |
| 支援萬用字元: | False |
| 不要顯示: | False |
參數集
List1
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
Get
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
List
| Position: | Named |
| 必要: | False |
| 來自管線的值: | False |
| 來自管線按屬性名稱的值: | False |
| 來自剩餘引數的值: | False |
CommonParameters
此 Cmdlet 支援常見參數: -Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 如需詳細資訊,請參閱 about_CommonParameters。
輸出