Home
%3CLINGO-SUB%20id%3D%22lingo-sub-744389%22%20slang%3D%22en-US%22%3EHosting%20RServer%20and%20RStudio%20on%20Azure%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-744389%22%20slang%3D%22en-US%22%3E%3CDIV%20id%3D%22getting-started%22%20class%3D%22section%20level2%22%3E%0A%3CH2%20id%3D%22toc-hId-1791543315%22%20id%3D%22toc-hId-1791543315%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20125px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122680i09AC85E04DDC9529%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22RStudio-Logo-Blue-Gray-125.png%22%20title%3D%22RStudio-Logo-Blue-Gray-125.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId--760613646%22%20id%3D%22toc-hId--760613646%22%3E%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20id%3D%22toc-hId-982196689%22%20id%3D%22toc-hId-982196689%22%3EGetting%20started%3C%2FH2%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3ESo%20there%20are%20various%20ways%20of%20installing%20RServer%20and%20RStudio%20in%20this%20blog%20I%20want%20to%20share%20some%20of%20the%20ways%20in%20which%20your%20institution%20can%20deploy%20this%20solution.%3CBR%20%2F%3EOption%201.%20Using%20Microsoft%20Machine%20Learning%20Server%20(previous%20name%20Microsoft%20RServer)%3C%2FP%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3EOption%202.%20Using%20Azure%20VM%20to%20install%20Ubuntu%2C%20RServer%20and%20Rstudio%20step%20by%20step%20guide%3C%2FP%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3EOption%203.%20Using%20Azure%20VM%20MarketPlace%20Image%20for%20RStudio%20Server%20Pro%20for%20Azure%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1569960272%22%20id%3D%22toc-hId--1569960272%22%3E%3CBR%20%2F%3EOption%201.%20Using%20Microsoft%20R%20Server%3C%2FH2%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EIn%20September%202017%2C%20Microsoft%20R%20Server%20was%20released%20under%20the%20new%20name%20of%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EMicrosoft%20Machine%20Learning%20Server%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%20In%20version%209.2.1%2C%20Machine%20Learning%20Server%20added%20support%20for%20the%20full%20data%20science%20lifecycle%20of%20Python-based%20analytics%20to%20its%20list%20of%20machine%20learning%20and%20AI%20capabilities%20enhancements.%20The%20R%20capabilities%20were%20also%20enhanced.%20In%20the%20latest%209.3%20version%2C%20Machine%20Learning%20Server%20improves%20operationalization%20and%20deployment%20of%20web%20services%20containing%20R%20or%20Python%20code.%3CBR%20%2F%3E%3C%2FSPAN%3ERead%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Fwhats-new-in-machine-learning-server%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EWhat's%20new%20in%20this%20release%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20learn%20more.%3C%2FP%3E%0A%3CH2%20id%3D%22building-on-our-commitment-to-r%22%20id%3D%22toc-hId-172850063%22%20id%3D%22toc-hId-172850063%22%3EBuilding%20on%20our%20commitment%20to%20R%3C%2FH2%3E%0A%3CP%3EMicrosoft%20continues%20its%20commitment%20and%20development%20in%20R%20--%20not%20only%20in%20the%20latest%20Machine%20Learning%20Server%20release%2C%20but%20also%20in%20the%20newest%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Fr-client%2Fwhat-is-microsoft-r-client%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EMicrosoft%20R%20Client%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fmran.microsoft.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3EMicrosoft%20R%20Open%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ereleases.%3C%2FP%3E%0A%3CH2%20id%3D%22upgrade-to-machine-learning-server%22%20id%3D%22toc-hId-1915660398%22%20id%3D%22toc-hId-1915660398%22%3E%3CBR%20%2F%3EUpgrade%20to%20Machine%20Learning%20Server%3C%2FH2%3E%0A%3CP%3EAll%20academic%20institutions%20get%20R%20Server%20for%20%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Feducation%2Finstitutions%2Fdev-tools-for-teaching-faq%2F%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EFREE%20under%20Microsoft%20Azure%20Dev%20Tools%20for%20teaching%3C%2FA%3E.%20Moving%20from%20R%20Server%20to%20Machine%20Learning%20Server%20is%20as%20easy%20as%20ever.%20The%20R%20analytics%20and%20web%20services%20you%20developed%20under%20R%20Server%20will%20continue%20to%20work%20under%20Machine%20Learning%20Server.%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CP%3EFollow%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Finstall%2Fmachine-learning-server-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3Ethese%20instructions%20to%20install%20Machine%20Learning%20Server%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eon%20Windows%2C%20Linux%2C%20and%20Hadoop.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CP%3EDon't%20forget%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Foperationalize%2Fconfigure-start-for-administrators%23configure-server-for-operationalization%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3Eupgrade%20your%20web%20and%20compute%20nodes%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eif%20you%20are%20operationalizing%20your%20analytics.%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EWant%20the%20new%20Machine%20Learning%20Server%3F%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20class%3D%22x-hidden-focus%22%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Finstall%2Fmachine-learning-server-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3ELearn%20how%20to%20install%20Machine%20Learning%20Server%20here.%3C%2FA%3E%3C%2FSPAN%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CH2%20id%3D%22download-prior-r-server-releases%22%20id%3D%22toc-hId--636496563%22%20id%3D%22toc-hId--636496563%22%3EDownload%20prior%20R%20Server%20releases%3C%2FH2%3E%0A%3CP%3EThe%20following%20table%20provides%20links%20for%20downloading%20older%20versions%20of%20Microsoft%20R%20Server.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Finstall%2Fr-server-install%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EFind%20the%20instructions%20for%20installing%20R%20Server%20here%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22download-prior-r-server-releases%22%20id%3D%22toc-hId-1106313772%22%20id%3D%22toc-hId-1106313772%22%3EOption%202.%20Installing%20Ubuntu%2C%20RStudio%20and%20RServer%20in%20the%20Cloud%20on%20VM%20releases%3C%2FH2%3E%0A%3CP%3EStudent%20can%20sign%20up%20for%20a%20%3CA%20href%3D%22http%3A%2F%2Faka.ms%2Fazure4student%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EFREE%20%24100%20Azure%20Account%20here%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EOn%20the%20Azure%20Portal%20%3CA%20href%3D%22http%3A%2F%2Fportal.azure.com%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fportal.azure.com%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EClicking%20on%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ECreate%20Resources%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewill%20take%20you%20to%20the%20marketplace%3C%2FP%3E%0A%3CP%3ESelecting%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EUbuntu%20Server%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewill%20launch%20a%20dialogue%20box%20with%20four%20steps%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3EStep%201%3A%20Basics%3A%20configuration%20settings%0A%3CUL%3E%0A%3CLI%3E%3CSTRONG%3EName%3C%2FSTRONG%3E%3A%20A%20name%20for%20the%20virtual%20machine%2C%20e.g.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Erstudio%3C%2FCODE%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EUser%20name%3C%2FSTRONG%3E%3A%20The%20master%20user%20who%20will%20have%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Esudo%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eaccess%2C%20e.g.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EuserX%3C%2FCODE%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EAuthentication%20type%3C%2FSTRONG%3E%3A%20Either%20choose%20ssh%20or%20enter%20a%20password%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3EResource%20group%3C%2FSTRONG%3E%3A%20Since%20this%20your%20first%20instance%2C%20create%20a%20new%20one%2C%20say%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Erstudio-group%3C%2FCODE%3E%3C%2FLI%3E%0A%3CLI%3E%3CSTRONG%3ELocation%3C%2FSTRONG%3E%3A%20where%20will%20your%20machine%20be%20located%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EStep%202%3A%20Virtual%20machine%20size%0A%3CUL%3E%0A%3CLI%3ESelect%20the%20machine%20you%20want.%20Choose%20the%20smallest%20for%20the%20purposes%20of%20this%20exercise%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EStep%203%3A%20Settings%0A%3CUL%3E%0A%3CLI%3ENothing%20to%20change%20here%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3CLI%3EStep%204%3A%20Summary%0A%3CUL%3E%0A%3CLI%3EClick%20create%20and%20we%E2%80%99re%20good%20to%20go!%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EAfter%20around%20a%20minute%20or%20so%2C%20your%20virtual%20machine%20will%20be%20ready.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22setting-up-r%22%20class%3D%22section%20level2%22%3E%0A%3CH2%20id%3D%22toc-hId--1445843189%22%20id%3D%22toc-hId--1445843189%22%3E%3CBR%20%2F%3ESetting%20up%20R%3C%2FH2%3E%0A%3CP%3EThe%20next%20step%20is%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Essh%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Einto%20your%20instance.%20On%20the%20dashboard%20screen%2C%20click%20on%20the%20new%20box%20that%20shows%20your%20virtual%20machine.%20Select%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ENetworking%3C%2FCODE%3E.%20Near%20the%20top%20of%20the%20screen%20will%20be%20a%20Public%20IP%20address%2C%20of%20the%20form%3A%20XXX.XXX.XXX.XXX.%20In%20my%20instance%2C%20the%20IP%20address%20is%2052.233.194.195%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EMake%20a%20note%20of%20your%20address.%20Next%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Essh%3C%2FCODE%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Einto%20your%20instance%20via%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Essh%20userX%40XXX.XXX.XXX.XXX%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ETo%20ensure%20that%20ubuntu%20is%20up-to-date%20on%20our%20virtual%20machine%2C%20we%20invoke%20super%20sudo%20powers.%20First%20we%20update%20the%20list%20of%20ubuntu%20packages%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20apt-get%20update%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThen%20we%20upgrade%20as%20necessary%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20apt-get%20upgrade%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ENow%20we%20get%20on%20with%20the%20business%20of%20installing%20R.%20To%20use%20the%20latest%20version%20we%20need%20to%20add%20a%20new%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fcran.r-project.org%2Fbin%2Flinux%2Fubuntu%2FREADME.html%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erepository%3C%2FA%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20add-apt-repository%20ppa%3Amarutter%2Frrutter%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThen%20update%20again%20and%20install%20base%20R%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20apt%20update%0Asudo%20apt-get%20install%20r-base%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EDepending%20on%20what%20R%20packages%20you%20want%20to%20install%20it%E2%80%99s%20worth%20installing%20a%20couple%20of%20other%20things%20at%20this%20point%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20apt-get%20install%20libxml2%20libxml2-dev%20%23%20igraph%0Asudo%20apt-get%20install%20libcairo2-dev%20%23%20Graphics%20packages%0Asudo%20apt-get%20install%20libssl-dev%20libcurl4-openssl-dev%20%23httr%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EWith%20an%20eye%20to%20the%20future%20it%E2%80%99s%20also%20worth%20installing%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Eapache2%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eto%20help%20with%20redirects%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20apt-get%20install%20apache2%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22opening-ports-ready-for-rstudio%22%20class%3D%22section%20level2%22%3E%0A%3CH2%20id%3D%22toc-hId-296967146%22%20id%3D%22toc-hId-296967146%22%3E%3CBR%20%2F%3EOpening%20ports%20ready%20for%20RStudio%3C%2FH2%3E%0A%3CP%3EWhenever%20you%20access%20a%20web-page%2C%20the%20browser%20specifies%20a%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Eport%3C%2FEM%3E.%20For%20standard%20http%20pages%2C%20we%20use%20port%2080%2C%20for%20secure%20https%20pages%2C%20we%20use%20port%20443.%20For%20example%2C%20when%20we%20type%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CA%20class%3D%22vglnk%22%20href%3D%22https%3A%2F%2Fwww.jumpingrivers.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3C%2FSPAN%3E%3CSPAN%3E%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3Ewww%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3C%2FA%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3Ein%20the%20browser%2C%20this%20is%20converted%20to%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CA%20class%3D%22vglnk%22%20href%3D%22https%3A%2F%2Fwww.jumpingrivers.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttps%3C%2FSPAN%3E%3CSPAN%3E%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3Ewww%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E443%3C%2FSPAN%3E%3C%2FA%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EBy%20default%20our%20azure%20instance%20only%20has%20port%2022%20open%20(the%20port%20used%20for%20ssh%20communication).%20To%20access%20RStudio%2C%20we%E2%80%99ll%20need%20to%20open%20the%20following%20ports%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E80%20(for%20http)%3C%2FLI%3E%0A%3CLI%3E443%20(for%20https)%3B%20only%20required%20if%20we%20implement%20SSL%3C%2FLI%3E%0A%3CLI%3E8787%20%E2%80%93%20the%20default%20RStudio%20port.%20In%20the%20last%20section%2C%20we%E2%80%99ll%20remove%20this%2C%20but%20just%20now%20it%E2%80%99s%20handy%20to%20have%20it%20open%20for%20testing.%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CP%3EUnder%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3ENetworking%3C%2FCODE%3E%2C%20click%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EAdd%20inbound%20port%20rule%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20add%20the%20three%20ports%20(80%2C%20443%2C%208787)%3A%3C%2FP%3E%0A%3CP%3EIf%20everything%20is%20working%2C%20you%20should%20be%20able%20to%20enter%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EXXX.XXX.XXX.XXX%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ein%20your%20browser%20and%20you%E2%80%99ll%20see%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3EApache2%20Ubuntu%20Default%20Page%3C%2FCODE%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Ewith%20the%20title.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EIt%20works!%3C%2FSTRONG%3E%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22installing-rstudio%22%20class%3D%22section%20level2%22%3E%0A%3CH2%20id%3D%22toc-hId--1369913250%22%20id%3D%22toc-hId--1369913250%22%3E%3CBR%20%2F%3EInstalling%20RStudio%3C%2FH2%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.rstudio.com%2Fproducts%2Frstudio%2Fdownload-server%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3EInstalling%20RStudio%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eserver%20is%20now%20relatively%20easy%3A%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%23%20Check%20the%20above%20link%20for%20updates%20to%20the%20version%0A%24%20sudo%20apt-get%20install%20gdebi-core%3CBR%20%2F%3E%24%20wget%20https%3A%2F%2Fdownload2.rstudio.org%2Fserver%2Fbionic%2Famd64%2Frstudio-server-1.2.1335-amd64.deb%3CBR%20%2F%3E%24%20sudo%20gdebi%20rstudio-server-1.2.1335-amd64.deb%3CBR%20%2F%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIf%20everything%20works%20correctly%2C%20you%20should%20be%20able%20to%20view%20rstudio%20server%20via%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3EXXX.XXX.XXX.XXX%3A8787%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EIf%20the%20page%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CEM%3Ehangs%3C%2FEM%3E%2C%20double%20check%20you%20have%20opened%20port%208787%20under%20the%20network%20settings.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22nicer-urls%22%20class%3D%22section%20level2%22%3E%0A%3CH2%20id%3D%22toc-hId-372897085%22%20id%3D%22toc-hId-372897085%22%3E%3CBR%20%2F%3EAdding%20DNS%3C%2FH2%3E%0A%3CP%3EThe%20first%20step%20is%20to%20access%20the%20page%20via%20a%20standard%20URL%20and%20not%20an%20IP%20address.%20In%20the%20main%20dashboard%20screen%2C%20under%20all%20resources%2C%20click%20on%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Erstudio-ip%20Public%20IP%20address%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThen%20select%20configuration.%20In%20the%20text%20box%20under%20DNS%20Label%2C%20enter%20text%2C%20e.g.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Erstudio-myname%3C%2FCODE%3E.%20So%20in%20my%20case%2C%20I%20have%20used%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Erstudio-jumpingrivers%3C%2FCODE%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThis%20means%20we%20can%20now%20access%20RStudio%20via%3C%2FSPAN%3E%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Frstudio-jumpingrivers.westeurope.cloudapp.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ewesteurope%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecloudapp%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eazure%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3C%2FA%3E%3A8787%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EGetting%20users%20to%20type%20the%20port%20number%20isn%E2%80%99t%20ideal.%20What%20we%20would%20like%20is%20for%20users%20to%20type%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Frstudio-jumpingrivers.westeurope.cloudapp.azure.com%2Frstudio%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ewesteurope%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecloudapp%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eazure%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3C%2FA%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThis%20involves%20configuring%20Apache.%20First%20navigate%20to%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3E%2Fetc%2Fapache2%2Fsites-available%3C%2FCODE%3E%2C%20e.g.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Ecd%20%2Fetc%2Fapache2%2Fsites-available%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3ENext%20create%20a%20file%20called%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CCODE%3Erstudio.conf%3C%2FCODE%3E.%20Using%20your%20favourite%20text%20editor%2C%20e.g.%26nbsp%3Bvim%20or%20nano.%20Note%20that%20this%20file%20is%20very%20much%20space%20sensitive%2C%20so%20check%20it%20carefully.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%0A%20%20ServerAdmin%20info%40jumpingrivers.com%0A%20%20ServerName%20%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Frstudio-jumpingrivers.westeurope.cloudapp.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ewesteurope%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecloudapp%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eazure%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3C%2FA%3E%0A%20%20ServerAlias%20%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Fwww.rstudio-jumpingrivers.westeurope.cloudapp.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ewww%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ewesteurope%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecloudapp%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eazure%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3C%2FA%3E%0A%20%20%0A%20%20%20%20Allow%20from%20localhost%0A%20%20%0A%0A%20%20%23%20Specify%20path%20for%20Logs%0A%20%20ErrorLog%20%24%7BAPACHE_LOG_DIR%7D%2Ferror.log%0A%20%20CustomLog%20%24%7BAPACHE_LOG_DIR%7D%2Faccess.log%20combined%0A%20%20RewriteEngine%20on%0A%0A%20%20%23%20Following%20lines%20should%20open%20rstudio%20directly%20from%20the%20url%0A%20%20%23%20Map%20rstudio%20to%20rstudio%2F%0A%20%20RedirectMatch%20%5E%2Frstudio%24%20%2Frstudio%2F%0A%0A%20%20RewriteCond%20%25%7BHTTP%3AUpgrade%7D%20%3Dwebsocket%0A%20%20RewriteRule%20%2Frstudio%2F(.*)%20ws%3A%2F%2Flocalhost%3A8787%2F%241%20%5BP%2CL%5D%0A%20%20RewriteCond%20%25%7BHTTP%3AUpgrade%7D%20%20%20%20%20!%3Dwebsocket%0A%20%20RewriteRule%20%2Frstudio%2F(.*)%20%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Flocalhost%3A8787%2F%241%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttp%3C%2FSPAN%3E%3CSPAN%3E%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3Elocalhost%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E8787%3C%2FSPAN%3E%3CSPAN%3E%2F%24%3C%2FSPAN%3E%3CSPAN%3E1%3C%2FSPAN%3E%3C%2FA%3E%20%5BP%2CL%5D%0A%20%20ProxyPass%20%2Frstudio%2F%20%20%20%20%20%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Flocalhost%3A8787%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttp%3C%2FSPAN%3E%3CSPAN%3E%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3Elocalhost%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E8787%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3C%2FA%3E%0A%20%20ProxyPassReverse%20%2Frstudio%2F%20%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Flocalhost%3A8787%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Ehttp%3C%2FSPAN%3E%3CSPAN%3E%3A%2F%2F%3C%2FSPAN%3E%3CSPAN%3Elocalhost%3C%2FSPAN%3E%3CSPAN%3E%3A%3C%2FSPAN%3E%3CSPAN%3E8787%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3C%2FA%3E%0A%20%20ProxyRequests%20off%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThen%20enable%20the%20necessary%20Apache%20modules%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20a2enmod%20proxy%0Asudo%20a2enmod%20proxy_http%0Asudo%20a2enmod%20proxy_html%0Asudo%20a2enmod%20proxy_wstunnel%0Asudo%20a2enmod%20rewrite%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EFinally%2C%20restart%20Apache%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3Esudo%20a2ensite%20rstudio.conf%0Asudo%20service%20apache2%20restart%20%20%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EYou%20should%20now%20be%20able%20to%20access%20RStudio%20via%3C%2FP%3E%0A%3CPRE%3E%3CCODE%3E%3CA%20class%3D%22vglnk%22%20href%3D%22http%3A%2F%2Frstudio-jumpingrivers.westeurope.cloudapp.azure.com%2Frstudio%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3CSPAN%3E-%3C%2FSPAN%3E%3CSPAN%3Ejumpingrivers%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ewesteurope%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecloudapp%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Eazure%3C%2FSPAN%3E%3CSPAN%3E.%3C%2FSPAN%3E%3CSPAN%3Ecom%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3CSPAN%3Erstudio%3C%2FSPAN%3E%3CSPAN%3E%2F%3C%2FSPAN%3E%3C%2FA%3E%3C%2FCODE%3E%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22adding-ssl%22%20class%3D%22section%20level2%22%3E%0A%3CH2%20id%3D%22toc-hId-2115707420%22%20id%3D%22toc-hId-2115707420%22%3E%3CBR%20%2F%3EAdding%20SSL%3C%2FH2%3E%0A%3CP%3EIn%20theory%20it%20should%20be%20straightforward%20to%20add%20SSL%20support%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fletsencrypt.org%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELet%E2%80%99s%20Encrypt%3C%2FA%3E.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3BInstall%20Lets%20Encrypt%20for%20Apache%3C%2FP%3E%0A%3CP%3EAfter%20the%20system%20update%20%2F%20upgrade%20we%20want%20to%20install%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgit-scm.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Egit%3C%2FA%3E%2C%20just%20use%20the%20following%20command%3A%3C%2FP%3E%0A%3CDIV%20id%3D%22gist34710180%22%20class%3D%22gist%22%3E%0A%3CDIV%20class%3D%22gist-file%22%3E%0A%3CDIV%20class%3D%22gist-meta%22%3E%0A%3CPRE%3E%26nbsp%3Bsudo%20apt-get%20install%20git%20-y%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%3EWhen%20Git%20is%20installed%20we%20can%20clone%20the%20Lets%20Encrypt%20repo.%20The%20first%20parameter%20is%20the%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fletsencrypt%2Fletsencrypt%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3ELets%20Encrypt%20Github%3C%2FA%3E%3CSPAN%3E%26nbsp%3Brepository%2C%20the%20second%20parameter%20the%20folder%20you%20want%20to%20clone%20it%20on%20your%20machine.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22gist34710180%22%20class%3D%22gist%22%3E%0A%3CDIV%20class%3D%22gist-file%22%3E%0A%3CDIV%20class%3D%22gist-meta%22%3E%0A%3CPRE%3Esudo%20git%20clone%20https%3A%2F%2Fgithub.com%2Fletsencrypt%2Fletsencrypt%20%2Fyour%2Fpath%2Fyour-letsencrypt-folder%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%3EIf%20you%20successfully%20cloned%20the%20repos%20cd%20into%20the%20Lets%20Encrypt%20folder%20and%20enter%20the%20following%20command%3A%3C%2FSPAN%3E%3C%2FP%3E%0A%3CDIV%20id%3D%22gist34710275%22%20class%3D%22gist%22%3E%0A%3CDIV%20class%3D%22gist-file%22%3E%0A%3CDIV%20class%3D%22gist-data%22%3E%0A%3CDIV%20class%3D%22js-gist-file-update-container%20js-task-list-container%20file-box%22%3E%0A%3CDIV%20id%3D%22file-install-letsencrypt%22%20class%3D%22file%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20id%3D%22gist34710180%22%20class%3D%22gist%22%3E%0A%3CDIV%20class%3D%22gist-file%22%3E%0A%3CDIV%20class%3D%22gist-meta%22%3E%0A%3CPRE%3Eletsencrypt-auto%20--apache%20-d%20your-own-domain.at%20-d%20www.your-own-domain.at%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CP%3E%3CSPAN%3EFor%20Apache%2C%20the%20installation%20is%20very%20simple%2C%20the%20first%20parameter%20will%20setup%20your%20new%20SSL%20certificate%20for%20your%20Apache%20installation%2C%20the%20second%20parameter%20will%20take%20your%20domain%2C%20if%20needed%20set%20it%20up%20with%20and%20without%20www%20upfront.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--436449541%22%20id%3D%22toc-hId--436449541%22%3E%3CBR%20%2F%3ESetup%20your%20Azure%20VM%20Port%20443%20SSL%3C%2FH2%3E%0A%3CP%3EWhile%20the%20dependencies%20get%20installed%2C%20we%20can%20setup%20the%20SSL%20security%20group%20in%20Azure.%20In%20the%20endpoint%20settings%20or%20in%20your%20network%20interface%20security%20group%20(depending%20of%20your%20VM)%2C%20you%20have%20to%20setup%20a%20new%20security%20group%20for%20port%20443.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20282px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122674iD5F9ED0654148DEB%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22setup-ssl-azure-settings.png%22%20title%3D%22setup-ssl-azure-settings.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EGive%20your%20rule%20a%20name%2C%20set%20it%20to%20TCP%20and%20allow%20all%20connections%20to%26nbsp%3Bthe%20443%20destination%20port%20and%20hit%20save.%20That%E2%80%99s%20all.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-1306360794%22%20id%3D%22toc-hId-1306360794%22%3E%3CBR%20%2F%3ELets%20Encrypt%20setup%3C%2FH2%3E%0A%3CP%3EBack%20on%20the%26nbsp%3BUbuntu%20VM%2C%20we%20have%20to%20finish%20the%20Lets%20Encrypt%20setup.%3C%2FP%3E%0A%3CP%3EFirst%20we%20have%20to%20provide%20an%20email%20address%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20695px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122675i1AFA0CFD7DD8DBC3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22setup-ssl-lets-encrypt-email.png%22%20title%3D%22setup-ssl-lets-encrypt-email.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ENext%20we%20have%20to%20agree%20to%20the%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fletsencrypt.org%2Fdocuments%2FLE-SA-v1.0.1-July-27-2015.pdf%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3EToS%3C%2FA%3E%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20662px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122676i1BDCD5FD4FA0AAFC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22setup-ssl-lets-encrypt-tos.png%22%20title%3D%22setup-ssl-lets-encrypt-tos.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22NormalTextRun%20SCX229276175%22%3EIn%20the%20next%20step%20we%20have%20choose%20if%20our%20website%20is%20served%20in%20HTTP%20and%20HTTPS%20or%20in%20HTTPS%20only.%20Make%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCX229276175%22%3Eyour%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCX229276175%22%3Echoice%3C%2FSPAN%3E%3CSPAN%20class%3D%22NormalTextRun%20SCX229276175%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%20hit%20OK.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20653px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122677i1E2FE80623E1EF88%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22setup-ssl-lets-encrypt-http-https.png%22%20title%3D%22setup-ssl-lets-encrypt-http-https.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIf%20everything%20worked%20out%20you%20will%20see%20the%20following%20screen%3A%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20678px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F122678i0737204017BA0BBC%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22setup-ssl-lets-encrypt-success.png%22%20title%3D%22setup-ssl-lets-encrypt-success.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20test%20your%20new%20certificate%20just%20hit%20this%3CA%20href%3D%22https%3A%2F%2Fwww.ssllabs.com%2Fssltest%2Findex.html%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3EURL%3C%2FA%3E%2C%20make%20sure%20to%20add%20your%20domain%20with%20yours.%3C%2FP%3E%0A%3CP%3EYour%20browser%20should%20now%20show%20that%20your%20site%20provide%20a%20private%20connection.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1245796167%22%20id%3D%22toc-hId--1245796167%22%3E%3CBR%20%2F%3ERenewing%20your%20certificate%3C%2FH2%3E%0A%3CP%3EYour%20certificate%20is%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fletsencrypt.readthedocs.org%2Fen%2Flatest%2Fusing.html%23renewal%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eonly%20valid%20for%2090%20days%3C%2FA%3E%2C%20so%20you%20have%20to%20make%20sure%20to%20renewal%20it%20at%20least%20once%20in%20this%20period%2C%20to%20do%20so%20you%20just%20have%20to%20enter%20the%20following%20command%3A%3C%2FP%3E%0A%3CDIV%20id%3D%22gist34711282%22%20class%3D%22gist%22%3E%0A%3CDIV%20class%3D%22gist-file%22%3E%0A%3CDIV%20class%3D%22gist-data%22%3E%0A%3CDIV%20class%3D%22js-gist-file-update-container%20js-task-list-container%20file-box%22%3E%0A%3CDIV%20id%3D%22file-renew-letsencrypt%22%20class%3D%22file%22%3E%0A%3CDIV%20class%3D%22Box-body%20p-0%20blob-wrapper%20data%20type-text%20%22%3E%0A%3CDIV%20id%3D%22gist34710180%22%20class%3D%22gist%22%3E%0A%3CDIV%20class%3D%22gist-file%22%3E%0A%3CDIV%20class%3D%22gist-meta%22%3E%0A%3CPRE%3E%20letsencrypt-auto%20renew%3C%2FPRE%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CH2%20id%3D%22get-support-for-r-server%22%20class%3D%22x-hidden-focus%22%20id%3D%22toc-hId-497014168%22%20id%3D%22toc-hId-497014168%22%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%3CBR%20%2F%3EOption%203.%20Using%20an%20Azure%20Marketplace%20RStudio%20Server%20Pro%20for%20Azure%26nbsp%3B%26nbsp%3B%3C%2FSPAN%3E%3C%2FH2%3E%0A%3CP%3ERStudio%20Server%20Pro%20lets%20you%20access%20RStudio%20from%20anywhere%20using%20a%20web%20browser%20and%20delivers%20the%20team%20productivity%2C%20security%2C%20centralized%20resource%20management%2C%20metrics%2C%20and%20commercial%20support%20professional%20data%20science%20teams%20need%20to%20develop%20in%20R.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ERstudio%20Server%20Pro%20for%20Azure%20is%20available%20at%26nbsp%3B%3C%2FSPAN%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fazuremarketplace.microsoft.com%2Fen-us%2Fmarketplace%2Fapps%2Frstudio-5237862.rstudioserverpro%3Ftab%3DOverview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazuremarketplace.microsoft.com%2Fen-us%2Fmarketplace%2Fapps%2Frstudio-5237862.rstudioserverpro%3Ftab%3DOverview%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ERStudio%20Server%20Pro%20Azure%20is%20an%20on-demand%2C%20commercially-licensed%20integrated%20development%20environment%20(IDE).%20It%20offers%20all%20of%20the%20capabilities%20found%20in%20the%20popular%20RStudio%20open%20source%20IDE%20plus%20turnkey%20convenience%2C%20enhanced%20security%2C%20the%20ability%20to%20manage%20multiple%20R%20versions%20and%20sessions%2C%20and%20more.%20See%20%3C%2FSPAN%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fwww.rstudio.com%2Fproducts%2Frstudio%2F%2520%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.rstudio.com%2Fproducts%2Frstudio%2F%3C%2FA%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Efor%20additional%20capabilities.%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--2055142793%22%20id%3D%22toc-hId--2055142793%22%3E%3CBR%20%2F%3EUsage%3A%3C%2FH2%3E%0A%3CP%3EConnect%20to%20http%3A%2F%2Finstance-public-ip-address%3A8787%20and%20log%20in%20with%20the%20username%20rstudio-user.%20The%20password%20will%20be%20your%20subscriptionId%20for%20that%20instance.%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--312332458%22%20id%3D%22toc-hId--312332458%22%3E%3CBR%20%2F%3ERStudio%20Server%20Pro%20for%20Azure%3C%2FH2%3E%0A%3CP%3EInformation%20on%20support%20can%20be%20found%20here%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Frstudio.com%2Fabout%2Fsupport-agreement%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frstudio.com%2Fabout%2Fsupport-agreement%2F%3C%2FA%3E.%20We%20do%20not%20provide%20support%20for%20Linux%2C%20Azure%20or%20R.%20For%20Linux%3A%20help.ubuntu.com.%20For%20Azure%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fsupport%2Ffaq%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fsupport%2Ffaq%2F%3C%2FA%3E.%20For%20R%20and%20R%20packages%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Frstd.io%2Fhelp-with-r%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Erstd.io%2Fhelp-with-r%3C%2FA%3E.%20For%20RStudio%20Server%20Pro%2C%20first%20consult%3A%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22http%3A%2F%2Fdocs.rstudio.com%2Fide%2Fserver-pro%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fdocs.rstudio.com%2Fide%2Fserver-pro%2F%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Frstd.io%2Fide-support-docs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frstd.io%2Fide-support-docs%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eand%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Frstd.io%2Fide-support-topic%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Frstd.io%2Fide-support-topic%3C%2FA%3E.%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3CDIV%20class%3D%22gist-meta%22%3E%0A%3CH2%20id%3D%22get-support-for-r-server%22%20class%3D%22x-hidden-focus%22%20id%3D%22toc-hId-1430477877%22%20id%3D%22toc-hId-1430477877%22%3E%3CBR%20%2F%3EReferences%26nbsp%3B%3C%2FH2%3E%0A%3CH2%20class%3D%22x-hidden-focus%22%20id%3D%22toc-hId-1117599583%22%20id%3D%22toc-hId-1117599583%22%3EGetting%20support%20for%20R%20Server%3C%2FH2%3E%0A%3CP%3EMicrosoft%20is%20committed%20to%20providing%20customers%20with%20support.%20Microsoft%20R%20Server%20support%20continues%20in%20these%20ways%3A%3C%2FP%3E%0A%3CUL%3E%0A%3CLI%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Fresources-servicing-support%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EReview%20our%20servicing%20support%20timeline%3C%2FA%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3E%3CA%20href%3D%22https%3A%2F%2Fsocial.technet.microsoft.com%2FForums%2Fen-US%2Fhome%3Fforum%3DMicrosoftR%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22external%22%3EPost%20in%20our%20user%20forum%3C%2FA%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FUL%3E%0A%3CH2%20id%3D%22the-future-of-microsoft-r-client%22%20id%3D%22toc-hId--1434557378%22%20id%3D%22toc-hId--1434557378%22%3E%3CBR%20%2F%3EThe%20future%20of%20Microsoft%20R%20Client%3C%2FH2%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Fr-client%2Fwhat-is-microsoft-r-client%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3EMicrosoft%20R%20Client%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Econtinues%20on%20as%20an%20R-only%20client%20for%20Machine%20Learning%20Server%20and%20R%20Server.%3C%2FP%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3EA%20Python%20interpreter%20can%20also%20be%20installed%20locally%20along%20with%20the%20custom%20Python%20packages%20to%20gain%20similar%20functionality%20on%20a%20Windows%20machine.%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fmachine-learning-server%2Finstall%2Fpython-libraries-interpreter%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noopener%20noreferrer%20noopener%20noreferrer%22%20data-linktype%3D%22relative-path%22%3ELearn%20more%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%0A%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-744389%22%20slang%3D%22en-US%22%3E%3CP%20class%3D%22x-hidden-focus%22%3ESo%20there%20are%20various%20ways%20of%20installing%20RServer%20and%20RStudio%20in%20this%20blog%20I%20want%20to%20share%20some%20of%20the%20ways%20in%20which%20your%20institution%20can%20deploy%20this%20solution.%3C%2FP%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3E%3CBR%20%2F%3EOption%201.%20Using%20Microsoft%20Machine%20Learning%20Server%20(previous%20name%20Microsoft%20RServer)%3C%2FP%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3EOption%202.%20Using%20Azure%20VM%20to%20install%20Ubuntu%2C%20RServer%20and%20Rstudio%20step%20by%20step%20guide%3C%2FP%3E%0A%3CP%20class%3D%22x-hidden-focus%22%3EOption%203.%20Using%20Azure%20VM%20MarketPlace%20Image%20for%20RStudio%20Server%20Pro%20for%20Azure%3C%2FP%3E%3C%2FLINGO-TEASER%3E
Microsoft

