Set-SCSPFStamp
Associates a stamp with offers, servers, and tenants.
Syntax
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.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Servers
Specifies one or more servers to associate with the stamp. To obtain a server, use the Get-SCSPFServer cmdlet.
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Server[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | 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.
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Stamp |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Tenants
Specifies the name of one or more tenant objects. To obtain a tenant, use the Get-SCSPFTenant cmdlet.
Type: | Microsoft.SystemCenter.Foundation.SPFData.Types.Tenant[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | System.Management.Automation.SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None
Outputs
System.Object