Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
138 lines (97 loc) · 3.1 KB

Test-PCAddress.md

File metadata and controls

138 lines (97 loc) · 3.1 KB

Test-PCAddress

Validates the provided address information to determine if it meets the Partner Center validation rules.

SYNTAX

Test-PCAddress -Address <DefaultAddress> [-SaToken <String>] [<CommonParameters>]

Test-PCAddress -AddressLine1 <String> [-AddressLine2 <String>] -City <String> -State <String> -PostalCode <String> -Country <String> [-SaToken <String>] [<CommonParameters>]

DESCRIPTION

The Test-PCAddress cmdlet validates the provided the address information as to whether it conforms to the Partner Center address rules.

PARAMETERS

-Address <DefaultAddress>

Specifies a variable object that includes all of the address information. This object can be created by using the New-PCAddress cmdlet.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-AddressLine1 <String>

Specifies the first address line.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-AddressLine2 <String>

Specifies the second address line.

Required?                    false
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-City <String>

Specifies the city.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-State <String>

Specifies the state.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-PostalCode <String>

Specifies the postal code.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-Country <String>

Specifies a two letter ISO code to define the country.

Required?                    true
Position?                    named
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-SaToken <String>

Specifies an partner center access token.

Required?                    false
Position?                    named
Default value                $GlobalToken
Accept pipeline input?       false
Accept wildcard characters?  false

INPUTS

OUTPUTS

NOTES

EXAMPLES

EXAMPLE 1

Validate an address by passing an object variable named $add that was created using the New-PCAddress cmdlet.

PS C:\>$address = New-PCAddress -AddressLine1 '<string>' -AddressLine2 '<string>' -City '<string>' -State '<string>' -PostalCode '<string>' -Country 'two digits Country code' -region '<string>'
PS C:\>Test-PCAddress -Address $add

EXAMPLE 2

Validate an address by passing the address information to the cmdlet.

PS C:\>Test-PCAddress -AddressLine1 '1 Microsoft Way' -City 'Redmond' -State 'WA' -Country 'US' -PostalCode '95802'