RStudio-Logo-Blue-Gray-125.png

 

Getting started

So there are various ways of installing RServer and RStudio in this blog I want to share some of the ways in which your institution can deploy this solution.
Option 1. Using Microsoft Machine Learning Server (previous name Microsoft RServer)

Option 2. Using Azure VM to install Ubuntu, RServer and Rstudio step by step guide

Option 3. Using Azure VM MarketPlace Image for RStudio Server Pro for Azure


Option 1. Using Microsoft R Server

In September 2017, Microsoft R Server was released under the new name of Microsoft Machine Learning Server. In version 9.2.1, Machine Learning Server added support for the full data science lifecycle of Python-based analytics to its list of machine learning and AI capabilities enhancements. The R capabilities were also enhanced. In the latest 9.3 version, Machine Learning Server improves operationalization and deployment of web services containing R or Python code.
Read the What's new in this release to learn more.

Building on our commitment to R

Microsoft continues its commitment and development in R -- not only in the latest Machine Learning Server release, but also in the newest Microsoft R Client and Microsoft R Open releases.


Upgrade to Machine Learning Server

All academic institutions get R Server for FREE under Microsoft Azure Dev Tools for teaching. Moving from R Server to Machine Learning Server is as easy as ever. The R analytics and web services you developed under R Server will continue to work under Machine Learning Server.

  1. Follow these instructions to install Machine Learning Server on Windows, Linux, and Hadoop.

  2. Don't forget to upgrade your web and compute nodes if you are operationalizing your analytics. 

  3. Want the new Machine Learning Server? Learn how to install Machine Learning Server here.

Download prior R Server releases

The following table provides links for downloading older versions of Microsoft R Server. Find the instructions for installing R Server here.

 

Option 2. Installing Ubuntu, RStudio and RServer in the Cloud on VM releases

Student can sign up for a FREE $100 Azure Account here

On the Azure Portal http://portal.azure.com 

Clicking on Create Resources will take you to the marketplace

Selecting Ubuntu Server will launch a dialogue box with four steps:

  • Step 1: Basics: configuration settings
    • Name: A name for the virtual machine, e.g. rstudio
    • User name: The master user who will have sudo access, e.g. userX
    • Authentication type: Either choose ssh or enter a password
    • Resource group: Since this your first instance, create a new one, say rstudio-group
    • Location: where will your machine be located
  • Step 2: Virtual machine size
    • Select the machine you want. Choose the smallest for the purposes of this exercise
  • Step 3: Settings
    • Nothing to change here
  • Step 4: Summary
    • Click create and we’re good to go!

After around a minute or so, your virtual machine will be ready.


Setting up R

The next step is to ssh into your instance. On the dashboard screen, click on the new box that shows your virtual machine. Select Networking. Near the top of the screen will be a Public IP address, of the form: XXX.XXX.XXX.XXX. In my instance, the IP address is 52.233.194.195

Make a note of your address. Next ssh into your instance via

ssh userX@XXX.XXX.XXX.XXX

To ensure that ubuntu is up-to-date on our virtual machine, we invoke super sudo powers. First we update the list of ubuntu packages

sudo apt-get update

Then we upgrade as necessary

sudo apt-get upgrade

Now we get on with the business of installing R. To use the latest version we need to add a new repository

sudo add-apt-repository ppa:marutter/rrutter

Then update again and install base R

sudo apt update
sudo apt-get install r-base

Depending on what R packages you want to install it’s worth installing a couple of other things at this point

sudo apt-get install libxml2 libxml2-dev # igraph
sudo apt-get install libcairo2-dev # Graphics packages
sudo apt-get install libssl-dev libcurl4-openssl-dev #httr

With an eye to the future it’s also worth installing apache2 to help with redirects

sudo apt-get install apache2


Opening ports ready for RStudio

Whenever you access a web-page, the browser specifies a port. For standard http pages, we use port 80, for secure https pages, we use port 443. For example, when we type

https://www.jumpingrivers.com

in the browser, this is converted to

https://www.jumpingrivers.com:443

By default our azure instance only has port 22 open (the port used for ssh communication). To access RStudio, we’ll need to open the following ports

  • 80 (for http)
  • 443 (for https); only required if we implement SSL
  • 8787 – the default RStudio port. In the last section, we’ll remove this, but just now it’s handy to have it open for testing.

