< Back

Test-AzureName

Wed Jan 30, 2019 5:42 pm

NAME Test-AzureName



SYNOPSIS

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





SYNTAX

Test-AzureName [-Service] <SwitchParameter> [-Name] <String> [<CommonParameters>]



Test-AzureName [-Storage] <SwitchParameter> [-Name] <String> [<CommonParameters>]



Test-AzureName [-ServiceBusNamespace] <SwitchParameter> [-Name] <String> [<CommonParameters>]



Test-AzureName [-Website] <SwitchParameter> [-Name] <String> [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-Name <String>

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



Required? true

Position? 2

Default value

Accept pipeline input? true (ByPropertyName)

Accept wildcard characters? false



-Service [<SwitchParameter>]

Specifies to test for an existing service account.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Storage [<SwitchParameter>]

Specifies to test for an existing storage account.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ServiceBusNamespace [<SwitchParameter>]

Specifies to test for an existing service bus namespace.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Website [<SwitchParameter>]

Specifies to test for an existing website.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









NOTES





node-dev, php-dev



Keywords: azure, azuresm, servicemanagement, management, service, utilities



-------------- Example 1 --------------



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



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

-------------- Example 2 --------------



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



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

-------------- Example 3 --------------



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



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



RELATED LINKS