Share via


Set-SCSPFStamp

Associates a stamp with offers, servers, and tenants.

Syntax

Default (Default)

Set-SCSPFStamp
    -Stamp <Stamp>
    [-Servers <Server[]>]
    [-Tenants <Tenant[]>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Set-SCSPFStamp cmdlet associates a stamp with one or more servers, one or more tenants, and one or more offers in Service Provider Foundation.

If you want to add an offer, server, or tenant to a stamp without changing the currently associated objects, use the Set-SCSPFServer or Set-SCSPFTenant cmdlets.

Examples

Example 1: Associate a stamp with a tenant

PS C:\>$Stamp = Get-SCSPFStamp -ID db656655-68ff-4a21-bd1d-0a06bdbc762f
PS C:\> $Tenant = Get-SCSPFTenant -Name "Contoso"
PS C:\> Set-SCSPFStamp -Stamp $Stamp -Tenants $Tenant

The first command gets a stamp. The second command gets a tenant.

The third command associates the tenant with the stamp.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.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

-Servers

Specifies one or more servers to associate with the stamp. To obtain a server, use the Get-SCSPFServer cmdlet.

Parameter properties

Type:

Microsoft.SystemCenter.Foundation.SPFData.Types.Server[]

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

-Stamp

Specifies the stamp object to set to new values by the other parameters in this cmdlet. To obtain a stamp, use the Get-SCSPFStamp cmdlet.

Parameter properties

Type:Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp
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

-Tenants

Specifies the name of one or more tenant objects. To obtain a tenant, use the Get-SCSPFTenant cmdlet.

Parameter properties

Type:

Microsoft.SystemCenter.Foundation.SPFData.Types.Tenant[]

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:System.Management.Automation.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

None

Outputs

System.Object