Update-AzWvdSessionHost    
	
   
	
	Syntax 
	
		UpdateExpanded (Default)
	  
	
		Update-AzWvdSessionHost
    -HostPoolName <String>
    -Name <String>
    -ResourceGroupName <String>
    [-SubscriptionId <String>]
    [-Force]
    [-AllowNewSession]
    [-AssignedUser <String>]
    [-FriendlyName <String>]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	
		UpdateViaJsonString
	    
	
		Update-AzWvdSessionHost
    -HostPoolName <String>
    -Name <String>
    -ResourceGroupName <String>
    -JsonString <String>
    [-SubscriptionId <String>]
    [-Force]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	
		UpdateViaJsonFilePath
	     
	
		Update-AzWvdSessionHost
    -HostPoolName <String>
    -Name <String>
    -ResourceGroupName <String>
    -JsonFilePath <String>
    [-SubscriptionId <String>]
    [-Force]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	
		UpdateViaIdentityHostPoolExpanded
	      
	
		Update-AzWvdSessionHost
    -Name <String>
    -HostPoolInputObject <IDesktopVirtualizationIdentity>
    [-Force]
    [-AllowNewSession]
    [-AssignedUser <String>]
    [-FriendlyName <String>]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	
		UpdateViaIdentityHostPool
	     
	
		Update-AzWvdSessionHost
    -Name <String>
    -HostPoolInputObject <IDesktopVirtualizationIdentity>
    -SessionHost <ISessionHostPatch>
    [-Force]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	
		UpdateViaIdentityExpanded
	    
	
		Update-AzWvdSessionHost
    -InputObject <IDesktopVirtualizationIdentity>
    [-Force]
    [-AllowNewSession]
    [-AssignedUser <String>]
    [-FriendlyName <String>]
    [-DefaultProfile <PSObject>]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	Description 
	
	Examples 
	Example 1: Update a Windows Virtual Desktop SessionHost by name  
	
		Update-AzWvdSessionHost -ResourceGroupName ResourceGroupName `
                            -HostPoolName HostPoolName `
                            -Name SessionHostName `
                            -AllowNewSession:$false
Name                                               Type
----                                               ----
HostPoolName/SessionHostName Microsoft.DesktopVirtualization/hostpools/sessionhosts
This command updates a Windows Virtual Desktop SessionHost in a Host Pool.
	 
	Parameters 
		-AllowNewSession   
		Allow a new session.
		Parameter properties 
		
				Type: SwitchParameter 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityHostPoolExpanded 
					
						 
				      
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityExpanded 
					
						 
				    
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-AssignedUser  
		User assigned to SessionHost.
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityHostPoolExpanded 
					
						 
				      
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityExpanded 
					
						 
				    
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-Confirm 
		Prompts you for confirmation before running the cmdlet.
		Parameter properties 
		
				Type: SwitchParameter 
Default value: None Supports wildcards: False DontShow: False Aliases: cf 
		Parameter sets 
			
				
					(All) 
					
						 
				 
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-DefaultProfile  
		The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
		Parameter properties 
		
				Type: PSObject 
Default value: None Supports wildcards: False DontShow: False Aliases: AzureRMContext, AzureCredential 
		Parameter sets 
			
				
					(All) 
					
						 
				 
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-Force 
		Force flag to update assign, unassign or reassign personal desktop.
		Parameter properties 
		
				Type: SwitchParameter 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					(All) 
					
						 
				 
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-FriendlyName  
		Friendly name of SessionHost
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityHostPoolExpanded 
					
						 
				      
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityExpanded 
					
						 
				    
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		
		Identity Parameter
		
		
		
			
				
					UpdateViaIdentityHostPoolExpanded 
					
						 
				      
				
						Position: Named Mandatory: True Value from pipeline: True Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityHostPool 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: True Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-HostPoolName   
		The name of the host pool within the specified resource group
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonString 
					
						 
				    
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonFilePath 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		
		Identity Parameter
		
		
		
			
				
					UpdateViaIdentityExpanded 
					
						 
				    
				
						Position: Named Mandatory: True Value from pipeline: True Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-JsonFilePath   
		Path of Json file supplied to the Update operation
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateViaJsonFilePath 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-JsonString  
		Json string supplied to the Update operation
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateViaJsonString 
					
						 
				    
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-Name 
		The name of the session host within the specified host pool
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False Aliases: SessionHostName 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonString 
					
						 
				    
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonFilePath 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityHostPoolExpanded 
					
						 
				      
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaIdentityHostPool 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-ResourceGroupName   
		The name of the resource group.
The name is case insensitive.
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonString 
					
						 
				    
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonFilePath 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-SessionHost  
		SessionHost properties that can be patched.
		Parameter properties 
		
		Parameter sets 
			
				
					UpdateViaIdentityHostPool 
					
						 
				     
				
						Position: Named Mandatory: True Value from pipeline: True Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-SubscriptionId  
		The ID of the target subscription.
The value must be an UUID.
		Parameter properties 
		
				Type: String 
Default value: (Get-AzContext).Subscription.Id Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					UpdateExpanded 
					
						 
				  
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonString 
					
						 
				    
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
			
				
					UpdateViaJsonFilePath 
					
						 
				     
				
						Position: Named Mandatory: False Value from pipeline: False Value from pipeline by property name: False Value from remaining arguments: False 
			 
		-WhatIf  
		Shows what would happen if the cmdlet runs.
The cmdlet is not run.
		Parameter properties 
		
				Type: SwitchParameter 
Default value: None Supports wildcards: False DontShow: False Aliases: wi 
		Parameter sets 
			
				
					(All) 
					
						 
				 
				
						Position: Named Mandatory: False 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 .
		 
	
			
			
				
			
			
			
				
			
	Outputs