你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzTimeSeriesInsightsEventSource
获取具有指定环境中指定名称的事件源。
语法
Get-AzTimeSeriesInsightsEventSource
-EnvironmentName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzTimeSeriesInsightsEventSource
-EnvironmentName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzTimeSeriesInsightsEventSource
-InputObject <ITimeSeriesInsightsIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
获取具有指定环境中指定名称的事件源。
示例
示例 1:列出指定环境中的所有事件源
Get-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -EnvironmentName tsitest001
ConsumerGroupName : testgroup2
EventHubName : hubname001
EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup2/providers/Microsoft.EventHub/namespaces/spacename001/eventhubs/hu
bname001
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup/providers/Microsoft.TimeSeriesInsights/environments/tsitest001/eve
ntsources/estest001
KeyName : RootManageSharedAccessKey
Kind : Microsoft.EventHub
Location : eastus
Name : estest001
ServiceBusNamespace : spacename001
Tag : Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.TrackedResourceTags
TimestampPropertyName :
Type : Microsoft.TimeSeriesInsights/Environments/EventSources
ConsumerGroupName : testgroup2
EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup2/providers/Microsoft.Devices/IotHubs/iotname001
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup/providers/Microsoft.TimeSeriesInsights/environments/tsitest001/eve
ntsources/iots001
IotHubName : iotname001
KeyName : RootManageSharedAccessKey
Kind : Microsoft.IoTHub
Location : eastus
Name : iots001
Tag : Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.TrackedResourceTags
TimestampPropertyName :
Type : Microsoft.TimeSeriesInsights/Environments/EventSources
此命令列出指定环境中的所有事件源。
示例 2:按名称获取指定的事件源
Get-AzTimeSeriesInsightsEventSource -ResourceGroupName testgroup -EnvironmentName tsitest001 -Name iots001
ConsumerGroupName : testgroup2
EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup2/providers/Microsoft.Devices/IotHubs/iotname001
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/testgroup/providers/Microsoft.TimeSeriesInsights/environments/tsitest001/eve
ntsources/iots001
IotHubName : iotname001
KeyName : RootManageSharedAccessKey
Kind : Microsoft.IoTHub
Location : eastus
Name : iots001
Tag : Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.TrackedResourceTags
TimestampPropertyName :
Type : Microsoft.TimeSeriesInsights/Environments/EventSources
此命令获取特定的事件源。
示例 3:按对象获取指定的事件源
$es = Get-AzTimeSeriesInsightsEventSource -ResourceGroupName tsi-test-i01k5l -EnvironmentName tsi-envv8u56x -Name tsi-esrfyi9h
Get-AzTimeSeriesInsightsEventSource -InputObject $es
ConsumerGroupName : tsi-test-i01k5l
EventHubName : eventhubname-d2rvmp
EventSourceResourceId : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/tsi-test-i01k5l/providers/Microsoft.EventHub/namespaces/eventhubspace-0t3khp/eventhubs/eventhubname-d2rvmp
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/tsi-test-i01k5l/providers/Microsoft.TimeSeriesInsights/environments/tsi-envv8u56x/eventsources/tsi-esrfyi9h
KeyName : RootManageSharedAccessKey
Kind : Microsoft.EventHub
Location : eastus2
Name : tsi-esrfyi9h
ServiceBusNamespace : eventhubspace-0t3khp
Tag : Microsoft.Azure.PowerShell.Cmdlets.TimeSeriesInsights.Models.Api20180815Preview.TrackedResourceTags
TimestampPropertyName :
Type : Microsoft.TimeSeriesInsights/Environments/EventSources
此命令获取特定的事件源。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EnvironmentName
与指定资源组关联的时序见解环境的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
Type: | ITimeSeriesInsightsIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
与指定环境关联的时序见解事件源的名称。
Type: | String |
Aliases: | EventSourceName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Azure 资源组的名称。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
Azure 订阅 ID。
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
输入
输出
备注
别名
复杂参数属性
若要创建下面所述的参数,请构造一个包含相应属性的哈希表。 有关哈希表的信息,请运行 Get-Help about_Hash_Tables。
INPUTOBJECT <ITimeSeriesInsightsIdentity>
:标识参数
[AccessPolicyName <String>]
:访问策略的名称。[EnvironmentName <String>]
:环境名称[EventSourceName <String>]
:与指定环境关联的时序见解事件源的名称。[Id <String>]
:资源标识路径[ReferenceDataSetName <String>]
:引用数据集的名称。[ResourceGroupName <String>]
:Azure 资源组的名称。[SubscriptionId <String>]
:Azure 订阅 ID。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