Test-AzServiceBusNameAvailability
Checks the Availability of the given Queue or Topic name
Syntax
Test-AzServiceBusNameAvailability
[-ResourceGroupName] <String>
[-Namespace] <String>
[-Name] <String>
[-Queue]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Test-AzServiceBusNameAvailability
[-ResourceGroupName] <String>
[-Namespace] <String>
[-Name] <String>
[-Topic]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Test-AzServiceBusNameAvailability Cmdlet Check Availability of the provided Name of Queue or Topic
Examples
Example 1
Test-AzServiceBusNameAvailability -ResourceGroupName $resourceGroupName -Namespace $namespaceName -Name $nameQueue -Queue
True
Returns True if the Provided $nameQueue name is Availabile or returns False if Provided $nameQueue name in not available
Example 2
Test-AzServiceBusNameAvailability -ResourceGroupName $resourceGroupName -Namespace $namespaceName -Name $nameTopic -Topic
True
Returns True if the Provided $nameTopic name is Availabile or returns False if Provided $nameTopic name in not available
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Queue Name to check the Name Availability
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Namespace
Servicebus Namespace Name
Type: | String |
Aliases: | NamespaceName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Queue
To Check Name Availability for Queue Name
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Resource Group Name
Type: | String |
Aliases: | ResourceGroup |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Topic
To Check Name Availability for Topic Name
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell