你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzRelayNamespace
返回指定命名空间的说明。
语法
Get-AzRelayNamespace
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzRelayNamespace
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzRelayNamespace
-InputObject <IRelayIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzRelayNamespace
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
说明
返回指定命名空间的说明。
示例
示例 1:列出资源组中的所有中继命名空间
Get-AzRelayNamespace -ResourceGroupName lucas-relay-rg
Name ResourceGroupName Location Status SkuName ServiceBusEndpoint
---- ----------------- -------- ------ ------- ------------------
lucasrelay lucas-relay-rg West Central US Active Standard https://lucasrelay.servicebus.windows.net:443/
namespace-pwsh01 lucas-relay-rg East US Active Standard https://namespace-pwsh01.servicebus.windows.net:443/
该 cmdlet 列出资源组中的所有中继命名空间。
示例 2:获取资源组中指定中继命名空间的说明
Get-AzRelayNamespace -ResourceGroupName lucas-relay-rg -Name namespace-pwsh01 | Format-List
CreatedAt : 12/20/2022 3:20:46 AM
Id : /subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourceGroups/lucas-relay-rg/providers/Microso
ft.Relay/namespaces/namespace-pwsh01
Location : East US
MetricId : 9e223dbe-3399-4e19-88eb-0975f02ac87f:namespace-pwsh01
Name : namespace-pwsh01
PrivateEndpointConnection :
ProvisioningState : Succeeded
PublicNetworkAccess :
ResourceGroupName : lucas-relay-rg
ServiceBusEndpoint : https://namespace-pwsh01.servicebus.windows.net:443/
SkuName : Standard
SkuTier : Standard
Status : Active
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : {
}
Type : Microsoft.Relay/Namespaces
UpdatedAt : 12/20/2022 3:21:28 AM
该 cmdlet 获取资源组中指定中继命名空间的说明。
示例 3:按管道获取指定中继命名空间的说明
$namespaces = Get-AzRelayNamespace -ResourceGroupName lucas-relay-rg
$namespaces[0] | Get-AzRelayNamespace
Name ResourceGroupName Location Status SkuName ServiceBusEndpoint
---- ----------------- -------- ------ ------- ------------------
lucasrelay lucas-relay-rg West Central US Active Standard https://lucasrelay.servicebus.windows.net:443/
该 cmdlet 按管道获取指定中继命名空间的说明。
参数
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
要构造的标识参数,请参阅 INPUTOBJECT 属性的 NOTES 部分并创建哈希表。
Type: | IRelayIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
命名空间名称
Type: | String |
Aliases: | NamespaceName |
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
唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。
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 <IRelayIdentity>
:标识参数
[AuthorizationRuleName <String>]
:授权规则名称。[HybridConnectionName <String>]
:混合连接名称。[Id <String>]
:资源标识路径[NamespaceName <String>]
:命名空间名称[PrivateEndpointConnectionName <String>]
:PrivateEndpoint连接ion 名称[PrivateLinkResourceName <String>]
:PrivateLinkResource 名称[RelayName <String>]
:中继名称。[ResourceGroupName <String>]
:Azure 订阅中的资源组的名称。[SubscriptionId <String>]
:唯一标识 Microsoft Azure 订阅的订阅凭据。 此订阅 ID 是每个服务调用的 URI 的一部分。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