Under Networking, click Add inbound port rule and add the three ports (80, 443, 8787):

If everything is working, you should be able to enter XXX.XXX.XXX.XXX in your browser and you’ll see the Apache2 Ubuntu Default Page with the title. It works!


Installing RStudio

Installing RStudio server is now relatively easy:

# Check the above link for updates to the version
$ sudo apt-get install gdebi-core
$ wget https://download2.rstudio.org/server/bionic/amd64/rstudio-server-1.2.1335-amd64.deb
$ sudo gdebi rstudio-server-1.2.1335-amd64.deb

If everything works correctly, you should be able to view rstudio server via

XXX.XXX.XXX.XXX:8787

If the page hangs, double check you have opened port 8787 under the network settings.


Adding DNS

The first step is to access the page via a standard URL and not an IP address. In the main dashboard screen, under all resources, click on

rstudio-ip Public IP address

Then select configuration. In the text box under DNS Label, enter text, e.g. rstudio-myname. So in my case, I have used rstudio-jumpingrivers

This means we can now access RStudio via

rstudio-jumpingrivers.westeurope.cloudapp.azure.com:8787

Getting users to type the port number isn’t ideal. What we would like is for users to type

rstudio-jumpingrivers.westeurope.cloudapp.azure.com/rstudio

This involves configuring Apache. First navigate to /etc/apache2/sites-available, e.g.

