<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jose Ruy Borges Pereira Filho on Medium]]></title>
        <description><![CDATA[Stories by Jose Ruy Borges Pereira Filho on Medium]]></description>
        <link>https://medium.com/@jose.ruy.borges?source=rss-190cd523765------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zwaG9HjSCyI7tMIBXziMlQ.jpeg</url>
            <title>Stories by Jose Ruy Borges Pereira Filho on Medium</title>
            <link>https://medium.com/@jose.ruy.borges?source=rss-190cd523765------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:06:54 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jose.ruy.borges/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[100% Managed Wiki deployment using Microsoft Azure App Service (Docker-based) and Azure Database…]]></title>
            <link>https://medium.com/@jose.ruy.borges/100-managed-wiki-deployment-using-microsoft-azure-app-service-docker-based-and-azure-database-72954a235c8b?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/72954a235c8b</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Tue, 13 Sep 2022 02:04:34 GMT</pubDate>
            <atom:updated>2022-09-13T02:04:34.453Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>100% Managed Wiki deployment using Microsoft Azure App Service (Docker-based) and Azure Database for PostgreSQL Servers.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vrumL-7aqmv2ZyHf.jpg" /></figure><p>In this project based on a real-world scenario, I worked as a Cloud Engineer to deploy a Wiki to the cloud, 100% web, with access for all team members. This enabled collaborative document creation, and all team members could see the latest version of the document and propose improvements, allowing the team to better organize and manage documents.</p><p>To this solution deployment, I used Azure Database for PostgreSQL Servers and Azure App Service.</p><p>All important, procedural and operational documents, such as Runbooks and Knowledge Bases (KBs), which must always be available and are constantly updated, were no longer stored locally (standalone), avoiding data inconsistencies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_2rWAuo23L6XKrtD.jpg" /></figure><p>Find below the detailed tasks performed during this project.</p><p><strong>Step #1 — Deploy a new PostgreSQL DB based on Azure Database Services</strong></p><p>1 — Search for PostgreSQL and choose the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*-RX33cBz-54NJN0E.png" /></figure><p>2 — Click on +Create or the blue button below, to create a new PostgreSQL DB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*QW9ZENP7yKITw8Fe.png" /></figure><p>3 — Purpose of this project is to create a single server, so choose it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*IWzGvtDgmS7_OeNs.png" /></figure><p>4 — If you see the message below, confirm by clicking on <strong>“NO”, </strong>as we want to create a single server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/0*ZRFsQQ864h5kOLJ7.png" /></figure><p>5 — Fill in with the required details and then click on Review + Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/730/1*TMgpEUPYRvsBL29-bTF0wA.png" /></figure><p>6 — Click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*smbxGopVyO9lXtJjocov4w.png" /></figure><p>It takes about 5 minutes to complete the DB creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4-X5n-HHJSbdVndDHbe1mQ.png" /></figure><p><strong>Step #2 — Configure PostgreSQL Firewall to allow connection from other Azure Services.</strong></p><p>1 — Open Connection Security, from the PostgreSQL Panel and then click on ye on “Allow access to Azure Services”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uUuq0UX9QjC11zzzWhd1QQ.png" /></figure><p>2 — Click on SAVE.</p><p><strong>Step #3 —Search for Azure App Services and create a new one.</strong></p><p>1 — Search for App Services and then click on it on the search results</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*ZWLs0EBX61_XUMucbuXbug.png" /></figure><p>2 — Click to create a new service</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*fiBp2_UwtglMXOrH98itjA.png" /></figure><p>3 — Select the following details</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*rO_qXlyFQa-0XEsegCXgxA.png" /></figure><p>4 — Click on Next: Docker to select the docker image we will use, select the following options and then click on Review + Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*DMleBqjdy-usdJzjJcTYfQ.png" /></figure><p><strong>Step #4— Configure DB on Azure App Services.</strong></p><p>1 — Click on the new App Services created and then go to “Configuration”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_1WFtVDwSKkRS1zHbLDpQ.png" /></figure><p>2 — Add all the following Variables by clicking on + New application setting:</p><p>DB_TYPE: postgres</p><p>DB_HOST: tcbjrbdb01.postgres.database.azure.com (found on PostGreSQL Overview Details).</p><p>DB_PORT: 5432</p><p>DB_NAME: postgres</p><p>DB_USER: sql@tcbjrbdb01</p><p>DB_PASS: Admin123456!</p><p>DB_SSL: true</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*aP3YXeUToepUYsVzyvb5NQ.png" /></figure><p>3 — Click on Save, to save all the changes.</p><p>4 — Restart the App Services by click on Overview and then restart, to read all the changes applied on the previous step:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*Ct8iceKzEn_91StL-xl9fA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1kD5R-eNboCl-Wg8qH1sw.png" /></figure><p>5 — By clicking on Deployment Center -&gt; Logs, we can check what is being done during the restart, meaning, downloading the image, creating and running the new docker instance and so on. Also, any errors can be captured on the logs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m2y1BnlJL6WXKZDVNgPpVQ.png" /></figure><p>App is deployed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cPZCe-YwmDkFTA5u0-JQ6g.png" /></figure><p><strong>Step #5 — Configuring the Wiki</strong></p><p>1 — Type your info below, and then click on Install.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*rGoTRc63Enu0TzuzwCwB5w.png" /></figure><p>2 — Wait for completion:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/518/1*AzlF4ncUN1H9xfxFY9bq_A.png" /></figure><p>3 — Type your credentials, and login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*0CqKBtgrNRC0gOtRg7maMA.png" /></figure><p>4 — By adding /a at the end of the URL we can navigate on Admin Dashboard:</p><p><a href="https://tcbjrbwiki.azurewebsites.net/a">https://tcbjrbwiki.azurewebsites.net/a</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lxFy6XW2NJnCtQBSyHS2Rg.png" /></figure><p>5 — Change the settings below, also I used the downloaded png logo from google for TCB.</p><p>Select it after uploading and click on Insert.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVFb4zLDqAj2wpULirW04g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HKjqEcLOHrb6AkeYb8DMoA.png" /></figure><p>6 — Click on Apply.</p><p>7 — Changes applied:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*pSXUIY0AxaIf1yRNEnQqhQ.png" /></figure><p>8 — Next is to create the Home Page (First Page).</p><p>Go to the first page <a href="https://tcbjrbwiki.azurewebsites.net/">https://tcbjrbwiki.azurewebsites.net/</a></p><p>Click on Create Home Page</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*xoLxNb40EDWwaBGj5B084w.png" /></figure><p>9 — Choose Visual Editor</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*dM44D-Se4mJmbyaR8J5MrA.png" /></figure><p>10 — Type Title and Description and then click on OK</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*soiqc8Shv8Z47aWztt3ZSQ.png" /></figure><p>11 — Type something to be shown on the first page and then click on Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r9kpEscMgTHUxTcmjSo4vA.png" /></figure><p>12 — Wait for rendering process:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*HzO5DqExeOwvh3C3PJToCQ.png" /></figure><p>13 — Add a new comment, and voila, done!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WbCCmPFq_-zv9juC5jZhIA.png" /></figure><p><strong>Step #6 — Azure AD Integration</strong></p><p>1 — Following the documentation found at: <a href="https://docs.requarks.io/auth/azure">https://docs.requarks.io/auth/azure</a></p><p>Go to Wiki’s admin page and authentication</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*JYk8uUaTYZ9Oeritmvi4XQ.png" /></figure><p>2 — Click on Add Strategy and then select Azure Active Directory.</p><p>3 — Keep this page open, go back to azure portal and:</p><p>Go to Azure Active Directory:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*Q_pdHKzjMgVO3Ak9SWLd2Q.png" /></figure><p>2 — Click on App Registrations</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/278/1*yGcF9HHQ1-UYb6_lsiZldQ.png" /></figure><p>3 — Type a name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*gwGzQzOi0sF5jg_Txvvk4Q.png" /></figure><p>and on Redirect URI, go back to Wiki.js auth page, and copy the displayed URI listed at the bottom of the page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m0f1t-v_EXx7svq8iYemuQ.png" /></figure><p>Click on Register</p><p>4 — Click on the new app registered:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/1*WClcmhcV6UHHmlYK73uPgw.png" /></figure><p>5 — Click on Endpoints</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*-5apC8IRtSFaAk_vufN2og.png" /></figure><p>Copy the OpenID one:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*RGscGmJ5De5M8MJxjyif-w.png" /></figure><p>Paste it to Wiki’s Admin as follow:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fpyiaEm2qQmo-rDi7JmdMQ.png" /></figure><p>6 — Copy the Application (Client ID)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*F0T1RPpfeSWfPjDJ0UcQCw.png" /></figure><p>And paste it as follow on Wiki’s admin page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jWRxJQZ9SQMdpD2vdqfsKQ.png" /></figure><p>7 — On Self Selected registration, I followed some default config, we could have also created a specific group, but I am keeping guests here, so all AD users will be added to this group once they are authenticated:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EexWtRbpX3WQrwwlK2TiqQ.png" /></figure><p>8 — Before applying the Wiki’s new config on the Wiki’s admin page, some additional steps are needed on Azure AD:</p><p>API Permissions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*P-3pTIVfAhPbqNlba7wcIA.png" /></figure><p>The following Microsoft Graph -&gt; User.Read should existe, and grant admin consent should be enable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-CjhIG92kIeaDDnLwMmXA.png" /></figure><p>Back to Authentication, the following should be added/confirmed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rfd6xrf01NoXKzbSvt9Qzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*geHKVeaspo7sT1rxp1Iadw.png" /></figure><p>SAVE!</p><p>Back to wiki and apply:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XOtuW9LuSA8lsy0OV_60Zw.png" /></figure><p><strong>Step #7 — Testing AD Authentication</strong></p><p>1 — Go to Azure Users</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8iZmAmBawDr0jHu9qHaDew.png" /></figure><p>We will use the user above for testing.</p><p>2 — Open the login URL:</p><p><a href="https://tcbjrbwiki.azurewebsites.net/login">https://tcbjrbwiki.azurewebsites.net/login</a></p><p>3 — Select Azure Active Directory</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*Xhm3QAvnys3ODGaIYjx-KQ.png" /></figure><p>4 — Redirection to Microsoft Login page will be shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/522/1*ksMdtPLfi716S28hF7qnqg.png" /></figure><p>Type Credentials and wait for login completion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWpwgunQipkRzQ9xNDWW1A.png" /></figure><p>Done!</p><p>AD Integration is completed!</p><p>Thank you!</p><p>José Ruy Borges</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72954a235c8b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serverless website deployment 100% automated in multiple environments (Test, QA and Production)…]]></title>
            <link>https://medium.com/@jose.ruy.borges/serverless-website-deployment-100-automated-in-multiple-environments-test-qa-and-production-fb2258f3319f?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb2258f3319f</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Tue, 06 Sep 2022 02:03:17 GMT</pubDate>
            <atom:updated>2022-09-06T02:03:17.948Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Serverless website deployment 100% automated in multiple environments (Test, QA and Production) using Azure DevOps Repos and Pipelines (CI/CD).</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DflHCYZ_XSQJwTnX.jpg" /></figure><p><strong>Project description:</strong></p><p>In another project based on a real-world scenario, I worked as a Cloud Engineer using DevOps, where I deployed a serverless website in a 100% automated way using Azure DevOps Repos and Azure DevOps Pipelines resources.</p><p>Azure DevOps Organization and a new project have been created. The Azure DevOps Repos stored the website files, and the CI/CD Pipelines automated the entire website deployment process in 3 different environments (Test, QA, and Production).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ljW7WdKehnkjIuZn.jpg" /></figure><h3><strong>Part 1 — Azure Devops and Git Cloning setup</strong></h3><p><strong>Step #1 — Create storage accounts in Azure for TEST, ACCEPTANCE and PRODUCTION:</strong></p><p>1 — Storage for Test Env.</p><p>In Azure console, go to storage accounts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/695/1*TlBlxTUF9vxDmPvFHiSlOA.png" /></figure><p>Click on Create:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*5kL3Gd4QkeQIHzAQvois4A.png" /></figure><p>Add a new resource name “Website01” and the name of the test account as below, then click on Review and Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*hvdBMEWj83DNcv9Tph8JPw.png" /></figure><p>2 and 3, follow the same step as per the number 1. Add a storage account for Acceptance and Production.</p><p>TCBJRBACC: for acceptance</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*9McdtL2IkUJlOGqxNJLazA.png" /></figure><p>TCBJRBPROD for production:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*4Yk0i720dFwFYYjuLI10bQ.png" /></figure><p>Created storage accounts:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIIFOpEd8AeGcXzpgKpI0w.png" /></figure><p><strong>Step #2 — Enable Static Website on the 3 storage accounts:</strong></p><p>1 — Enabling for TCBJRBTST Env.</p><p>Click on <strong>tcbjrbtst </strong>under the Storage Accounts List.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/954/1*AFxfq5_timb85sfCCLdJ0g.png" /></figure><p>Click on Static WebSite</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*uruwadicsdKJGlOtDLs73A.png" /></figure><p>Select Enable and then add index.html to “Index Document Name”. After that click on Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*btqMtmRV4NsDEvygdmeE2w.png" /></figure><p>Copy the following URL: Primary Endpoint, which will be the URL to access the TEST Environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/869/1*Dm9aiNEqfpgqt2qJdzrvEA.png" /></figure><p>2 and 3: Repeat same steps above for TCBJRBACC and TCBJRBPROD</p><p>TCBJRBACC:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*HZLBEpNGztFHNiC2rqippQ.png" /></figure><p>TCBJRBPROD:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*HYp761-V-K7PpoHXGWJO9Q.png" /></figure><p>The 3 URLs:</p><p>TCBJRBTST: <a href="https://tcbjrbtst.z15.web.core.windows.net/">https://tcbjrbtst.z15.web.core.windows.net/</a></p><p>TCBJRBACC: <a href="https://tcbjrbacc.z15.web.core.windows.net/">https://tcbjrbacc.z15.web.core.windows.net/</a></p><p>TCBJRBPROD: <a href="https://tcbjrbprd.z15.web.core.windows.net/">https://tcbjrbprd.z15.web.core.windows.net/</a></p><p><strong>Step #3 — Create a new DevOps Organization</strong></p><p>1 — Go to Azure DevOps Organization</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*HwLe9qSEPhLFlVX1Mw23mA.png" /></figure><p>2 — Click on Continue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*kSuDmcsSPrvmXJ3do5WyhQ.png" /></figure><p>3 — Type the name of the new organization and click on Continue</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/376/1*uJ6AS4vpi_kpxNFVcwnVPA.png" /></figure><p>Provisioning Completed, after that create a project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/683/1*_3sQSdhhrYUGNqXdtnuHNg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UhWJLMgKN3BhMpqbgcBlRw.png" /></figure><p><strong>Step #4 — Generate Git Credentials</strong></p><p>1 — Go to Repos</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/267/1*2BsyS0mVAuHkdNCHggMPGQ.png" /></figure><p>2 — Click on Generate Git Credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9mHaNhhmI0W80w96crIWCg.png" /></figure><p>Copy and save the user and pwd generated.</p><p><strong>Step #5 — Cloning the project repo</strong></p><p>1 — Create a folder where we can clone the project, then Go to Git Bash,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*7OPFHI33gPThdjXL8Rsi1w.png" /></figure><p>2 — git clone <a href="https://github.com/thecloudbootcamp/azuredevops.git">https://github.com/thecloudbootcamp/azuredevops.git</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/483/1*UHmGp1YyWuaJpKToYRfI9w.png" /></figure><p><strong>Step #6 — Upload the cloned repo to Azure Devops Website01 Repo:</strong></p><p>1 — type in git bash: cd azuredevops</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*OJWUOe7BmfIfRl8NGGXXvQ.png" /></figure><p>2 — Type the following commands:</p><ul><li>git remote remove origin</li><li>git remote add origin <a href="https://tcbjrbdevops@dev.azure.com/tcbjrbdevops/website01/_git/website01">https://tcbjrbdevops@dev.azure.com/tcbjrbdevops/website01/_git/website01</a><br>This url can be found here:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*Jxnz6J-zXh8cYLm2U_RRkg.png" /></figure><ul><li>git push -u origin — all</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/561/1*fW4P5XrKxWoipZ9y9Zmmgw.png" /></figure><ul><li>Type your login credentials do azure and complete the push.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*LdZ_YX0PrE3bNfCTShXmEQ.png" /></figure><ul><li>Refresh the website01 Repo:</li></ul><p>Cloned repo successfully shown:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VOh4j39O-5Gi9iDGV9WaRA.png" /></figure><h3><strong>Part 2 — Implementing CI/CD</strong></h3><p><strong>Step #1 — Create CI Pipeline</strong></p><p>1 — Go to Pipelines -&gt; Create New Pipeline, then click on Use the classic Editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*QtfgCGf_56bHgBwjhSIAMQ.png" /></figure><p>2 — Keep the config below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/1*PPJAYiUHFnT9pZdT8HwxIw.png" /></figure><p>3 — Next, click on Empty Job:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/655/1*y6Dj4VyWZuHUalAGx3a69Q.png" /></figure><p>4 — Create a zip file archive to prepare the website deployment by clicking on +</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*SZ2DvUxrMUdznBqKoiQn9w.png" /></figure><p>5 — Select Archive files and click on Add</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*9lTJfCyoKP7OfXBWkVQCSw.png" /></figure><p>6 — Click on it, change the Display Name accordingly and select the root folder to archive, in this case will be the files folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4pjAQ5x6oxwtQc9IQEQrA.png" /></figure><p>7 — Next is to add the Publish Build Artifacts, in order to publish the zipped content. To do that, click agai non the Plus (+) Icon</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/929/1*SZ2DvUxrMUdznBqKoiQn9w.png" /></figure><p>8 — Search for Publish Build and select it, and click on Add</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*2zVEsG5ecqigJRlahkG9Zw.png" /></figure><p>9 — Click on the new task and change display name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IKLnpzizGst4dAlMuX3FNA.png" /></figure><p>10 — Click on Triggers tab</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/368/1*i9vT0PqnpWVnngFqFNwCzQ.png" /></figure><p>11 — Check “Enable Continuous Integration” box.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zn2oMmzrfeNMVj3-qi4cXg.png" /></figure><p>12 — Click on SAVE</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*MseL1A5jTQ4msrPKHggLtg.png" /></figure><p>13 — Proceed with Save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*-JzJpTomqHeLrr5VpE_vCg.png" /></figure><p><strong>Step #2 — Create CD Pipeline</strong></p><p>1 — Click on Releases, on the left menu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*5Z_192sa_F3CIBhMuGlHSw.png" /></figure><p>2 — Click on New Pipeline</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/608/1*4-G_aM7Eii8B0rEH0VrV1A.png" /></figure><p>3 — Click on “Empty Job”, to create an empty template</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/644/1*6WJdg9prCQMaoV7xHGBdrA.png" /></figure><p>4 — Create the new “Test” Stage, for Test Environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/648/1*0i-MqEooNJI5OXZYZc4CHw.png" /></figure><p>5 — Click the link “1 job, 0 task”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/322/1*3EotukKA_17sXFo4T4FBKg.png" /></figure><p>6 — Next step is to add a task which will be responsible to Extract the files we zipped during the creation of CI Pipeline. To do that, click on the Plus (+) Button as per the screen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*wf7mNeX8cbXjEPUjp8pLLg.png" /></figure><p>7 — Search for Extract Files and click on Add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*0hXsDPRqFi0kmjvGe50DAA.png" /></figure><p>8 — Click on the task name and change the following 3 fields, according to the values shown on the screenshot below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1017/1*xgrASPUPhjwbTG19okEmPw.png" /></figure><p>9 — Repeat step 6, search and add Azure CLI:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*Xi2Vq7Yx1iFYjQtYoj5BDA.png" /></figure><p>10 — Change following fields, make sure that on the field “Azure Resource Manager Connection” is authorized (by clicking on Authorize and provide the account credentials)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aitCWAlWLOURDALr20KxbA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/995/1*waiZTIg_cnwSBpcoWbqrZA.png" /></figure><p>11 — Click on Save</p><p>12 — Back to the Pipeline tab, still on Releases Session. Click on Add Artifact</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/1*qZurE6z09yZ4SIMl7_pizA.png" /></figure><p>13 — Make sure the options below are selected and click on Add</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*LE4Z_isLiTE0U6kjyczX4w.png" /></figure><p>14 — We need to enable the continuous integration where we created the artifact, by clicking on the lightning button:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/242/1*U2GgNtcEb7LRy-_QlD51Lg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*MmQA9F05fY-hbz7wVtoqRg.png" /></figure><p>15 — Let’s now clone the Test Pipeline, in order to create the Acceptance Step, by clicking on Clone, as per the screen below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/673/1*rAwOfsrpQtu84SnQNDNcNQ.png" /></figure><p>Click on the name and change as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x0Mwsjs_vBUA-ad-XgtDzw.png" /></figure><p>16 — Click on the link below, and we are going to change the script to run with the right storage account for Acceptance step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*ZfxpA1Zhr03_3f5tT_2PTw.png" /></figure><p>17 — Click on the Upload Step, and then change the storage account name as per the screen, and then SAVE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Tt_qasPs-viC3sBVQ0P6w.png" /></figure><p>18 — Now let’s clone it again for production pipeline, back to pipelines, and clone the acceptance step:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*xwp4A0-NbqduSzmW_KfPIw.png" /></figure><p>19 — Change name to Production</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/980/1*a0shCN0imHc8bbsq9hkj8g.png" /></figure><p>20 — click on the link below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*UlQW3bnh-m-kGZNPwhqZ2Q.png" /></figure><p>21 — Click on the Upload Step, and then change the storage account name as per the screen, and then SAVE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CbLCExn2iQ35UxQyLy9GVw.png" /></figure><p>22 — Let’s add a step for production, where an approval is required when triggering the Production Pipeline:</p><p>Click on the lightning as per the screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/327/1*BN3zXcYKkvBioPgGfY4FvA.png" /></figure><p>23 — Enable “Pre-deployments approval”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*KqEuoJqjKd_GY2FtWkm2tg.png" /></figure><p>24 — Choose the Approver and click on SAVE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*yb97VIb-WFj3YRXMNc_Gtg.png" /></figure><h3>Part 3— Testing the Implementation</h3><p><strong>Step #1 — Initiating the Pipeline</strong></p><p>1 — Click on Pipeline on the left menu, and select the new created pipeline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*uFanef7r5Yvuuj4sLoYlXg.png" /></figure><p>2 — Run Pipeline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JRRkZ4jlJgDZ9dD5NULMzA.png" /></figure><p>3 — Run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/479/1*VaRL7Q-TC9tcW-GoXL6ugw.png" /></figure><p>4 — Status Screen</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EX2-TbtgRzqgTMbLyyOscw.png" /></figure><p>5 — Click on Releases and see that Test deployment is already completed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2MKyQXrycCv_vTUnxC8qgA.png" /></figure><p>6 — Acceptance Completed, now let’s approve for production, by clicking on Approval:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*8NNHTNBhYVOCZOWHXsfBog.png" /></figure><p>7 — Type a comment and click on approve:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/834/1*9hd10-iKLoH-uv0bRkochg.png" /></figure><p>8 — Approved:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/399/1*zAIDxFFO7fnV1QymClGYPQ.png" /></figure><p>9 — Production Deployment is running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*iLFKS0lVx-ipbpvo8jzcNQ.png" /></figure><p>10 — Deployment Completed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/992/1*wEPzmmjX2BBr_fRgbb8-kA.png" /></figure><p>11 — Accessing the 3 Environments URLs.</p><p>Test: <a href="https://tcbjrbtst.z15.web.core.windows.net/">https://tcbjrbtst.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BM4i1IAxfiRwDATEaquPIg.png" /></figure><p>Acceptance: <a href="https://tcbjrbacc.z15.web.core.windows.net/">https://tcbjrbacc.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6OD9LAFOqSaCeE_ymteYiQ.png" /></figure><p>Production: <a href="https://tcbjrbprd.z15.web.core.windows.net/">https://tcbjrbprd.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lVt4MEx6idpOPFxNU_Wm0Q.png" /></figure><p>12 — Let’s change the code and see whether the new change is properly applied:</p><p>Go to the local branch on the PC and Edit index.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/222/1*fy6NoFz2wKRyWpUmJkesrA.png" /></figure><p>13 — Change the code on line 33, save it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eauZBIfoh9qltfFKBcauNQ.png" /></figure><p>14 — Go to Git Bash and commit the new change</p><p>Go to files folder:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*UAz35ime6sl1YFFVDBpXHQ.png" /></figure><p>git add index.html</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/221/1*DsYBYmleNJZWQL0fjF8KwQ.png" /></figure><p>If required, authenticate with the azure account e-mail with the following command:</p><p>git config — global user.email “<a href="/service/mailto:bragatto_van@outlook.com">y</a>our-email@account.com”</p><p>Then commit:</p><p>git commit -m “index.html update”</p><p>And push the code:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*l8k7h08h2A_o_6LNi2pLdg.png" /></figure><p>15 — Once this is done, a new release is created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gct6K4cE543BRV4nYHCZsw.png" /></figure><p>16 — Let’s wait and approve the production deployment, it should complete like the following screen:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k6Ejuw5t0liTgiJs8asgNQ.png" /></figure><p>17 — Testing the Access to each environment:</p><p>Test: <a href="https://tcbjrbtst.z15.web.core.windows.net/">https://tcbjrbtst.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SJNUutuuExbqorSW4yJJtQ.png" /></figure><p>Acceptance: <a href="https://tcbjrbacc.z15.web.core.windows.net/">https://tcbjrbacc.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WSFkxQ1Pb7FJNP5Hl2jLYQ.png" /></figure><p>Production: <a href="https://tcbjrbprd.z15.web.core.windows.net/">https://tcbjrbprd.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DXt0KYFQpwNpXWrCN8wrHw.png" /></figure><p>This is the end of this project!</p><p>Thank you,<br>José Ruy Borges</p><h3>Part 4— Notify Challenge</h3><p>In this challenge, our mission is to enable notifications on a Slack Channel to inform when each environment is completed. To do that, we need to enable <strong>“Service hooks”</strong></p><p><strong>Step #1 — Enabling Service Hooks:</strong></p><p>1 — Let’s go to the main organization page and click on “Project Settings”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/262/1*pwET-bxr4H4xme58qmzVuw.png" /></figure><p>2 — Click on Service Hooks and then create a subscription:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/597/1*dsH9ZsLREh-jb6bEdqH0QQ.png" /></figure><p>3 — Select Slack and click on</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*UNrNmNwacdd8c_uR4G4v1A.png" /></figure><p>4 — Choose the following settings for this example, the trigger will start when the build is completed for the pipelines create on “website01-CI” with status Succeeded. Click on Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*lIHMHAGpA-_xDLcuw5WTyA.png" /></figure><p>5 — Create a slack app in order to activate the hook, click on Create an App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWN5DhcZ3X7wclz2JJx-3Q.png" /></figure><p>6 — Click on From Scratch:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*Dj36dM928zDGK9covHbMug.png" /></figure><p>7 — Give an App Name and select the Workspace where the messages should be sent. Click on Create App.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*0yZFk90izNzvuyH_m5wqiw.png" /></figure><p>8 — Activate incoming Web Hook and add a new Web Hook to the desired workspace.</p><p>Click on Basic Information -&gt; Add Features and Functonality -&gt; Incoming Webhooks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*hzLTgwFatYruAiGOB-u5hQ.png" /></figure><p>Enable it (turn it on) and then click on Add New Webhook to Workspace</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/983/1*LWtJvqNd2CkPcWnDDC0aQg.png" /></figure><p>Choose the channel and then click on “Permitir (allow)”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/1*ycZOnI_8wUs2LAdowG8SnA.png" /></figure><p>Copy the webhook URL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*4CsqAIagVlgaIaKhZuTDRA.png" /></figure><p>9 — Back to Azure Devops Service Hook Enablement, paste the Webhook URL and then click on Test:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MqAUlh8xTavCGOeXwTprgg.png" /></figure><p>10 — Test Notification Succeeded:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*VktXcFQQp79fWO5gZ8mQqA.png" /></figure><p>On Slack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*hlvPnJsPVvXFAz4JXf9PYQ.png" /></figure><p>The following Hooks are configured:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EtNaa-grEnPgXprityKCBw.png" /></figure><p>For the 3 Environments, if a deployment is failed, cancelled or succeeded, a message will be dropped on slack channel. Also, for any rejected deployment in Production, a message will be sent.</p><p>Configuration is completed.</p><p>11 — Let’s change once again the code, by updating and committing the index.html. (see above the steps on how to edit, and commit)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4eJxtEp9JWzor0vbLwVUWw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*AdMV0-SJPynJ4x191sRbFA.png" /></figure><p>Save it and commit the changes.</p><p>12 — Let’s check the Pipeline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fXNTWpBA6454kj00DaFVDA.png" /></figure><p>Let’s check Slack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/568/1*48E4bUoYW4EKhM3Z0ydoUQ.png" /></figure><p>13 — Testing and confirming the change on the websites:</p><p>Test: <a href="https://tcbjrbtst.z15.web.core.windows.net/">https://tcbjrbtst.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4THvdUKmpnwDuXYzAj03MA.png" /></figure><p>Acceptance: <a href="https://tcbjrbacc.z15.web.core.windows.net/">https://tcbjrbacc.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4j73_uT-KOmlyagVCkP2TQ.png" /></figure><p>Production: <a href="https://tcbjrbprd.z15.web.core.windows.net/">https://tcbjrbprd.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zEd-p8tyOX1LAW1MdDYv4Q.png" /></figure><p>14 — Testing notification if Production deployment is rejected:</p><p>Updated the index.html with:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-5BMVbSDjKcDpemCM5SBGA.png" /></figure><p>New Release #5 being created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vgVjqVzYKPNEZu9GHTXncw.png" /></figure><p>Release #5 is now running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*P3oA-LuGdXV-tsnzkVWxUg.png" /></figure><p>Rejecting production deployment:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*La_Gwe0xblayF75MR5R5aQ.png" /></figure><p>Release #5 Final Status:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XvenrYHRt82_BdOY9hUmOA.png" /></figure><p>Information received on slack:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/735/1*7BQVraFMWU-WllVD5ylcLw.png" /></figure><p>Changes done only on Test and Acceptance:</p><p>Test:<a href="https://tcbjrbtst.z15.web.core.windows.net/">https://tcbjrbtst.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UQ5aN9hFDCncmMPt802ywg.png" /></figure><p>Acceptance:<a href="https://tcbjrbacc.z15.web.core.windows.net/">https://tcbjrbacc.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FADCTehEc3T7wZVNqU7lGw.png" /></figure><p>Production, remaining with previous update: <a href="https://tcbjrbprd.z15.web.core.windows.net/">https://tcbjrbprd.z15.web.core.windows.net/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QkTk6zr_sylhgaVgwceRkA.png" /></figure><p>This is the end of this awesome challenge!</p><p>Thank you,</p><p>José Ruy Borges</p><p><strong><em>References:</em></strong></p><p><a href="https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/slack?view=azure-devops"><strong><em>https://docs.microsoft.com/en-us/azure/devops/service-hooks/services/slack?view=azure-devops</em></strong></a></p><p><a href="https://docs.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops"><strong><em>https://docs.microsoft.com/en-us/azure/devops/service-hooks/overview?view=azure-devops</em></strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb2258f3319f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Use Bastion Host to connect to a VM without setting up a VPN Connection in Azure]]></title>
            <link>https://medium.com/@jose.ruy.borges/use-bastion-host-to-connect-to-a-vm-without-setting-up-a-vpn-connection-in-azure-9d6fcfbb487a?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d6fcfbb487a</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Wed, 31 Aug 2022 18:49:57 GMT</pubDate>
            <atom:updated>2022-09-01T14:28:12.009Z</atom:updated>
            <content:encoded><![CDATA[<p>In this challenge we are going to setup the Bastion Host, which will be the responsible to allow remote connection to a VM, without exposing the public IP address or any Server Ports (such as RDP and SSH).</p><p>The connection is done through Azure Portal via SSL.</p><p><strong>Bastion Architecture:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*-JB9STR7RmFY2EjOzjU5kA.png" /></figure><p><strong>Step #1 — Create a Virtual Network and enable Bastion Host.</strong></p><p>1 — Search for Virtual Networks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*4dOQA_k2-36kCxznm7xtJQ.png" /></figure><p>2 — Click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/305/1*zbI49hRLXiq1zhehuC2meA.png" /></figure><p>3 — Type in the details and click on Next: IP Addresses</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/848/1*MO2UF2dEw2jpJxXyT-HsUw.png" /></figure><p>4 — keep this IP ranges for both options IPv4 and Subnet as it is shown below, then click on Security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*71c3ewB_BjL_x5yxy2_h3Q.png" /></figure><p>5 — Enable Bastion Host, give it a name and choose the Subnet as well as the new Public IP Adress name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*8UJK1C1o8yDwJ6yrOZWItQ.png" /></figure><p>6 — Review it and once validation is passed click on create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/658/1*SF-kNUZq1-NIUi7jQEQ90g.png" /></figure><p>Deployment completed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xvJGYK5ls-Pd7guhDZMoDA.png" /></figure><p><strong>Step #2 — Create a Virtual Machine with no Public IP Address.</strong></p><p>1 — Go to Virtual Machines on Azure Console</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/642/1*ke15yuWF4bhwdhUDDcI2Sg.png" /></figure><p>2 — Click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*fv-vZeMfiIEARHWbaJrVKA.png" /></figure><p>3 — On basics, choose the following or similar options:</p><ul><li>Resource Group: we should select the one we created while creating the VNET.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*n7q8DVKMikSnG3Cj3l3WRw.png" /></figure><p>Make sure Public inboun ports is set to none, then click next -&gt; Disks and then Next: Networking.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*c7X2e7SodQP8Cb1ENOFuTQ.png" /></figure><p>On Networking, select the settings for network we create previously and then go to Review + Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/1*xJIuLav1lR5-VLdfG6zWJg.png" /></figure><p>4 — Download the Key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*UDzoJRlXzqsGdAjSKcq8mg.png" /></figure><p>Deployment completed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D0BWwUcMI2jvgE0mjkcTmg.png" /></figure><p><strong>Step #3 — Testing Bastion Connection</strong></p><p>1 — From the previous step, click on Go To Resource and then click on Connect, then select bastion.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qhe6URXirDZGmdrLc2f4lQ.png" /></figure><p>2 — Type the username, authentication type and chose the key we downloaded during the VM Creation.</p><p>Keep “Open in new browser tab” checked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*85gD77DAmZvDtkN4bcBtjw.png" /></figure><p>3 — Bastion Connection works!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/867/1*dApO_V-Mrw5_CG-5kazBkg.png" /></figure><p>This is the end of the challenge!</p><p><strong>BONUS:</strong></p><p>Below you find a github repository where I saved the deployment using terraform.</p><p>GIT REPO: <a href="https://github.com/ruyborges/tcb-jrb-jump-challenge"><strong><em>https://github.com/ruyborges/tcb-jrb-jump-challenge</em></strong></a></p><p>Steps:</p><p>1 — You must create the azure user principal. Reference:</p><p><a href="https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret"><strong><em>https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret</em></strong></a></p><p>2 — Generate your ssh key pair by using the command:</p><p>ssh-keygen -m PEM -t rsa -b 4096</p><p>3 — Clone the repository somewhere on the machine you are running terraform.</p><p>4 — Make sure the variables : <em>#Subscription ID, #Principal Client ID, #Principal Client SECRET, #Tenant ID are updated accordingly</em></p><p>5 — Run on a jumpserver from azure or any other provider the following from the directory you cloned the repo:</p><p><em>terraform init</em></p><p><em>terraform validate</em></p><p><em>terraform plan -out main.tfplan</em></p><p><em>terraform apply main.tfplan</em></p><p><strong>It takes more or less 7 minutes to complete.</strong></p><p>Thank you!</p><p>José Ruy Borges</p><p><strong><em>References:</em></strong></p><p><a href="https://github.com/claranet/terraform-azurerm-regions/blob/master/REGIONS.md"><em>https://github.com/claranet/terraform-azurerm-regions/blob/master/REGIONS.md</em></a></p><p><a href="https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt"><em>https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt</em></a></p><p><a href="https://docs.microsoft.com/en-us/azure/developer/terraform/create-resource-group?tabs=azure-cli"><em>https://docs.microsoft.com/en-us/azure/developer/terraform/create-resource-group?tabs=azure-cli</em></a></p><p><a href="https://docs.microsoft.com/pt-br/azure/bastion/bastion-overview"><em>https://docs.microsoft.com/pt-br/azure/bastion/bastion-overview</em></a></p><p><a href="https://azure.microsoft.com/en-us/services/azure-bastion/#features"><em>https://azure.microsoft.com/en-us/services/azure-bastion/#features</em></a></p><p><a href="https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine"><em>https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine</em></a></p><p><a href="https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine#ssh_keys"><em>https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/virtual_machine#ssh_keys</em></a></p><p><a href="https://www.youtube.com/watch?v=UjmjXUonPpQ"><em>https://www.youtube.com/watch?v=UjmjXUonPpQ</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d6fcfbb487a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PostgreSQL database deployment with knowledge transfer to on-premises DBAs team using Microsoft…]]></title>
            <link>https://medium.com/@jose.ruy.borges/postgresql-database-deployment-with-knowledge-transfer-to-on-premises-dbas-team-using-microsoft-359f1f5474cb?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/359f1f5474cb</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Tue, 30 Aug 2022 19:36:39 GMT</pubDate>
            <atom:updated>2022-08-30T19:36:39.256Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>PostgreSQL database deployment with knowledge transfer to on-premises DBAs team using Microsoft Azure Database for PostgreSQL Servers.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*c_YXsjGx86cu8vxL.jpg" /></figure><p>In another project based on a real-world scenario, I acted as a Cloud Specialist to show a team of on-premises DBAs how to provision a PostgreSQL database on Microsoft Azure.</p><p>I supported the deployment and showed the step-by-step to create the database service in Microsoft Azure. I shared how the connection to the database service in Azure worked, what were the steps of creating a new database, a new schema, and a new table. Also, I instructed them how to insert new records and query data in the table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*o0A8a6PV2eokOQ45.jpg" /></figure><p>Find below the detailed tasks performed during this project.</p><p><strong>Step #1 — Deploy a new PostgreSQL DB based on Azure Database Services</strong></p><p>1 — Search for PostgreSQL and choose the one below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*cybwAztCt7THGPRZhpV9jw.png" /></figure><p>2 — Click on +Create or the blue button below, to create a new PostgreSQL DB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*enIfutSiy3sZibEjodTp_A.png" /></figure><p>3 — Purpose of this project is to create a single server, so choose it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*_YTdY8mkKEgTrlp1y3nxBg.png" /></figure><p>4 — If you see the message below, confirm by clicking on <strong>“NO”, </strong>as we want to create a single server.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*VxlF_mPNtH999E1v0_r8XQ.png" /></figure><p>5 — Fill in with the required details and then click on Review + Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/727/1*gs_Iy28TsGXxlP8jXZ1_nQ.png" /></figure><p>6 — Click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*qRH8FijkFlW8GYrBkddilw.png" /></figure><p>It takes about 5 minutes to complete the DB creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cSQ00RyWHhFEwd9cm9iv-w.png" /></figure><p><strong>Step #2 — Download and Install PGADMIN 4</strong></p><p>1— Download the latest PGADMIN 4 Installation file at: <a href="https://www.pgadmin.org/download/pgadmin-4-windows/">https://www.pgadmin.org/download/pgadmin-4-windows/</a></p><p>2 — Once download is finished, double click on the installation executable file, click next until it is finished. Search for it under <strong>Start Menu and Open it.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*mmbXjbemK0Eot3IBrVqA1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/1*t2vUb43m7pgLwUk9gCKCoA.png" /></figure><p>3 — Reset Master Password (or type a master password)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/699/1*MgWjLIZKy0O7pvNThVBh4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*GB-fRamOgItry072cP9_Ng.png" /></figure><p>4 — Click on “Yes” and then Type a new password, we can choose the same we used while creating the new PostgreSQL DB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*-z5AKQnxh3Om2mwpoNf_Tg.png" /></figure><p><strong>Step #3 — Add our public IP to Connection Security in Azure PostgreSQL Page.</strong></p><p>1 — Open Connection Security, from the PostgreSQL Panel:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*jo4F10tSOdOwmWSdwOU6PQ.png" /></figure><p>2 — Click on add suggested IP address, it will add our current public IP, then click on SAVE.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pc_UN8w_KCQzioggH4h1mg.png" /></figure><p><strong>Step #4 — Add the DB Server to Local PGADMIN 4.</strong></p><p>1 — Back to DB Overview copy the server name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U1XUusOJ_s_jouzlVXr5mg.png" /></figure><p>2 — Open PGADMIN 4 and click on Add New Server</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*mqBRq0Y458tXxrfYakzKiA.png" /></figure><p>3 — Add a name (can be any), then under connection, type the connection info we copied from the Azure Console as well as the user and password we created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/499/1*J4QMEA7ZaAu5PlnAg2nhaQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*dZmzk41aYV6G9eSoRTtD6Q.png" /></figure><p>Click on Save.</p><p>Connection has been established.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ktZYBp1TLpD6GZsfnBmFNw.png" /></figure><p><strong>Step #5 — Create a new DB through PGADMIN 4.</strong></p><p>1 — Right click on the Azure Server connection and click on Create Database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/656/1*1XCCE_xs8Ct_bqBCNpz77g.png" /></figure><p>2 — Type the name: <strong>db01 </strong>and then click on Save.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*0ifhYxl0PAS9fksNt5uq5w.png" /></figure><p>DB has been created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*GJ8s2Lvu93PWIe13CcqFLw.png" /></figure><p><strong>Step #6 — Create a new Schema under DB01.</strong></p><p>1 — Right click on Schema under db01, click on Create, Schema.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/668/1*mI4cGvGbPxnD0Wbd_bOk8g.png" /></figure><p>2 — Type app01 and then save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/502/1*vYj6KW9OhyfUoLvkOveTqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*e57GP8WbYSDQXls4fM3oYw.png" /></figure><p><strong>Step #7 — Create a new Table under Schema App01 and 2 columns (ID + Name)</strong></p><p>1 — Create a new Table called Employees:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/674/1*zObwqnPUDnxP_kjYUA0xiw.png" /></figure><p>2 — On columns tab, add 2 fields:</p><p>Id and Name and click on Save</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*lD7_PARtubdA4o0qhXANYA.png" /></figure><p>Table and columns were properly created:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/1*Hf5bZWQvyGWIObjvX1WqcA.png" /></figure><p><strong>Step #8 — Inserting data to the newly created table</strong></p><p>1 — To add some data, we can run the following SQL Query and create 1 line to the new Table.</p><p>Click on the icon below, allows us to run a new SQL command.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/590/1*mKR4pWRxf-ygdLdKqQxL4w.png" /></figure><p>2 — Type: insert into app01.employees values(1,’Jose Ruy Borges’) and then click on run:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nPnOqo_9I8PYeQsx4FF8eA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/1*xR25P5CtetQINr7aTd6L3g.png" /></figure><p>3 — View the data created by running the select command:</p><p>select * from app01.employees</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*63czrVqUn8jNlyp-GNEqUA.png" /></figure><p>In summary, we created the Database, a new schema, a new table with 2 fields. We inserted 1 value and queried the DB by running a SQL Select Statemement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*98R948f2svikqSnKucisMw.png" /></figure><p>Thank you!</p><p>José Ruy Borges</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=359f1f5474cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Infrastructure modernization, from on-premises to Microsoft Azure with backup solution using Azure…]]></title>
            <link>https://medium.com/@jose.ruy.borges/infrastructure-modernization-from-on-premises-to-microsoft-azure-with-backup-solution-using-azure-e91945bfeec7?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/e91945bfeec7</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Tue, 30 Aug 2022 00:08:48 GMT</pubDate>
            <atom:updated>2022-08-30T00:08:48.784Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>Infrastructure modernization, from on-premises to Microsoft Azure with backup solution using Azure Files, Azure Backup and Recovery Services Vault.</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hVvj8yqiLDTJRa27.jpg" /></figure><p>In this project based on a real-world scenario, I acted as a Cloud Specialist to modernize and migrate an on-premises infrastructure environment to Microsoft Azure. I deployed a set of Virtual Machines, the infrastructure, a shared file system and replaced backups from tape to cloud backups with 99.9% (3-nines) availability.</p><p>I used a Resource Group to organize resources, a VNet with a subnet where we would have the provisioning of 2 Application VMs and Azure Files as a shared file system solution between our Application VMs.</p><p>All the power and reliability of Azure Backup with Azure Recovery Services have been used to configure the backup of files in the shared file system. Once again, Azure Backup has been used to move the files to the Recovery Services Vault.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*_OmgnLL71cuNnJj4.jpg" /></figure><p><strong>Step #1 — Create the Virtual Machines which will be able to access the shared drive.</strong></p><p>1 — Create 2 VMs through Azure Virtual Machine:</p><p>VM1: <strong>appvm1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/871/1*QkmQD1YPZ1Nmo1AnMvdSDQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/1*wH-Sf-mJQFkCASJwZTIfbQ.png" /></figure><p>Validation is completed, click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/776/1*5-vl-Fv5z9MHbFMu4dxfqw.png" /></figure><p>Deployment Completed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*76Tvyajib1mm-WxBm_k9qg.png" /></figure><p>VM2 Creation: <strong>appvm2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*cFHc3LHDc39CF0OAK2kPZg.png" /></figure><p>Click on Review and Create:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*27CPsfZoaZvv_a-kqnN7AQ.png" /></figure><p>Once Validation is passed, click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/778/1*f4G1gspguAvzICxiFgXO8Q.png" /></figure><p>VM deployment Completed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/858/1*q9snW2zTupVbhokd5-y-hg.png" /></figure><p><strong>Step #2 — Create the File Share, mount the share and create dummy files for backup exercise</strong></p><p>1 — Search for Storage and click on Storage Accounts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/441/1*Y_TScL1wFaBJtvibqdQYpQ.png" /></figure><p>2 — Click on Create in order to create a new Storage Account</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*CSFXcUl6jd2HT4slad_ZgA.png" /></figure><p>3 — Give it a name, review the data.</p><p>In this project, we are going to use all the default settings, thus no changes on Advanced, Networking and all other tabs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/836/1*EZanS5s3aepZ5_njfjXgfA.png" /></figure><p>Create it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/736/1*ApJ910Jghjkf08f5LFMExQ.png" /></figure><p>4 — Deployment completed, click on Go To Resource</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/865/1*TagHkghSp732PbAqY6bV8w.png" /></figure><p>5 — Go to Data Storage and click on File Shares</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/443/1*Q3pFC0JjtBsNYF0bW9et5w.png" /></figure><p>6 — Click on <strong>+ File Share, </strong>to create a new file share</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/665/1*CN-NmyDlhooasYs_JcD5rA.png" /></figure><p>7 — Type in the name and keep default selection as per the screenshot below, click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/586/1*JkXHtLFZa38jSUmFqcMeDg.png" /></figure><p>8 — changed the quota to 1 GB only.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*CCNjCgj3mvFcxQqHQD4Frg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ng5tDhUNpMr5CH6ZHofgeA.png" /></figure><p>9 — Let’s mount the disks on the 2 VMs. For that, click on the new share we created, and then click on Connect.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*9tBzSOUYp6ydWoTEUjHlSQ.png" /></figure><p>10 — Choose Linux and copy the script</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/565/1*Tw5iK1G2RmuT6ZBbGnCm1g.png" /></figure><p>11 — Connect to the 2 VMs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/1*amGwrNV1Pu5gsEve29G3mA.png" /></figure><p>12 — Copy and paste the mount code into the 2 VMs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Eqk2zTEIDSlEvXnVGHQW2Q.png" /></figure><p>13 — Check whether the share is created by typing df -kh</p><p>VM1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*aSeNMr1r4xVtih1zlBMiWg.png" /></figure><p>VM2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*u9zOe9NARwz-pbB-tQijiw.png" /></figure><p>14 — Create 5 dummy files by typing the following command</p><p>echo ‘Conteudo do arquivo 1’ &gt;&gt; /mnt/tcbjrbfileshare/arquivo1.txt<br>echo ‘Conteudo do arquivo 2’ &gt;&gt; /mnt/tcbjrbfileshare/arquivo2.txt<br>echo ‘Conteudo do arquivo 3’ &gt;&gt; /mnt/tcbjrbfileshare/arquivo3.txt<br>echo ‘Conteudo do arquivo 4’ &gt;&gt; /mnt/tcbjrbfileshare/arquivo4.txt<br>echo ‘Conteudo do arquivo 5’ &gt;&gt; /mnt/tcbjrbfileshare/arquivo5.txt</p><p><strong>tcbjrbfileshare is the file share name which I used in this project.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nhsTp7g49ThVAmApV6xA3g.png" /></figure><p>15 — Back to Azure Portal, the files are visible within the share</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*LnE6Z4p6nv_FCg9c_Y0jLQ.png" /></figure><p>16 — Listing on both VMs using <strong>ls -ltr</strong>, the following is shown:</p><p>VM1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*v3mAF7wP-toKEm1_SljsOQ.png" /></figure><p>VM2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/413/1*mNSpmwykneYJjbHrPsSOuA.png" /></figure><p><strong>Step #3 — Creating a new Backup Policy</strong></p><p>1 — Still on the file share, click on <strong>Backup </strong>on the left side menu</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/593/1*Is6vxoWjwDNRUNMCfLYwYA.png" /></figure><p>2 — type in with the data required.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/659/1*3hLY4qGuqAxxMuIH67zs_g.png" /></figure><p>3 — on Backup policy, edit, choose a name of your choice, and keep the config as it is in the screen below for this exercise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/823/1*cMlUE3ja6Ux-L0-Xmy1wug.png" /></figure><p>4 — Once step above is done, click on enable backup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/286/1*zK4Ht1JVZqTuCkQk3XB5HA.png" /></figure><p>5 — Deployment completed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/906/1*JpvnLcbPIRNkNDEekN8Jog.png" /></figure><p>6 — Go back to the file share, click on Backup and then click on <strong>Backup Now</strong>, to create the first backup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0d7QGapo_anKh5jWAA_whA.png" /></figure><p>Choose how long it should retain the backup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*iHwNG2dFnVqhYpf95TaxqA.png" /></figure><p>A Confirmation the first backup job is successfully completed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/451/1*MAwTvhRpmRXYZ76n4a-1lA.png" /></figure><p>7 — Check the backup jobs through Recovery Service Vaults, by searching for it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*Dh1mbkndJ14ahhzUSKchng.png" /></figure><p>Click on the created vault:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*IKFpEK4vQtcuDyj9ltE7-w.png" /></figure><p>Click on Backup jobs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hEnfyhtwHo7xWIZ4OoJNMA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s908nh3-5gOwyfXSeET3fA.png" /></figure><p>8 — Check last done backups by clicking on <strong>Backup Items</strong> on the left side:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*DgS_3mD081lPloCXF1jddA.png" /></figure><p>Click on Azure Storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*UwBkCw8H_u44cID9xYKmWg.png" /></figure><p>Backup is displayed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FwDZ7qIcbe0OqLCOFcaUeg.png" /></figure><p><strong>Step #4 — Simulate files removal by removing File2 and File5 from the list we created.</strong></p><p>1 — Back to the VM console, type the following command:</p><p>rm -rf /mnt/tcbjrbfileshare/arquivo2.txt rm -rf /mnt/tcbjrbfileshare/arquivo5.txt</p><p>Files removed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/970/1*E3OK9-iF7hxgYGjj6QKP8Q.png" /></figure><p>2 — We go back to the Recovery Service Vaults, click on the vault’s name</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/510/1*tk-iQpYiSyDSpYWw3Yx88A.png" /></figure><p>3 — Go to the Backup item details and then click on File Recovery</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*sc1XnuQBuccFOxsdg_RN0A.png" /></figure><p>4 — We select the restore point:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/930/1*BVwysvP7TAP_2yQ6qiUYTg.png" /></figure><p>Select the time, and then select the available restore</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/1*zAqatjJpMVhZYXt2JOkiAg.png" /></figure><p>Under retore destination, select the 2 files we want to restore:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*wR1Qb24XuUv8DxfHjKF0jw.png" /></figure><p>then click on Restore.</p><p>We can go back to the Vault, Backup Jobs, and see the job running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W_j_9NAcaygOc-BoPBcL5g.png" /></figure><p>It took 56 seconds to complete:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4O7EYnr0viYDmoGvpGm70Q.png" /></figure><p>We can now go back to the Linux VMs, and see whether the docs were properly restored:</p><p>VM1:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/454/1*wKGGmXtbshwgvsSm-qD2Ow.png" /></figure><p>VM2:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/455/1*vT3IvoE3fDYwr0rPm1YWKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*3cwdJclCUvKh7sYuzgf6oQ.png" /></figure><p>Thank you!</p><p>José Ruy Borges</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e91945bfeec7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Home Office Solution during the COVID-19 Pandemic using Microsoft Azure VPN Gateway]]></title>
            <link>https://medium.com/@jose.ruy.borges/home-office-solution-during-the-covid-19-pandemic-using-microsoft-azure-vpn-gateway-c9a1c82db9e2?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/c9a1c82db9e2</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Wed, 24 Aug 2022 13:41:24 GMT</pubDate>
            <atom:updated>2022-08-24T14:52:59.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*m3gdWaBAJiOyJOUn.jpg" /></figure><p>In this real world-based project, I acted as a Cloud Specialist to create a solution for people who were working in the office to start working from home, normally accessing the environment in Microsoft Azure, and without exposing the entire environment to the internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AbYSwq-nWQOvFwvR.jpg" /></figure><p>To solve this business problem and come up with a solution compatible with the requirements, I defined that it was necessary to implement Point-to-Site (P2S) VPNs, so that employees who were working from home would close an encrypted tunnel between their computer and the Microsoft Azure environment.</p><p>I also had the chance to go through the Azure Firewall setup, learning on how Routing Tables work as well as the entire setup and configuration, which is part of the Fire Challenge proposed by The Cloud Bootcamp.</p><p>Let’s get started.</p><p><strong>Step 1 — Virtual Network Creation</strong></p><p>1 — Connect to Azure and search for Virtual Networks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*pGS9wODUWo1X_56iQB2NMA.png" /></figure><p>2 — Click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/676/1*vanREe6cCzM34syNSCjNjg.png" /></figure><p>3 — Name it as “VNetBootcamp and choose Region Brazil South(chose this one, as there was no VM available for East US, thus I was not able to select this Virtual Network during the VM creation, see step 2 for more info)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*WaoymL-Vr7_BJyTqEDj4aA.png" /></figure><p>4 — IP address and subnet must be like below, following the bootcamp project details.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*ASIHBpERs__Xvj7yQlOSQA.png" /></figure><p>5 — Click on next until Review and validation is passed. Then click on Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*aHztEtmQTZhrXUC3T8bwSA.png" /></figure><p>Deployment is in progress… wait until is completed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MPhNjPk6-fMIIlzvQX077A.png" /></figure><p>6 — Once it is completed, click on Go to Resource.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ECerxZvJ1x49CR9VnEufwA.png" /></figure><p>VNetBootcamp has been created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oPGMOrXQX1j0ohnp188ZbQ.png" /></figure><p><strong>Step 2 — New VM creation, which will simulate the virtual machine, so the employee can connect to it using the VPN we are going to configure on a later step.</strong></p><p>1 — Search for Virtual Machines</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/781/1*NnPA5ZsfbtY7lswtQIxnPA.png" /></figure><p>2 — Click on Create and then Azure Virtual Machine</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*lXH8007eKgW0znbiB0OhbA.png" /></figure><p>3 — Add the following details as per the screenshots below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/1*wjZguwIruWNaoVCfQe1WwQ.png" /></figure><p>4 — Make sure that Public IP Inbound Ports selection is None.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*d5sSnDpr17n2eir_iNQfUQ.png" /></figure><p>5 — Go to Networking Tab</p><p>Make sure Public IP is none</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*pSUocBpt_o3RSOAnwJqT2w.png" /></figure><p>6 — Go straight ahead to Review and Create</p><p>Once Validation is passed, click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/762/1*IJrYGhEcGOlvJCoDg8cmUQ.png" /></figure><p>7 — Deployment is completed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXf9BByqsGtQVlTQYnzUiQ.png" /></figure><p><strong>Step 3— Create a new Virtual Network Gateway, responsible for the VPN connection.</strong></p><p>1 — Search for Virtual Network Gateway</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g5uoyT3waynLgszayjhM1A.png" /></figure><p>2 — Click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*OdXqivs-M2KA31FDAm1vmg.png" /></figure><p>3 — Make sure the following items are properly set as per the screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/771/1*Rd3kcW2yxC_3QCMKJIOjZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/1*cZLOI9gPOUeBrX_pZR95RA.png" /></figure><p>Click on Review Create</p><p>4 — Once Validation is passed, click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*wu-a_H2m5EIypqK9w3G9YQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9DegF4TfXwtKa97vbTCR9w.png" /></figure><p><strong>Step 4 — Next Step is to apply the certificates (in this lab, we got the certs provided by The Cloud Bootcamp, but to generate new ones, this documentation explains exactly what should be done: </strong><a href="https://docs.microsoft.com/en-us/azure/vpn-gateway/vpn-gateway-certificates-point-to-site#clientexport"><strong>Generate and export certificates for P2S: PowerShell — Azure VPN Gateway | Microsoft Docs</strong></a><strong>)</strong></p><p>1 — Click on Point-to-site configuration</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_OXcXbUMLAGxJKxrZgEg8g.png" /></figure><p>2 — Configure now</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/772/1*spwDaoaJz54coABeUsoezA.png" /></figure><p>3 — Make sure the following options are set.</p><p>For the certificate, we used the ones provided by The Cloud bootcamp</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KwxHocwM4pYJ_yQ3JKIJUg.png" /></figure><p>Click on Save</p><p>4 — Once it is saved, we can download the VPN Client.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lPA_mVEDwpwh-LD2Ufh_qg.png" /></figure><p>5 — Before we install the VPN client, we must apply the certificate which will allow us to connect to the VPN VM machine we created previously.</p><p>Double click on it (remember, this is provided by The Cloud bootcamp).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/213/1*yrGajOk8bF1dFXyMHgc1vg.png" /></figure><p>6 — Unzip the VPNClient file. Run <strong>VpnClientSetupAmd64.exe</strong></p><p>In my case, the installation was quick, no confirmation screen. I clicked on the Network Icon and I can see the following:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*HqUWgm0v93-Ew_2mRTnPvg.png" /></figure><p>7 — Go to Network config and click on VPN. Click on Connect</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/467/1*o6SjQVBnvs6MTUx7eqds1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/346/1*5zA0_axLv_1RIAAtwWqNJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/375/1*6NpqgHFij-jmKc78dpky2g.png" /></figure><p>8 — Check whether the VM can be pinged. Open <strong>CMD and ping the VM IP: </strong>10.2.0.4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/559/1*zp81e4DG1GMEQKahyYNJ6A.png" /></figure><p>9 — I’m using MobaXterm for SSH connection, thus I setup the machine here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/893/1*-fe4fWvKPBPZrQJ2DdOXYA.png" /></figure><p>10 — Running it, connection established</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*BHXZSxyK4tNOtIUdmm8d-w.png" /></figure><p>11 — Installing Apache</p><p>sudo apt-get update</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/829/1*2rTYrVojLr9zTi_aAaIVBQ.png" /></figure><p>sudo apt-get install apache2</p><p>Install Completed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*01pqE9i0DHJbATq9_M8qrg.png" /></figure><p>Restart Apache Service:</p><p>sudo systemctl restart apache2.service</p><p>12 — Check whether apache is accessed by the browser through IP 10.2.0.4</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_fnb7nxlkRjl6swkdc36XA.png" /></figure><p><strong>This is the end of this project.</strong></p><h3><strong>Fire Challenge</strong></h3><p>This challenge aims to add an additional firewall layer to what we’ve done previously by allowing the Virtual Machine to connect to Facebook and Instagram websites only.</p><p>For this exercise, we are going to implement <strong>Azure Firewall.</strong></p><p><strong>Step 1 — Create Azure Firewall Subnet</strong></p><p>1 — Open VNetBootcamp Virtual Network and click on subnet, then create a new subnet for Azure Firewall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKzhAAvsK8y3xHRLNYnK8Q.png" /></figure><p>Step 2 — Create the Azure Firewall</p><p>1 — On VNetBootcamp Virtual Network, click on Azure Firewall. Then follow the sequence below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*FIsSqQVX7bjewj4ZwC_2aA.png" /></figure><p>2 — Click on Review + Create.</p><p>3 — Once Validation is passed click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*wq8Vvt2Bnx1f-cumKhSjPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xZei1Uoe01ZJHCEjRtIIoA.png" /></figure><p><strong>Step 3 — Creation Application Rules for Facebook and instagram</strong></p><p>1 — Go to Azure Firewall we created and click on Rules (Classic), then Application rule collection tab and finally +Add application rule collection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*GWgma-DHTrXDJEXXwlTOuQ.png" /></figure><p>2 — Follow below options</p><p>For Facebook FQDN, please use: *.facebook.com, *.fbcdn.net, facebook.com</p><p>For Instagram FQDN, please use: *.instagram.com, instagram.com</p><p>Click on Add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z1NOV6uc7KRH3uv4Z4ZIXA.png" /></figure><p><strong>Step 4 — Create Route Tables and subnet association</strong></p><p>1 — Go to Route Tables and click on Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/943/1*qHHxUJhAGKp0cTUPazKGjw.png" /></figure><p>2 — Fill in with the below as an example. Click on Review Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*StJ1HxU3q_y_gpISZUQGhg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mI1V9766QjSKfd3grsRtA.png" /></figure><p>3 — Click on Go To Resource, once the RT is completed. Then click on Routes and then Add.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*L3GO2kKFfGVMR5LxPjRk4g.png" /></figure><p>4 — Add the required information.</p><p>Destination IP: is the CIDR we use for our VMs</p><p>Next hop type, Virtual Appliance, we are going to use the Azure Firewall.</p><p>Next hop address, is the internal IP provisioned during Azure Firewall Creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/355/1*xLlqd_l3Kfg6VmbW6uO0QQ.png" /></figure><p>5 — Associate the Route Table we created to the default subnet created for the VNETBootcamp lab.</p><p>Go to Routes Table, then Subnets and then Associate</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*7e2Y2LYCow3n47nFqs0RnA.png" /></figure><p>6 — Select the Virtual Network we previously created during previous lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*nsCLDR-Nm_bc4osc2qWPlQ.png" /></figure><p>7 — Connect to <strong>app1 </strong>VM and try to curl <a href="https://www.google.com/">https://www.google.com</a> or https://www.microsoft.com</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*Z7ExWCkQlUyMWBnXO0ipDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/731/1*Lc-B5sBR0CDqCQfaUOXkVw.png" /></figure><p>8 — Try to access Facebook and Instagram by using curl for <a href="https://www.facebook.com/">https://www.facebook.com</a> and <a href="https://www.instagram.com/">https://www.instagram.com</a></p><p>Output example for Facebook:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bn3ctFHoTQk-4dCnS1xiXg.png" /></figure><p>Output example for Instagram:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4d2USPGm0gPV0tN84CzfCA.png" /></figure><p>This is the end of the Challenge.</p><p><strong>Thank you very much for reading</strong></p><p><strong>José Ruy Borges</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c9a1c82db9e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Preparation, Docker Image Push and Deployment for Containerized Voting Application in Kubernetes…]]></title>
            <link>https://medium.com/@jose.ruy.borges/preparation-docker-image-push-and-deployment-for-containerized-voting-application-in-kubernetes-3d1c6fa6859a?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d1c6fa6859a</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Mon, 22 Aug 2022 20:28:05 GMT</pubDate>
            <atom:updated>2022-08-22T20:28:05.882Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Preparation, Docker Image Push and Deployment for Containerized Voting Application in Kubernetes Cluster using Docker, Azure Container Registry (ACR) and Azure Kubernetes Service (AKS)</em></strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wtphwpEfbchWNOLr.jpg" /></figure><p><strong>Project description:</strong></p><p>In another project based on a real world scenario, I had to act as a DevOps Engineer, and show a new team member how to deploy an application on a Kubernetes cluster.</p><p>This cluster is part of The Cloud Bootcamp project, and I prepared this new team member to deploy the voting application that was developed for the MultiCloud Experience, an online event where participants had the opportunity to learn about Cloud technologies.</p><p>I deployed it to Microsoft Azure cloud, where I first pushed the application’s Docker image to Azure Container Registry (ACR) and then used the Azure Kubernetes Service (AKS) service to deploy a cluster managed by Microsoft Azure.</p><p>It was a dense and quite important experience, as it gave me an overview of what can be done, not only with Azure Kubernetes Services but as well as with Azure CLI, the Azure Container Registry, understanding of Kubernetes Deployment ( yaml file content ).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-Tqa6w0gbkw-pP9K.jpg" /></figure><p><strong>Step 1 — Create Docker Virtual Machine (on Linux) for docker image creation / testing -&gt; Type BS1 Free Tier</strong></p><p>1 — Go to Virtual Machines and + Create</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*_eWS4zk1tHKGmM0vl3Tzrg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/348/1*jbxqx9MvLgIiCOEVF7fGsQ.png" /></figure><p>2 — For the following screenshot:</p><p>- Create a new resource group</p><ul><li>Give the server a name</li><li>Choose the image ( in my case Ubuntu 18.04 LTS), this is a free eligible image.</li><li>Size B1s, it is also free eligible.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/775/1*iKNgKtHMvVCCcF9YQpEl9A.png" /></figure><p>3 — Choose SSH, and you can create your public key and download it to connect using ssh.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/797/1*b9_4_7TyJ749MSTFiNf-ow.png" /></figure><p>Click on Review + Create.</p><p>4 — You go through a validation process, once it is completed, click on Create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*F5oIZZJC3qCTUi51z7953Q.png" /></figure><p>5 — Deployment is in progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UmJV9cLnMpD1kP-krflD_A.png" /></figure><p>Once it is done, click on <strong>Go to Resource</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xDmDllKmoqIxKO-BogIZWg.png" /></figure><p>6 — Copy the public IP`address</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kT_E19eVYPUMCheF4Aggcw.png" /></figure><p>We are ready to connect using SSH.</p><p>7 — Connecting through SSH</p><p>I’m using MobaXTerm.</p><p>I setup using a new session with my VM’s details as well as the public key previously downloaded.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*4GjbYv7E-fSi-yF4EvOBxw.png" /></figure><p>8 — Login as user: azureuser</p><p>Successfully connected:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/927/1*L6lGx7tmBS2PpYT4b4gqGg.png" /></figure><p><strong>Step 2 — Installing required software</strong></p><p>The following steps are required in order to test the docker images locally using docker before pushing them to Azure Container Registry as all as AKS.</p><p>1 — First of all, check any available updates:</p><p>sudo apt-get update</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*LUXMtXajpTPexkvFcAkGKw.png" /></figure><p>2 — Install unzip:</p><p>Sudo apt install unzip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*LUH5hRcyizZQ-nyzvJytdw.png" /></figure><p>3 — Installing Docker.io</p><p>sudo apt install docker.io</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9Pxr3uoO3FGGIfH0eCRVHg.png" /></figure><p>4 — Installing Docker Compose</p><p>sudo curl -L <a href="https://github.com/docker/compose/releases/download/1.21.2/docker-compose-%60uname">https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname</a> -s`-`uname -m` -o /usr/local/bin/docker-compose</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Eeitdd0bZHI71kUvEGeBw.png" /></figure><p>sudo chmod +x /usr/local/bin/docker-compose</p><p>5 — Start Docker</p><p>Type: sudo systemctl start docker</p><p>6 — Download the App content which we are going to use in this lab.</p><p>wget <a href="https://thecloudbootcamp.blob.core.windows.net/azure-bootcamp/tcb-voting-app.zip">https://thecloudbootcamp.blob.core.windows.net/azure-bootcamp/tcb-voting-app.zip</a></p><p>7 — Unzip it!</p><p>unzip tcb-voting-app.zip</p><p>8 — Build Docker images with Docker Compose</p><p>cd tcb-voting-app</p><p>sudo docker-compose up -d</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*jIn1_3TW_BijM4I41GoeJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b9TaIalWtmrWlxrYapZSVw.png" /></figure><p>9 — List if containers are running properly</p><p>sudo docker ps -a</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MgGLMWm0cjdc5SNH1UjRlw.png" /></figure><p>As a result, we are ready to test whether the application is running fine. But first we will need to open the port 8080 on <strong>jumpserver VM.</strong></p><p>Step 3 — Testing if app is working</p><p>1 — Open port 8080 on <strong>jumpserver VM.</strong></p><p><strong>Go to the VM details, click on Networking:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/406/1*XgdPajTNLdEaj2MSjtWd1A.png" /></figure><p>Click on Add inbound port rule</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-mj9urJgjwtzAIuABkZHg.png" /></figure><p>On Destination Port Ranges, should be 8080, change it and click on ADD.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*GZg6iWV_EWROS4ly1zS2TA.png" /></figure><p>2 — Copy the Public IP Address and test it on the browser with port 8080</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/661/1*QCU17rvQpjfrYNiEwFXuIA.png" /></figure><p>This is the end of part 1!</p><p><strong>Step 4 — Azure Container Registry</strong></p><p>Before starting the Azure CLI installation, we must stop any docker container which we launched on the previous step. To do that:</p><p>sudo docker-compose down</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/542/1*hGFb7khzi1Z288A0yPCRFA.png" /></figure><p>1 — Install Azure CLI</p><p>curl -sL <a href="https://aka.ms/InstallAzureCLIDeb">https://aka.ms/InstallAzureCLIDeb</a> | sudo bash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/942/1*246Fa-KQyj0n0so_vLCZFQ.png" /></figure><p>2 — Login to Azure CLI</p><p>Type: az login</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*rhyNJNIr6ToUfEe6mRhqbA.png" /></figure><p>Follow what is written on the screen</p><p>With the azure account we are logged in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*Fvwzo7a97KdHJx6n5upHSg.png" /></figure><p>3 — Create Azure Container Registry</p><p>A) az group create — name tcb-vote — location eastus</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*AkQ7WfZ5X8oSOxN-IvMClA.png" /></figure><p>B) az acr create — resource-group tcb-vote — name tcbruyborges — sku Basic</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Q8yMqxT3D7Ob6RBY1jhU8A.png" /></figure><p>ACR name: tcbruyborges.azurecr.io</p><p>4 — Login to ACR:</p><p>sudo az acr login — name tcbruyborges.azurecr.io</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/755/1*ASLDlMr1sWjg6lPoc3_CnA.png" /></figure><p>5 — List ACR Server:</p><p>az acr list — resource-group tcb-vote — query “[].{acrLoginServer:loginServer}” — output table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pvOzBYKcMJMUfuXyN-qCKA.png" /></figure><p>6 — Alter Tag</p><p>sudo docker images</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/635/1*AaOY8TVitNB_JNnjrG7jDw.png" /></figure><p>sudo docker tag thecloudbootcamp/tcb-vote:latest tcbruyborges.azurecr.io/tcb-vote:latest</p><p>7 — Push Docker Image to ACR:</p><p>sudo docker push tcbruyborges.azurecr.io/tcb-vote:latest</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*m9DPcJ5ygZyf8gDvbAsnDw.png" /></figure><p>az acr repository list — name tcbruyborges.azurecr.io — output table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/887/1*vL1HG8RNVj5DtMQP05p7gA.png" /></figure><p><strong>Step 5 — Kubernetes Setup</strong></p><p>1 — Create AKS Cluster:</p><p>az aks create \ — resource-group tcb-vote \ — name AKSClusterTCB \ — node-count 1 \ — generate-ssh-keys \ — attach-acr tcbruyborges</p><p>The output of this command is huge, we must make sure the <strong>provisioningState</strong> message is succeeded</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/519/1*WAqZpIjTE63L77-2JZmOfQ.png" /></figure><p>2 — Install Kubectl</p><p>sudo az aks install-cli</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S9j9BovRTAFHV7DSoHGCEA.png" /></figure><p>3 — Get AKS credentials in order to login to the cluster</p><p>az aks get-credentials — resource-group tcb-vote — name AKSClusterTCB</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/886/1*ir6i8cWJC8LNl_3NItZwaw.png" /></figure><p>4 — Let’s update the tcb-vote application yaml file in order to update the image’s name to what we created previously.</p><p>Edit tcb-vote-plus-redis.yaml file by typing:</p><p>nano tcb-vote-plus-redis.yaml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/472/1*WfnysZvZrcWeLoiWfUztIA.png" /></figure><p>5 — Let’s deploy the app to the cluster by:</p><p>kubectl apply -f tcb-vote-plus-redis.yaml</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/986/1*jAj_3xBzWaulI9fZXAEVpw.png" /></figure><p>6 — We need to get the Public IP by typing:</p><p>kubectl get service — watch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*pjxqjhpeRMwyZ8UHhl7_tQ.png" /></figure><p>Public IP: 20.85.142.223</p><p>This is the result the deployment worked seamslessly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dGFQ3woFVpR0W5nZrPiUtw.png" /></figure><p>View from AKS:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zmzWNjrzJKQYiBtYB_k1rg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9zYFe2Cpi69e3COWISxyag.png" /></figure><p>Load Balancer External IP:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QDFAdrtNl4bW5yFSMbCrjg.png" /></figure><p>Thank you!</p><p>Jose Ruy Borges</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d1c6fa6859a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MultiCloud Federation — Microsoft Azure and Oracle Cloud Infrastructure using Single Sign-On for…]]></title>
            <link>https://medium.com/@jose.ruy.borges/multicloud-federation-microsoft-azure-and-oracle-cloud-infrastructure-using-single-sign-on-for-5ca8f1a8749f?source=rss-190cd523765------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ca8f1a8749f</guid>
            <dc:creator><![CDATA[Jose Ruy Borges Pereira Filho]]></dc:creator>
            <pubDate>Wed, 17 Aug 2022 23:59:18 GMT</pubDate>
            <atom:updated>2022-08-17T23:59:18.493Z</atom:updated>
            <content:encoded><![CDATA[<h3><em>MultiCloud Federation — Microsoft Azure and Oracle Cloud Infrastructure using Single Sign-On for Teams Authentication</em></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kexgiUB2hWvhNeBzUdN-iw.png" /></figure><p>In this project based on a real scenario, I was responsible for designing and implementing a MultiCloud architecture, by performing MultiCloud federation of users and groups between Azure Active Directory and OCI IAM.</p><p>There were multiple users who needed to authenticate to both Microsoft Azure and Oracle Cloud Infrastructure using the same login and password (single sign-on) to access resources.</p><p>Once the integration was implemented in Oracle Cloud Infrastructure, the mapping of users and groups was directly related to users and groups in Microsoft Azure through the federation service.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1CMy46S6EblBUUV6uzy6fA.png" /></figure><p>Taking into account the architecture design above, I went through the following steps:</p><p><strong>Oracle Federation Metadata:</strong></p><p>1 — Login to Oracle Cloud and download the federation xml file.</p><p><a href="https://console.us-ashburn-1.oraclecloud.com/identity/federations">https://console.us-ashburn-1.oraclecloud.com/identity/federations</a></p><p>2 — Click on Download the document</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fBlIv48NVTvnK2Bh19VKXg.png" /></figure><p><strong>Azure Active Directory Group Creation:</strong></p><p>1 — Go to Azure AD, and click on groups, also create the following group (it can be any name)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2CmuPILqMjJzB7FxDb19Ww.png" /></figure><p>2 — Assign an user to this group.</p><p>I have two accounts assigned, one is the Azure Account, the other one I am going to use in this lab.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*76W5LbZ1FX6nuUIwttD72w.png" /></figure><p><strong>Azure Active Directory Enterprise Application:</strong></p><p>As we are using the Azure Free Tier, our Active Directory License is the AD Free.</p><p>1 — By Navigating to Default Directory -&gt; Usage &amp; Insights we can leverage the license to Azure AD Premium P2 for 90 days.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*iD8aDlL4DA0LGiTTdCgOVw.png" /></figure><p>2 — Once this is done go to Enterprise Applications, and then click on <strong>New Application.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/556/1*-nxme90y3WkLU8xHlbteQQ.png" /></figure><p>3 — Search for Oracle</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*iElp-fd_Smm6V2IBL0MPZQ.png" /></figure><p>And Select <strong>Oracle Cloud Infrastructure Console.</strong></p><p>4 — In the next screen, give it a name and click on create.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/579/1*nNeKwVN-SYJ_-O_Rzsl23w.png" /></figure><p>5 — Back to <strong>Enterprise Applications, </strong>click on <strong>OCI Console, </strong>and then on <strong>Single Sign-on:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/1*yfBdh5PpFFm0qZuliJbagA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*_OFsN9qCyCqPOU72BZS_7w.png" /></figure><p><strong>6 — Upload </strong>the metadata file downloaded from <strong>Oracle Identity Federation</strong>, by clicking on <strong>Upload Metadata File</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/636/1*YyT1AHjCIutqZFs5MxdEVw.png" /></figure><p>7 — Next is to configure the <strong>Basic SAML Configuration</strong>.</p><p>On <strong>Sign-On URL, </strong>type the URL of your ORACLE Cloud Region:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*NLmb1vxnLLvS_xP2l39G0w.png" /></figure><p><strong>Save it.</strong></p><p>8 — On <strong>Attributes and Claim</strong>, we click on <strong>Unique User Identifier</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/852/1*L41ttGQK01GDvzidq2ipGw.png" /></figure><p><strong>Config should be as follow:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/651/1*Xfy5gNBFMspEQe8y54ZE1A.png" /></figure><p><strong>Save it.</strong></p><p>9 — The next step is to create a group Claim.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*CHW30tRare00zVEBnhJf0Q.png" /></figure><p><strong>Save it.</strong></p><p>Now we are ready to download the Federation Metadata which we are going to use in OCI, to establish the multicloud federation.</p><p>10 — Go back to <strong>Single Sign-on</strong>, download the Federation Metadata XML under <strong>SAML Signing Certificate.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*0i9oCPso8t869Zupbj8Btg.png" /></figure><p><strong>Assign the Administrators Group to access this Enterprise Aplication:</strong></p><p>1 — Click on Users and Groups and Add user/group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*TnfWGHrIm0lqVV1liaG3Xg.png" /></figure><p>2 — Go back to Azure Active Directory and copy the Administrator Group’s Object ID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1005/1*JOkSt3YncosQhCtW2kP6pg.png" /></figure><p>Azure Steps are completed.</p><p><strong>Oracle Cloud — New Federation:</strong></p><p>1 — Go to <a href="https://console.us-ashburn-1.oraclecloud.com/identity/federations">https://console.us-ashburn-1.oraclecloud.com/identity/federations</a></p><p>2 — Add Identity Provider:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*ef2M3yBDcDJ8flXP-hpWzQ.png" /></figure><p>3 — Next we give it a name, this name will be shown during the federation login, load the metadata downloaded from Azure AD Enterprise applications, and then click on Continue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/950/1*IhjcroJJhHXbj5m4emow_g.png" /></figure><p>4 — Next we have to map the groups created in Azure to an existing group in OCI.</p><p>Supposing we have already created a group called Administrators in OCI (the groups don’t need to match each other for this step), in the next screen, we paste the Azure Group’s Object ID and select the target OCI Group.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*iIgcjwujSfonSTAbYTEVvQ.png" /></figure><p>We could create several mapping according to the needs.</p><p>Oracle Steps are completed.</p><p><strong>Testing the Solution:</strong></p><p>1 — Navigate to<strong> </strong><a href="https://console.us-ashburn-1.oraclecloud.com/">https://console.us-ashburn-1.oraclecloud.com/</a>, type your Tenancy, and you will see the new Identity Provider as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*E5djteLIjGJX_W2saf_qAg.png" /></figure><p>2 — Click on Continue.</p><p>3 — Type in your Azure Credentials:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*Q50nSahO2ZWgUc041tIQ0g.png" /></figure><p>Sucessfully connected to OCI using Federation from Azure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*-1pJdlK7oeaYStCG7BxiIw.png" /></figure><p><strong>AD Hybrid Challenge</strong></p><p><strong>Description</strong>:<em> In this challenge the mission is to connect an on-premises Active Directory Instance to Azure AD. What is the tool to be used? How do we find the solution? How can sync the on-prem AD to Azure AD?</em></p><p><strong>Proposed Solution:</strong></p><p>Created a local VM using Virtual Box, Windows Server 2016 Datacenter edition (trial from Microsoft) with Active Directory (simple forest, just for the project proposal).</p><p><strong>VM AD Structure:</strong></p><p>Domain created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/304/1*Kx-dnKMM2CHIQVzUE8z5Pg.png" /></figure><p>Users and Groups we will use during sync:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DC1go8gWPlc0_wh5XhU6nw.png" /></figure><p><strong>Setting up Azure AD Connect:</strong></p><p>On Azure, we need to perform the following:</p><p>1 — Go to Active Directory Overview in Azure</p><p>2 — Click on <strong>Go to Azure AD Connect </strong>as per the following screenshot:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*J-SsZpn2-ihOTMpbsP2xPA.png" /></figure><p>3 — Download it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/989/1*jR2nZyj_G62M4Ibs9BE3yQ.png" /></figure><p><strong>On Win2016 VM instance:</strong></p><p>1 — Copy the AD Connect Installation file and run the installation on the VM.</p><p>2 — To start the AD Connect Config, click on the icon which has been created on the VM Desktop:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K4f_aW51BYXDyFPB7I83Sg.png" /></figure><p>3 — Click on Customize, don’t check anything and click on Install</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*5nhF9EqIn-CT44Ne0LLLdA.png" /></figure><p>4 — User Sign in, select Password Hash Sync.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*LbnXB47QNKD7MWpmZ2hxAQ.png" /></figure><p>5 — I’m using my new account created for Federation testing, remember this user is Azure Global Admin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*eAlfIneesves6ryQX2pVLg.png" /></figure><p>6 — Login to your account:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/1*zBtFvX2v44-K4MJcJ0gjbw.png" /></figure><p>7 — Click on Add Directory, keep the option to let Azure create a new user for the AD Forest Sync</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/1*_Dp6IAZNXMRxX_YDHtZc_A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/601/1*0Ph89FfOnkUF3ZmMQySK8Q.png" /></figure><p><strong>Note: </strong>This user on my example, AzureAdmin, must exist on AD, added to Administrators group, as well as to Enterprise Admins Group, otherwise it won’t work.</p><p>8 — Click on Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/876/1*kkwBPuUCtRzonHYi15EkJg.png" /></figure><p>9 — Check <strong>Continue withou matching all UPN… click on Next</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*RKGXM7SK0uZKeqwTQEf3fg.png" /></figure><p>10 — In this step, we are going to sync only those 2 users under <strong>AzureUsers Group. </strong>Click on Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/885/1*A0L4atBwGjKwUkDqfwZCiQ.png" /></figure><p>11 — Keep these options and click on Next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/884/1*OaAEAL8UmMV8RrA7G_-_zQ.png" /></figure><p>12 — Keep as it is and then next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/879/1*Lq5qfCyyz9YEgMsi85ayyw.png" /></figure><p>13 — Keep the selected options below and click on next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*QT3Uek5gzGcQpT61hmpyEQ.png" /></figure><p>14 — Select the following and next:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*ZErVYW0MrD7-wSM3GXRZDA.png" /></figure><p>15 — Click on install</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/882/1*rIOZzwpss2nCdDXkYd-FUQ.png" /></figure><p>16 — Wait until installation completion</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/881/1*ECYBrveWxY621bK07-ziuQ.png" /></figure><p>17 — Setup is complete:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/883/1*XA17SZMobPJpOpMfQGCSCQ.png" /></figure><p>18 — Go back to Azure Active Directory, and on Default Overview, we can see that Azure AD Connect is Enabled:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3o1XbONas-EFgvmcsPcKaw.png" /></figure><p>19 — Go to Users, we can see the users have been sync normally:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1013/1*1S_wfxJy1jnraWN-YZJJqA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/753/1*fSUabCHnb62jqj5P8tcppw.png" /></figure><p>Thank you!</p><p>Jose Ruy Borges</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ca8f1a8749f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>