Last active
September 17, 2015 06:12
-
-
Save droyad/46f50cbde8dd9b9b276b to your computer and use it in GitHub Desktop.
Service Bus Installation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Local Development Installation | |
| 1. Fix a framework bug (from http://stackoverflow.com/a/30733654) before anything else | |
| a. (NHX52000) can be replaced by any machine with VS 2015 on it, like your machine. Only use the UNC as it's easier for the server instructions. | |
| b. Copy the DLL to the right to c:\temp | |
| c. From an elevated command prompt, run | |
| "\\nhx52000\c$\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\sn.exe" -Vr c:\temp\Microsoft.Cloud.Common.AzureStorage.dll | |
| d. "\\nhx52000\c$\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6 Tools\gacutil" /i c:\temp\Microsoft.Cloud.Common.AzureStorage.dll | |
| 2. Run the web platform installer (or on a server use the offline mode | |
| a. Select | |
| Windows Azure Pack: Service Bus 1.1 | |
| Windows Azure Pack: Security Update for Service Bus 1.1 | |
| b. Install | |
| c. Exit | |
| 3. Run "Service Bus Configuration" from the start menu | |
| a. Create a New Farm - default setting s | |
| b. Enter the SQL Server Instance (Local for local dev installs) Use the machine name | |
| c. Enter the service account (your credentials) | |
| d. Untick "Create a default namespace" | |
| e. Next (right arrow) | |
| f. Ok (tick) | |
| i. ProTip: If you are getting grief about ports being in use quit Skype entirely. | |
| 4. Open an elevated powershell prompt and run | |
| $username = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name; | |
| New-SBNamespace -Name FamsBus -ManageUser $username | |
| 5. Run | |
| Set-SBAuthorizationRule -NamespaceName "FamsBus" -Name "RootManageSharedAccessKey" -PrimaryKey "xadfN52mfTvng5HJak8Dnv9dfg9wizCXPqtpYi05Iwo=" -SecondaryKey gEBuoVsi93OKeuCOMFAAl5IZ90agZnP91AqMXF32rgM= | |
| Server Installation (Server with no net access and needing a SSL cert) | |
| Reference: | |
| http://www.22bugs.co/post/sb-farm-setup-dns-and-custom-certificate/ | |
| 1. Obtain a SSL Certificate for the URL you want to use (eg https://fams). | |
| 2. Install SSL Certificate into the server: | |
| a. Run MMC | |
| b. Add the Certificates snap in for "Computer Account" | |
| c. Right click the "Personal" node of "Certificates" | |
| d. Select All Tasks -> Import | |
| e. Select the *.p7b certificates file from the admins | |
| f. Select "Automatically select certificate store…" | |
| g. Finish the import | |
| h. Move (drag) the "LANDS Internal Root CA" certificate from "Intermediate Certif… -> Certificates" to "Trusted Root Certificate.. -> Certificates" | |
| i. Double click the machine certificate in the personal store and check the certification path leads back to LANDS Internal Root CA and there are not errors | |
| j. If unsure it installed correctly, Test by setting up a Website using the cert and access it remotely. | |
| 3. Download the packages on an internet accessible computer: | |
| C:\Program Files\Microsoft\Web Platform Installer\webpicmd /offline /products:ServiceBus_1_1_CU1 /path:c:\temp\SBInstall | |
| 4. Copy the output to the destination server | |
| 5. THIS MAY RESTART THE SERVER. Run the following from that folder | |
| bin\WebPiCmd.exe /Install /Products:ServiceBus_1_1_CU1 /XML:feeds\latest\webproductlist.xml | |
| 6. Run "Service Bus Configuration" from the start menu | |
| a. Create a New Farm - (Use the advanced settings for a non-local dev install, otherwise default setting is fine) | |
| b. Enter the SQL Server Instance (Local for local dev installs) Use the machine name | |
| c. Enter the service account (same as website) | |
| d. Uncheck "Auto-generate" under the "configure certificate" header | |
| e. For both certificates select the SSL Cert from above | |
| f. Untick "Create a default namespace" | |
| g. Next (right arrow) | |
| h. Ok (tick) | |
| i. ProTip: If you are getting grief about ports being in use quit Skype entirely. | |
| 7. Open an elevated powershell prompt and run (Replace the name in green with your server name) | |
| Stop-SBFarm | |
| Set-SBFarm -FarmDns <dnsname> | |
| Update-SBHost | |
| Start-SBFarm | |
| $username = [System.Security.Principal.WindowsIdentity]::GetCurrent().Name; | |
| New-SBNamespace -Name FamsBus -ManageUser $username | |
| To get the full connection string, run the following (Use the PrimaryKey as the config value in O |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment