Set-SCSPFOffer

Set-SCSPFOffer

Associates an offer with tenants and stamps.

Syntax

Parameter Set: Default
Set-SCSPFOffer -Offer <Offer> [-Stamps <Stamp[]> ] [-Tenants <Tenant[]> ] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Set-SCSPFOffer cmdlet associates an offer with a tenant and stamp in Service Provider Foundation. Each tenant that is associated with the offer will have access to the stamps that are specified in the offer.

A tenant can be assigned only to a one offer. But an offer can associated with multiple tenants.

If you want to add an association of a stamp to an offer without changing the stamps currently associated with the offer, use the Set-SCSPFStamp cmdlet.

Parameters

-Offer<Offer>

Specifies the offer object to be set to new values by the other parameters in this cmdlet. To obtain an offer, use the Get-SCSPFOffer cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Stamps<Stamp[]>

Specifies one or more stamps to associate with the offer. To obtain a stamp, use the Get-SCSPFStamp cmdlet.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Tenants<Tenant[]>

Specifies one or more tenants to associate with the offer. To obtain a tenant, use the Get-SCSPFTenant cmdlet.

If you set a tenant that already is associated with an offer to a new offer, that tenant will be associated with the new offer.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

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, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

1: Set an offer to a tenant and stamp.

The first three commands get an offer, a tenant, and a stamp.

The fourth command associates the tenant and stamp with the offer.

PS C:\> $offr = Get-SCSPFOffer -ID 64cc59ff-ae54-41f8-b6bd-c811361df6aa
PS C:\> $tnnt = Get-SCSPFTenant -Name "ADatum"
PS C:\> $stmp = Get-SCSPFStamp -Name "Platinum"
PS C:\> Set-SCSPFOffer -Offer $offr -Stamps $stmp -Tenants $tnnt

New-SCSPFOffer

Get-SCSPFOffer

Remove-SCSPFOffer