< Back

New-PartnerCustomer

Sat Jan 18, 2020 6:34 pm

NAME New-PartnerCustomer



SYNOPSIS

Creates a new customer.





SYNTAX

New-PartnerCustomer [-AssociatedPartnerId <String>] [-BillingAddressCity <String>] -BillingAddressCountry <String>

-BillingAddressLine1 <String> [-BillingAddressLine2 <String>] [-BillingAddressPostalCode <String>]

[-BillingAddressRegion <String>] [-BillingAddressState <String>] [-ContactEmail <String>] [-ContactFirstName

<String>] [-ContactLastName <String>] [-ContactPhoneNumber <String>] [-Culture <String>] [-DisableValidation]

-Domain <String> -Language <String> -Name <String> [-Confirm] [-WhatIf] [<CommonParameters>]





DESCRIPTION

Creates a new customer.





PARAMETERS

-AssociatedPartnerId <String>

The associated partner identifier. Used if creating a customer for an indirect reseller.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressCity <String>

The city of the customer's billing address.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressCountry <String>

The country of the customer's billing address.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressLine1 <String>

The first line of the customer's billing address.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressLine2 <String>

The second line of the customer's billing address.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressPostalCode <String>

The postal code of the customer's billing address.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressRegion <String>

The region of the customer's billing address.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-BillingAddressState <String>

The state of the customer's billing address.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ContactEmail <String>

The email address of the primary contact of the customer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ContactFirstName <String>

The first name of the primary contact of the customer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ContactLastName <String>

The last name of the primary contact of the customer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ContactPhoneNumber <String>

The phone number of the primary contact of the customer.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Culture <String>

The preferred culture for communication and currency.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-DisableValidation [<SwitchParameter>]

A flag that indicates whether the additional client side validation should be disabled.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Domain <String>

The customer's domain name, such as contoso.onmicrosoft.com. 27 characters maximum domain prefix + 16 maximum

characters suffix for '.onmicrosoft.com'



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Language <String>

The default language. Two character language codes (e.g., en, fr) are supported.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

The name of the customer to be created.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

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

None







OUTPUTS

Microsoft.Store.PartnerCenter.PowerShell.Models.Customers.PSCustomer







NOTES









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



PS C:\\> New-PartnerCustomer -BillingAddressLine1 '1 Microsoft Way' -BillingAddressCity 'Redmond'

-BillingAddressCountry 'US' -BillingAddressPostalCode '98052' -BillingAddressState 'WA' -ContactEmail

'jdoe@customer.com' -ContactFirstName 'Jane' -ContactLastName 'Doe' -Culture 'en-US' -Domain

'newcustomer.onmicrosoft.com' -Language 'en' -Name 'New Customer'



Creates a new customer.







RELATED LINKS

Online Version: https://docs.microsoft.com/powershell/m ... erCustomer