Skip to content

Latest commit

 

History

History
168 lines (127 loc) · 3.46 KB

Test-AzureName.md

File metadata and controls

168 lines (127 loc) · 3.46 KB
external help file ms.assetid online version schema
Microsoft.WindowsAzure.Commands.dll-Help.xml
0DF54C9D-7A19-4591-A1FC-33C6A4C9BF33
2.0.0

Test-AzureName

SYNOPSIS

Tests whether a Microsoft Azure cloud service name, storage service name or service bus namespace name exists or not.

[!INCLUDE rdfe-banner]

SYNTAX

Service

Test-AzureName [-Service] -Name <String> [-Profile <AzureSMProfile>] [<CommonParameters>]

Storage

Test-AzureName [-Storage] -Name <String> [-Profile <AzureSMProfile>] [<CommonParameters>]

ServiceBusNamespace

Test-AzureName [-ServiceBusNamespace] -Name <String> [-Profile <AzureSMProfile>] [<CommonParameters>]

Website

Test-AzureName [-Website] -Name <String> [-Profile <AzureSMProfile>] [<CommonParameters>]

DESCRIPTION

If the name exists, the cmdlet returns $True. If the name does not exist, it returns $False.

EXAMPLES

Example 1

PS C:\> Test-AzureName -Service "MyNameService1"

This command tests to see if the "MyNameService1" is an existing Microsoft Azure cloud service name.

Example 2

PS C:\> Test-AzureName -Storage "mystorename1"

This command tests to see if the "mystorename1" is an existing Microsoft Azure storage service name.

Example 3

PS C:\> Test-AzureName -ServiceBusNamespace "mynamespace"

This command tests to see if the "mynamespace" is an existing Microsoft Azure service bus namespace name.

PARAMETERS

-Name

Specifies the name of the service or storage account to test.

Type: String
Parameter Sets: (All)
Aliases: 

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

Type: AzureSMProfile
Parameter Sets: (All)
Aliases: 

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

-Service

Specifies to test for an existing service account.

Type: SwitchParameter
Parameter Sets: Service
Aliases: 

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

-ServiceBusNamespace

Specifies to test for an existing service bus namespace.

Type: SwitchParameter
Parameter Sets: ServiceBusNamespace
Aliases: 

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

-Storage

Specifies to test for an existing storage account.

Type: SwitchParameter
Parameter Sets: Storage
Aliases: 

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

-Website

Specifies to test for an existing website.

Type: SwitchParameter
Parameter Sets: Website
Aliases: 

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

OUTPUTS

NOTES

  • node-dev, php-dev, python-dev

RELATED LINKS