你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Get-AzEventHubNamespaceV2

获取指定命名空间的说明。

语法

Get-AzEventHubNamespaceV2
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEventHubNamespaceV2
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEventHubNamespaceV2
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEventHubNamespaceV2
   -InputObject <IEventHubIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

说明

获取指定命名空间的说明。

示例

示例 1:获取 EventHub 命名空间

Get-AzEventHubNamespaceV2 -ResourceGroupName myResourceGroup -Name myNamespace

AlternateName                   :
ClusterArmId                    :
CreatedAt                       : 11/17/2022 3:14:09 PM
DisableLocalAuth                : True
EnableAutoInflate               : True
Id                              : /subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.EventHub/namespaces/myNamespace
IdentityType                    :
KafkaEnabled                    : True
KeySource                       :
KeyVaultProperty                :
Location                        : South Central US
MaximumThroughputUnit           : 0
MetricId                        : 000000000000000:myNamespace
MinimumTlsVersion               : 1.2
Name                            : myNamespace
PrincipalId                     : 000000000000000000
PrivateEndpointConnection       :
ProvisioningState               : Succeeded
PublicNetworkAccess             : Enabled
RequireInfrastructureEncryption :
ResourceGroupName               : myResourceGroup
ServiceBusEndpoint              : https://myNamespace.servicebus.windows.net:443/
SkuCapacity                     : 1
SkuName                         : Standard
SkuTier                         : Standard
Status                          : Active
Tag                             : {
                                  }
TenantId                        : 00000000000
Type                            : Microsoft.EventHub/Namespaces
UpdatedAt                       : 11/17/2022 3:21:19 PM
UserAssignedIdentity            : {
                                  }
ZoneRedundant                   : True

获取资源组 myResourceGroup中 EventHub 命名空间myNamespace的详细信息。

示例 2:列出资源组中的所有 EventHub 命名空间

Get-AzEventHubNamespaceV2 -ResourceGroupName myResourceGroup

列出资源组 myResourceGroup下的所有 EventHub 命名空间。

示例 3:列出订阅中的所有 EventHub 命名空间

Get-AzEventHubNamespaceV2

列出当前订阅上下文中的所有 EventHub 命名空间。

参数

-DefaultProfile

用于与 Azure 通信的凭据、帐户、租户和订阅。

Type:PSObject
Aliases:AzureRMContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-InputObject

标识参数 若要构造,请参阅 NOTES 部分的 INPUTOBJECT 属性和创建哈希表。

Type:IEventHubIdentity
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False

-Name

命名空间名称

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

-ResourceGroupName

Azure 订阅中的资源组的名称。

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

-SubscriptionId

唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。

Type:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
Accept pipeline input:False
Accept wildcard characters:False

输入

IEventHubIdentity

输出

IEhNamespace

备注

别名

复杂参数属性

若要创建下面所述的参数,请构造包含相应属性的哈希表。 有关哈希表的信息,请运行 Get-Help about_Hash_Tables。

INPUTOBJECT <IEventHubIdentity>:标识参数

  • [Alias <String>]:灾难恢复配置名称
  • [ApplicationGroupName <String>]:应用程序组名称
  • [AuthorizationRuleName <String>]:授权规则名称。
  • [ClusterName <String>]:事件中心群集的名称。
  • [ConsumerGroupName <String>]:使用者组名称
  • [EventHubName <String>]:事件中心名称
  • [Id <String>]:资源标识路径
  • [NamespaceName <String>]:命名空间名称
  • [PrivateEndpointConnectionName <String>]:PrivateEndpointConnection 名称
  • [ResourceAssociationName <String>]:ResourceAssociation 名称
  • [ResourceGroupName <String>]:Azure 订阅中的资源组的名称。
  • [SchemaGroupName <String>]:架构组名称
  • [SubscriptionId <String>]:唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。