cd /etc/apache2/sites-available

Next create a file called rstudio.conf. Using your favourite text editor, e.g. vim or nano. Note that this file is very much space sensitive, so check it carefully.


  ServerAdmin info@jumpingrivers.com
  ServerName rstudio-jumpingrivers.westeurope.cloudapp.azure.com
  ServerAlias www.rstudio-jumpingrivers.westeurope.cloudapp.azure.com
  
    Allow from localhost
  

  # Specify path for Logs
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined
  RewriteEngine on

  # Following lines should open rstudio directly from the url
  # Map rstudio to rstudio/
  RedirectMatch ^/rstudio$ /rstudio/

  RewriteCond %{HTTP:Upgrade} =websocket
  RewriteRule /rstudio/(.*) ws://localhost:8787/$1 [P,L]
  RewriteCond %{HTTP:Upgrade}     !=websocket
  RewriteRule /rstudio/(.*) http://localhost:8787/$1 [P,L]
  ProxyPass /rstudio/     http://localhost:8787/
  ProxyPassReverse /rstudio/ http://localhost:8787/
  ProxyRequests off

Then enable the necessary Apache modules

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_html
sudo a2enmod proxy_wstunnel
sudo a2enmod rewrite

Finally, restart Apache

sudo a2ensite rstudio.conf
sudo service apache2 restart  

You should now be able to access RStudio via

rstudio-jumpingrivers.westeurope.cloudapp.azure.com/rstudio/


Adding SSL

In theory it should be straightforward to add SSL support using Let’s Encrypt

 Install Lets Encrypt for Apache

After the system update / upgrade we want to install git, just use the following command:

 sudo apt-get install git -y

When Git is installed we can clone the Lets Encrypt repo. The first parameter is the Lets Encrypt Github repository, the second parameter the folder you want to clone it on your machine.

sudo git clone https://github.com/letsencrypt/letsencrypt /your/path/your-letsencrypt-folder

If you successfully cloned the repos cd into the Lets Encrypt folder and enter the following command:

 
letsencrypt-auto --apache -d your-own-domain.at -d www.your-own-domain.at

For Apache, the installation is very simple, the first parameter will setup your new SSL certificate for your Apache installation, the second parameter will take your domain, if needed set it up with and without www upfront.


Setup your Azure VM Port 443 SSL

While the dependencies get installed, we can setup the SSL security group in Azure. In the endpoint settings or in your network interface security group (depending of your VM), you have to setup a new security group for port 443.

setup-ssl-azure-settings.png

Give your rule a name, set it to TCP and allow all connections to the 443 destination port and hit save. That’s all.


Lets Encrypt setup

