New-ShieldedVMSpecializationDataFile
Creates a specialization data file to be used when provisioning a shielded virtual machine.
Syntax
Default (Default)
New-ShieldedVMSpecializationDataFile
[-ShieldedVMSpecializationDataFilePath] <String>
[-SpecializationDataPairs] <Hashtable>
[<CommonParameters>]
Description
The New-ShieldedVMSpecializationDataFile cmdlet creates a specialization data file to be used when provisioning a shielded virtual machine.
Examples
Example 1: Create a specialization data file to be used when provisioning a shielded virtual machine
PS C:\>New-ShieldedVMSpecializationDataFile -ShieldedVMSpecializationDataFilePath "C:\temp\VM01.fsk" -SpecializationDataPairs @{ "@ComputerName@" = "PC-001"; "@TimeZone@" = "GMT Standard Time" }
This command creates a specialization data file mapping the string @ComputerName@ in answer files to PC-001 and @TimeZone@ to GMT Standard Time. The file is stored at C:\temp\VM01.fsk.
Parameters
-ShieldedVMSpecializationDataFilePath
Specifies the path where the specialization data file (.fsk) is saved.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 1 |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-SpecializationDataPairs
Specifies a table of key-value pairs used to replace strings in the answer file. The values must be strings.
Parameter properties
| Type: | Hashtable |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | 2 |
| Mandatory: | True |
| 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.