Share via


Test-AzsNameAvailability

Returns the avaialbility of the specified subscriptions resource type and name

Syntax

Default (Default)

Test-AzsNameAvailability
    -Name <String>
    -ResourceType <String>
    [<CommonParameters>]

Description

Returns the avaialbility of the specified subscriptions resource type and name

Examples

-------------------------- EXAMPLE 1 --------------------------

Test-AzsNameAvailability -ResourceType "Microsoft.Subscriptions.Admin/offers" -Name offername1

Returns the avaialbility of the specified subscriptions resource type and name

Parameters

-Name

The resource name to verify.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ResourceType

The resource type to verify.

Parameter properties

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

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

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.

Outputs

Microsoft.AzureStack.Management.Subscriptions.Admin.Models.CheckNameAvailabilityResponse