Checks availability of a namespace name or disaster recovery alias.
例
Example 1: Check the availability of an EventHub namespace name
Test-AzEventHubName -NamespaceName myNamespace
Message NameAvailable Reason
------- ------------- ------
The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. False NameInUse
Checks the availability of namespace name myNamespace.
Example 2: Check the availability of an EventHub Geo Disaster Recovery Alias
Message NameAvailable Reason
------- ------------- ------
The specified name is not available. For more information visit https://aka.ms/eventhubsarmexceptions. False NameInUse
Checks the availability of alias name myAlias on namespace myNamespace.
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.