Add-AzureRmVmssAdditionalUnattendContent
Syntax
Add-AzureRmVmssAdditionalUnattendContent
[-VirtualMachineScaleSet] <PSVirtualMachineScaleSet>
[[-PassName] <PassNames>]
[[-ComponentName] <ComponentNames>]
[[-SettingName] <SettingNames>]
[[-Content] <String>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Add-AzureRmVmssAdditionalUnattendContent cmdlet adds information to the unattended Windows Setup answer file.
Examples
Example 1: Add information to the unattended Windows Setup answer file
PS C:\> Add-AzureRmVmssAdditionalUnattendContent -VirtualMachineScaleSet $VMSS -ComponentName $AUCComponentName -Content $AUCContent -PassName $AUCPassName -SettingName $AUCSetting
This command adds information to the unattended Windows Setup answer file.
Parameters
Specifies the name of the component to configure with the added content. The only allowable value is Microsoft-Windows-Shell-Setup.
Type: | System.Nullable`1[Microsoft.Azure.Management.Compute.Models.ComponentNames] |
Accepted values: | MicrosoftWindowsShellSetup |
Position: | 2 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the XML formatted content that is added to the unattend.xml file for the specified path and component.
Type: | String |
Position: | 4 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
The credentials, account, tenant, and subscription used for communication with azure.
Type: | Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer |
Aliases: | AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Specifies the name of the pass that the content applies to. The only allowable value is oobeSystem.
Type: | System.Nullable`1[Microsoft.Azure.Management.Compute.Models.PassNames] |
Accepted values: | OobeSystem |
Position: | 1 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Specifies the name of the setting to which the content applies. The acceptable values for this parameter are::
- FirstLogonCommands
- AutoLogon
Type: | System.Nullable`1[Microsoft.Azure.Management.Compute.Models.SettingNames] |
Accepted values: | AutoLogon, FirstLogonCommands |
Position: | 3 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName) |
Accept wildcard characters: | False |
Specify the virtual machine Scale Set object. You can use the New-AzureRmVmssConfig cmdlet to create the object.
Type: | PSVirtualMachineScaleSet |
Position: | 0 |
Default value: | None |
Accept pipeline input: | True (ByPropertyName, ByValue) |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
System.Nullable`1[[Microsoft.Azure.Management.Compute.Models.PassNames, Microsoft.Azure.Management.Compute, Version=21.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
System.Nullable`1[[Microsoft.Azure.Management.Compute.Models.ComponentNames, Microsoft.Azure.Management.Compute, Version=21.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]
System.Nullable`1[[Microsoft.Azure.Management.Compute.Models.SettingNames, Microsoft.Azure.Management.Compute, Version=21.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]