Set-PartnerCustomer

Updates a customer's billing profile, including the address associated with the profile.

Syntax

Customer (Default)

Set-PartnerCustomer
    -CustomerId <String>
    [-BillingAddressLine1 <String>]
    [-BillingAddressLine2 <String>]
    [-BillingAddressCity <String>]
    [-BillingAddressCountry <String>]
    [-BillingAddressPhoneNumber <String>]
    [-BillingAddressPostalCode <String>]
    [-BillingAddressRegion <String>]
    [-BillingAddressState <String>]
    [-DisableValidation]
    [-Email <String>]
    [-Name <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

CustomerObject

Set-PartnerCustomer
    -InputObject <PSCustomer>
    [-BillingAddressLine1 <String>]
    [-BillingAddressLine2 <String>]
    [-BillingAddressCity <String>]
    [-BillingAddressCountry <String>]
    [-BillingAddressPhoneNumber <String>]
    [-BillingAddressPostalCode <String>]
    [-BillingAddressRegion <String>]
    [-BillingAddressState <String>]
    [-DisableValidation]
    [-Email <String>]
    [-Name <String>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

Updates a customer's billing profile.

Examples

Example 1

PS C:\> Set-PartnerCustomer -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -BillingAddressLine1 '700 Bellevue Way' -BillingAddressCity 'Bellevue' -BillingAddressPostalCode '98004'

Updates the billing address for the customer, with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08, to 700 Bellevue Way NE, Bellevue, WA 98004.

Example 2

PS C:\> $customer = Get-PartnerCustomer 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08
PS C:\> $customer | Set-PartnerCustomer -BillingAddressLine1 '700 Bellevue Way' -BillingAddressCity 'Bellevue' -BillingAddressPostalCode '98004'

Updates the billing address for the customer, with the identifier of 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08, to 700 Bellevue Way NE, Bellevue, WA 98004.

Parameters

-BillingAddressCity

The city of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressCountry

The country of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressLine1

The first line of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressLine2

The second line of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressPhoneNumber

The phone number of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressPostalCode

The postal code of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressRegion

The region of the customer's billing address.

Parameter properties

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

Parameter sets

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

-BillingAddressState

The state of the customer's billing address.

Parameter properties

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

Parameter sets

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

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

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

-CustomerId

Identifier of the customer being modified.

Parameter properties

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

Parameter sets

Customer
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-DisableValidation

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

Parameter properties

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

Parameter sets

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

-Email

Email address of the primary contact of the customer.

Parameter properties

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

Parameter sets

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

-InputObject

The customer object to be modified.

Parameter properties

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

Parameter sets

CustomerObject
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

Name of the customer.

Parameter properties

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

Parameter sets

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

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
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.

Inputs

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

Outputs

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