Set-AzStackHCI  
	
   
	
		Set-AzStackHCI modifies resource properties of the Microsoft.AzureStackHCI cloud resource representing the on-premises cluster to enable or disable features.
	 
	Syntax 
	
		Default (Default)
	 
	
		Set-AzStackHCI
    [[-ComputerName] <String>]
    [-Credential <PSCredential>]
    [-ResourceId <String>]
    [-EnableWSSubscription <Boolean>]
    [-DiagnosticLevel <DiagnosticLevel>]
    [-TenantId <String>]
    [-ArmAccessToken <String>]
    [-AccountId <String>]
    [-EnvironmentName <String>]
    [-UseDeviceAuthentication]
    [-Force]
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]
 
	Description 
	
		Set-AzStackHCI modifies resource properties of the Microsoft.AzureStackHCI cloud resource representing the on-premises cluster to enable or disable features.
	 
	Examples 
	Example 1: 
	
		Set-AzStackHCI -EnableWSSubscription $true
Result: Success
Invoking on one of the cluster node to enable Windows Server Subscription feature
	 
	Example 2: 
	
		Set-AzStackHCI -ComputerName ClusterNode1 -DiagnosticLevel Basic
Result: Success
Invoking from the management node to set the diagnostic level to Basic
	 
	Parameters 
		-AccountId  
		Specifies the ARM access token.
Specifying this along with ArmAccessToken will avoid Azure interactive logon.
		Parameter properties 
		
				Type: String 
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 
			 
		-ArmAccessToken   
		Specifies the ARM access token.
Specifying this along with AccountId will avoid Azure interactive logon.
		Parameter properties 
		
				Type: String 
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 
			 
		-ComputerName  
		Specifies one of the cluster node in on-premise cluster that is registered to Azure.
		Parameter properties 
		
				Type: String 
Default value: None Supports wildcards: False DontShow: False 
		Parameter sets 
			
				
					(All) 
					
						 
				 
				
						Position: 1 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 
			 
		-Credential 
		Specifies the credential for the ComputerName.
Default is the current user executing the Cmdlet.
		Parameter properties 
		
				Type: PSCredential 
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 
			 
		-DiagnosticLevel  
		Specifies the diagnostic level for the cluster.
		Parameter properties 
		
				Type: DiagnosticLevel 
Default value: None Accepted values: Off, Basic, Enhanced 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 
			 
		-EnableWSSubscription  
		Specifies if Windows Server Subscription should be enabled or disabled.
Enabling this feature starts billing through your Azure subscription for Windows Server guest licenses.
		Parameter properties 
		
				Type: Boolean 
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 
			 
		-EnvironmentName  
		Specifies the Azure Environment.
Default is AzureCloud.
Valid values are AzureCloud, AzureChinaCloud, AzurePPE, AzureCanary, AzureUSGovernment
		Parameter properties 
		
				Type: String 
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 
			 
		-Force 
		Forces the command to run without asking for user confirmation.
		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 
			 
		-ResourceId  
		Specifies the fully qualified resource ID, including the subscription, as in the following example: /Subscriptions/subscription ID/providers/Microsoft.AzureStackHCI/clusters/MyCluster
		Parameter properties 
		
				Type: String 
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 
			 
		-TenantId  
		Specifies the Azure TenantId.
		Parameter properties 
		
				Type: String 
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 
			 
		-UseDeviceAuthentication   
		Use device code authentication instead of an interactive browser prompt.
		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 
			 
		-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