exports/Update-NmeHostPoolVMDeploymentProperty.ps1
|
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.752) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Patch host deployment config for ARM host pool .Description Patch host deployment config for ARM host pool #> function Update-NmeHostPoolVMDeploymentProperty { [OutputType([NmePowershell.Models.IHostPoolVMDeployment])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] [NmePowershell.Category('Path')] [System.String] # . ${HostPoolName}, [Parameter(Mandatory)] [NmePowershell.Category('Path')] [System.String] # . ${ResourceGroup}, [Parameter(Mandatory)] [NmePowershell.Category('Path')] [System.String] # . ${SubscriptionId}, [Parameter(ParameterSetName='Update', Mandatory, ValueFromPipeline)] [NmePowershell.Category('Body')] [NmePowershell.Models.IHostPoolVMDeploymentUpdate] # . ${Body}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${AlwaysPromptForPassword}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [System.String[]] # . ${ApplicationSecurityGroupIds}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${BootDiagEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [System.String[]] # . ${BootDiagStorageAccountsIds}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [System.String[]] # . ${CapacityReservationGroupsIds}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.PSArgumentCompleterAttribute("None", "CompliancePoliciesOnly", "AllIntunePolicies")] [NmePowershell.Category('Body')] [System.String] # . ${ComplianceEnforcement}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${ComplianceTimeout}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${ConfidentialDiskEncryption}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.String] # . ${DedicatedHostGroupId}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.String] # . ${DedicatedHostId}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [System.String[]] # . ${DiskEncryptionSetsIds}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${EnableAppvClientService}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${EnableHevc}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${EnableTimezoneRedirection}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${EnableVMDeallocation}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${EncryptionAtHost}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${EntraDeviceTimeoutInMinutes}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [System.String[]] # . ${EntraIdGroups}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${ForceVMRestart}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${InstallCertificates}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${InstallGpuDrivers}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IntegrityMonitoring}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsAcceleratedNetworkingEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${IsShadowUsersEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${OnCreateActiveDirectoryId}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${OnCreateEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [NmePowershell.Models.IScriptedActionOption[]] # . ${OnCreateScriptedActions}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${OnHostCreateActiveDirectoryId}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${OnHostCreateEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [NmePowershell.Models.IScriptedActionOption[]] # . ${OnHostCreateScriptedActions}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${OnRemoveActiveDirectoryId}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${OnRemoveEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [NmePowershell.Models.IScriptedActionOption[]] # . ${OnRemoveScriptedActions}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${OnStartActiveDirectoryId}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${OnStartEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [NmePowershell.Models.IScriptedActionOption[]] # . ${OnStartScriptedActions}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${OnStopActiveDirectoryId}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${OnStopEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [NmePowershell.Models.IScriptedActionOption[]] # . ${OnStopScriptedActions}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.PSArgumentCompleterAttribute("Default", "Manual", "AutomaticByOS", "AutomaticByPlatform")] [NmePowershell.Category('Body')] [System.String] # . ${PatchOrchestration}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.PSArgumentCompleterAttribute("SCSI", "NVMe")] [NmePowershell.Category('Body')] [System.String] # . ${PreferredDiskControllerType}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [System.String[]] # . ${ProximityPlacementGroupIds}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.PSArgumentCompleterAttribute("DoNothing", "ForceEnable", "ForceDisable")] [NmePowershell.Category('Body')] [System.String] # . ${RdpShortpath}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${RunAppPolicies}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${SecureBootEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.PSArgumentCompleterAttribute("None", "TrustedLaunch", "Confidential")] [NmePowershell.Category('Body')] [System.String] # . ${SecurityType}, [Parameter(ParameterSetName='UpdateExpanded')] [AllowEmptyCollection()] [NmePowershell.Category('Body')] [NmePowershell.Models.IHostPoolAssignment[]] # . ${ShadowUserAssignments}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${UseAvailabilityZones}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${UseDedicatedHosts}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.String] # . ${VMTimezone}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${VTpmEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Management.Automation.SwitchParameter] # . ${WatermarkingEnabled}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${WatermarkingHeightFactor}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${WatermarkingOpacity}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${WatermarkingScale}, [Parameter(ParameterSetName='UpdateExpanded')] [NmePowershell.Category('Body')] [System.Int32] # . ${WatermarkingWidthFactor}, [Parameter(DontShow)] [NmePowershell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [NmePowershell.Category('Runtime')] [NmePowershell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [NmePowershell.Category('Runtime')] [NmePowershell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [NmePowershell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [NmePowershell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [NmePowershell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $testPlayback = $false $PSBoundParameters['HttpPipelinePrepend'] | Foreach-Object { if ($_) { $testPlayback = $testPlayback -or ('NmePowershell.Runtime.PipelineMock' -eq $_.Target.GetType().FullName -and 'Playback' -eq $_.Target.Mode) } } $mapping = @{ Update = 'NerdioManagerPowerShell.private\Update-NmeHostPoolVMDeploymentProperty_Update'; UpdateExpanded = 'NerdioManagerPowerShell.private\Update-NmeHostPoolVMDeploymentProperty_UpdateExpanded'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [NmePowershell.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [NmePowershell.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) if ($wrappedCmd -eq $null) { $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Function) } $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } |