< Back

Set-TemplateCopy

Sat Jan 18, 2020 8:26 pm

NAME Set-TemplateCopy



SYNOPSIS

Copy SkyTap Template to a different region





SYNTAX

Set-TemplateCopy [-SkyTapAuth] <String> [-TemplateID] <Int32> [-TargetRegion] <String> [[-CopyOverride] <Boolean>]

[<CommonParameters>]





DESCRIPTION

Copies a specific SkyTap Template ID to any region

specified in the API call





PARAMETERS

-SkyTapAuth <String>

Base64-encoded string containing Username:Password

that was set using the Set-SkyTapAuth function



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-TemplateID <Int32>

The ID number of the Template to copy



Required? true

Position? 2

Default value 0

Accept pipeline input? false

Accept wildcard characters? false



-TargetRegion <String>

The Region to copy the Template to



Required? true

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-CopyOverride <Boolean>

Whether to override the power status of the VMs

associated with the Template being copied. All

VMs in the template are required to be Suspended

or Powered Off in order to copy successfully.



Required? false

Position? 4

Default value True

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



OUTPUTS

Returns the response received from the REST API call





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>$responseTemplateCopy = Set-TemplateCopy -SkyTapAuth $authSkyTap -TemplateID 12345 -TargetRegion "EMEA"

-CopyOverride $false















RELATED LINKS