Back on the Ubuntu VM, we have to finish the Lets Encrypt setup.

First we have to provide an email address:

setup-ssl-lets-encrypt-email.png

Next we have to agree to the ToS:

setup-ssl-lets-encrypt-tos.png

In the next step we have choose if our website is served in HTTP and HTTPS or in HTTPS only. Make your choice and hit OK.

setup-ssl-lets-encrypt-http-https.png

If everything worked out you will see the following screen:

setup-ssl-lets-encrypt-success.png

To test your new certificate just hit this URL, make sure to add your domain with yours.

Your browser should now show that your site provide a private connection.


Renewing your certificate

Your certificate is only valid for 90 days, so you have to make sure to renewal it at least once in this period, to do so you just have to enter the following command:

 letsencrypt-auto renew


Option 3. Using an Azure Marketplace RStudio Server Pro for Azure  

RStudio Server Pro lets you access RStudio from anywhere using a web browser and delivers the team productivity, security, centralized resource management, metrics, and commercial support professional data science teams need to develop in R.

Rstudio Server Pro for Azure is available at https://azuremarketplace.microsoft.com/en-us/marketplace/apps/rstudio-5237862.rstudioserverpro?tab=O...

RStudio Server Pro Azure is an on-demand, commercially-licensed integrated development environment (IDE). It offers all of the capabilities found in the popular RStudio open source IDE plus turnkey convenience, enhanced security, the ability to manage multiple R versions and sessions, and more. See https://www.rstudio.com/products/rstudio/ for additional capabilities.


Usage:

Connect to http://instance-public-ip-address:8787 and log in with the username rstudio-user. The password will be your subscriptionId for that instance.


RStudio Server Pro for Azure

Information on support can be found here: https://rstudio.com/about/support-agreement/. We do not provide support for Linux, Azure or R. For Linux: help.ubuntu.com. For Azure: https://azure.microsoft.com/en-us/support/faq/. For R and R packages: rstd.io/help-with-r. For RStudio Server Pro, first consult: http://docs.rstudio.com/ide/server-pro/ https://rstd.io/ide-support-docs and https://rstd.io/ide-support-topic.


References 

Getting support for R Server

Microsoft is committed to providing customers with support. Microsoft R Server support continues in these ways:


The future of Microsoft R Client

Microsoft R Client continues on as an R-only client for Machine Learning Server and R Server.

A Python interpreter can also be installed locally along with the custom Python packages to gain similar functionality on a Windows machine. Learn more.