Share via


Changing Service Bus Farm Settings

 

Applies To: Service Bus for Windows Server 1.1

Service Bus for Windows Server supports the option to modify farm settings after you configure it. Note that this scenario results in downtime and requires issuing multiple PowerShell cmdlet calls.

Change Administrator Group

To align a preconfigured Service Bus for Windows Server farm with changes your IT team has made, you might have to change the Administrators group (either a domain user or group). Issue the following PowerShell commands:

Stop-SBFarm
Set-SBFarm –AdminGroup ‘AdminGroup’
[RunOnAllNodes] Update-SBHost
Start-SBFarm

Change RPApiCredentials

To change the Resource Provider API credentials, issue the following PowerShell commands:

Stop-SBFarm
$RPAdminPassword = ConvertTo-SecureString -AsPlainText -Force '<password>'
$SBRPAdminCredentials = New-Object System.Management.Automation.PSCredential 'SBRPAdminUser',$RPAdminPassword
$RPTenantPassword = ConvertTo-SecureString -AsPlainText -Force '<password>'
$SBRPTenantCredentials = New-Object System.Management.Automation.PSCredential 'SBRPTenantUser',$ RPTenantPassword
Set-SBFarm -AdminApiCredentials $SBRPAdminCredentials -TenantApiCredentials $SBRPTenantCredentials
[RunOnAllNodes] Update-SBHost
Start-SBFarm

Change the RunAsAccount

To change the RunAs account, issue the following PowerShell commands:

Stop-SBFarm
Set-SBFarm -RunAsAccount Domain\Username
$RunAsPassword = ConvertTo-SecureString -AsPlainText -Force '<password>'
[RunOnAllNodes] Update-SBHost -RunAsPassword $RunAsPassword
Start-SBFarm

Change the FarmDns

To change the FarmDns value, issue the following PowerShell commands:

Stop-SBFarm
Set-SBFarm -FarmDns 'MachineName.corp.Contoso.com' 
# Mandatory – This does the real work on the Existing Nodes in the farm to update the SB Server Configuration on the Host.
[RunOnAllNodes] Update-SBHost 
Start-SBFarm