Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Get-AzServiceBusNamespace

Gets a description for the specified namespace.

Syntax

List (Default)

Get-AzServiceBusNamespace
 [-SubscriptionId <String[]>]
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

Get

Get-AzServiceBusNamespace
 -Name <String>
 -ResourceGroupName <String>
 [-SubscriptionId <String[]>]
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

List1

Get-AzServiceBusNamespace
 -ResourceGroupName <String>
 [-SubscriptionId <String[]>]
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

GetViaIdentity

Get-AzServiceBusNamespace
 -InputObject <IServiceBusIdentity>
 [-DefaultProfile <PSObject>]
 [<CommonParameters>]

Description

Gets a description for the specified namespace.

Examples

Example 1: Gets a description for the specified namespace.

$namespace = Get-AzServiceBusNamespace -ResourceGroupName myResourceGroup -Name myNamespace
AlternateName :
CreatedAt : 11/22/2022 4:15:58 PM
DisableLocalAuth : False
Id : /subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ServiceBus/namespaces/myNamespace
IdentityType : UserAssigned
KeySource : Microsoft.KeyVault
KeyVaultProperty : {{
 "identity": {
 "userAssignedIdentity": "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/use
 rAssignedIdentities/myFirstIdentity"
 },
 "keyName": "key4",
 "keyVaultUri": "https://testkeyvault.vault.azure.net",
 "keyVersion": ""
 }}
Location : East US
MetricId : 000000000000000:myNamespace
MinimumTlsVersion : 1.2
Name : myNamespace
PrincipalId :
PrivateEndpointConnection :
ProvisioningState : Succeeded
PublicNetworkAccess : Enabled
RequireInfrastructureEncryption : False
ResourceGroupName : myResourceGroup
ServiceBusEndpoint : https://myNamespace.servicebus.windows.net:443/
SkuCapacity : 1
SkuName : Premium
SkuTier : Premium
Status : Active
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt :
SystemDataLastModifiedBy :
SystemDataLastModifiedByType :
Tag : {
 }
TenantId :
Type : Microsoft.ServiceBus/Namespaces
UpdatedAt : 11/23/2022 7:14:58 AM
UserAssignedIdentity : {
 "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity
 /userAssignedIdentities/myThirdIdentity": {
 },
 "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity
 /userAssignedIdentities/mySecondIdentity": {
 },
 "/subscriptions/000000000000000/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity
 /userAssignedIdentities/myFirstIdentity": {
 }
 }
ZoneRedundant : False

Get namespaces description from ResourceGroup.

Example 2: List all ServiceBus namespaces in a resource group.

Get-AzServiceBusNamespace -ResourceGroupName myResourceGroup

Lists all ServiceBus namespaces under resource group myResourceGroup.

Example 3: List all ServiceBus namespaces in a subscription

Get-AzServiceBusNamespace

Lists all ServiceBus namespaces in the current subscription context.

Parameters

-DefaultProfile

The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.

Parameter properties

Type:PSObject
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzureRMContext, AzureCredential

Parameter sets

-InputObject

Identity Parameter

Parameter properties

Type:IServiceBusIdentity
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

The namespace name

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:NamespaceName

Parameter sets

-ResourceGroupName

Name of the Resource group within the Azure subscription.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-SubscriptionId

Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.

Parameter properties

Type:

String[]

Default value:(Get-AzContext).Subscription.Id
Supports wildcards:False
DontShow:False

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

IServiceBusIdentity

Outputs

ISbNamespace

Notes

ALIASES

Get-AzServiceBusNamespaceV2

Related Links


Feedback

Was this page helpful?