<?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 Fredrickogonda on Medium]]></title>
        <description><![CDATA[Stories by Fredrickogonda on Medium]]></description>
        <link>https://medium.com/@fredrickogonda?source=rss-10ed5350fe6d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IwKQe-v8tJCZADW5.jpg</url>
            <title>Stories by Fredrickogonda on Medium</title>
            <link>https://medium.com/@fredrickogonda?source=rss-10ed5350fe6d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 02:32:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fredrickogonda/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[Lab 01: Role-Based Access Control-Microsoft AZ500-Azure Security Technologies.]]></title>
            <link>https://medium.com/@fredrickogonda/lab-01-role-based-access-control-microsoft-az500-azure-security-technologies-539d3df6bd2a?source=rss-10ed5350fe6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/539d3df6bd2a</guid>
            <dc:creator><![CDATA[Fredrickogonda]]></dc:creator>
            <pubDate>Thu, 17 Nov 2022 01:40:49 GMT</pubDate>
            <atom:updated>2022-11-17T01:47:57.926Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Lab 01: Role-Based Access Control-Microsoft AZ500-Azure Security Technologies.</strong></p><p><strong>Lab scenario</strong></p><p>You have been asked to create a proof of concept showing how Azure users and groups are created. Also, how role-based access control is used to assign roles to groups. Specifically, you need to:</p><ul><li>Create a Senior Admins group containing the user account of Joseph Price as its member.</li><li>Create a Junior Admins group containing the user account of Isabel Garcia as its member.</li><li>Create a Service Desk group containing the user account of Dylan Williams as its member.</li><li>Assign the Virtual Machine Contributor role to the Service Desk group.</li></ul><p><strong>Lab objectives</strong></p><p>In this lab, you will complete the following exercises:</p><ul><li>Exercise 1: Create the Senior Admins group with the user account Joseph Price as its member (the Azure portal).</li><li>Exercise 2: Create the Junior Admins group with the user account Isabel Garcia as its member (PowerShell).</li><li>Exercise 3: Create the Service Desk group with the user Dylan Williams as its member (Azure CLI).</li><li>Exercise 4: Assign the Virtual Machine Contributor role to the Service Desk group.</li></ul><h3>Role-Based Access Control architecture diagram</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*se2J01JboZsFBZIlcjI10A.png" /><figcaption>Architecture diagram for the lab.</figcaption></figure><h3>Exercise 1: Create the Senior Admins group with the user account Joseph Price as its member.</h3><h4>Estimated timing: 10 minutes</h4><p>In this exercise, you will complete the following tasks:</p><ul><li>Task 1: Use the Azure portal to create a user account for Joseph Price.</li><li>Task 2: Use the Azure portal to create a Senior Admins group and add the user account of Joseph Price to the group.</li></ul><h4>Task 1: Use the Azure portal to create a user account for Joseph Price</h4><p>In this task, you will create a user account for Joseph Price.</p><p>I Created a new user account with username <strong>Joseph</strong> and name <strong>Joseph Price</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/516/1*_StQHEEZtSPQKz0JvHZ-sg.png" /><figcaption>task complete!</figcaption></figure><h4>Task2: Use the Azure portal to create a Senior Admins group and add the user account of Joseph Price to the group.</h4><p>In this task, you will create the <em>Senior Admins</em> group, add the user account of Joseph Price to the group, and configure it as the group owner.</p><p>Created security group with <strong>Joseph Price</strong> as <strong>a member</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*3qplCfjbnFc_FayKlVnudg.png" /></figure><h3>Exercise 2: Create a Junior Admins group containing the user account of Isabel Garcia as its member.</h3><p>In this exercise, you will complete the following tasks:</p><ul><li>Task 1: Use PowerShell to create a user account for Isabel Garcia.</li><li>Task 2: Use PowerShell to create the Junior Admins group and add the user account of Isabel Garcia to the group.</li></ul><h4>Task 1: Use PowerShell to create a user account for Isabel Garcia.</h4><p>In this task, you will create a user account for Isabel Garcia by using PowerShell.</p><ol><li>Created a password profile using the command</li></ol><p>$passwordProfile = New-Object -TypeName Microsoft.Open.AzureAD.Model.PasswordProfile</p><p>2. I ran the following command to set up password value within the password object</p><p>$passwordProfile.Password = “Pa55w.rd1234”</p><p>3. I ran the following command to connect to Active Directory</p><p><strong>Connect-AzureAD</strong></p><p><strong>4.</strong> <strong>I ran the command to get the name of my Azure AD tenant </strong>$domainName = ((Get-AzureAdTenantDetail).VerifiedDomains)[0].Name</p><p><strong>5.</strong> <strong>I ran the following code </strong>to create a user account for <strong>Isabel Garcia:</strong></p><p>New-AzureADUser -DisplayName ‘Isabel Garcia’ -PasswordProfile $passwordProfile -UserPrincipalName “Isabel@$domainName” -AccountEnabled $true -MailNickName ‘Isabel’</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*2ya64ig_cNKR2RAKKcmBCQ.png" /><figcaption>account created by the code run in shell</figcaption></figure><p>To check the AD users, I ran the following in PowerShell pane,</p><p>Get-AzureADUser</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ZoAffOVe4ofiFdSk8lDeDA.png" /></figure><h4>Task2: Use PowerShell to create the Junior Admins group and add the user account of Isabel Garcia to the group.</h4><p>In this task, you will create the Junior Admins group and add the user account of Isabel Garcia to the group by using PowerShell.</p><p>I used the following command to create a security group name <strong>Junior Admins</strong></p><p><em>New-AzureADGroup -DisplayName ‘Junior Admins’ -MailEnabled $false -SecurityEnabled $true -MailNickName JuniorAdmins.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/535/1*elYjUgyFNLpWAgn_Yxv_Sg.png" /></figure><p>1. I ran the following command to list the groups created so far,</p><p>Get-AzureADGroup</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/555/1*JqlPQohmiKvW0HvXDdOYTw.png" /><figcaption>command output of groups created</figcaption></figure><p>2. Ran the following to obtain a reference to the user account of Isabel Garcia:</p><p>$user = Get-AzureADUser -Filter “MailNickName eq ‘Isabel’”</p><p>3. Ran the following to add the user account of Isabel to the Junior Admins group:</p><p>Add-AzADGroupMember -MemberUserPrincipalName $user.userPrincipalName -TargetGroupDisplayName “Junior Admins”</p><p>4. I ran the following to verify that the Junior Admins group contains the user account of Isabel: Get-AzADGroupMember -GroupDisplayName “Junior Admins”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*js-D7L-c2ave49HSf8VQRg.png" /><figcaption>Garcia added successfully!</figcaption></figure><h3>Exercise 3: Create a Service Desk group containing the user account of Dylan Williams as its member.</h3><p>In this exercise, you will complete the following tasks:</p><ul><li>Task 1: Use Azure CLI to create a user account for Dylan Williams.</li><li>Task 2: Use Azure CLI to create the Service Desk group and add the user account of Dylan to the group.</li></ul><h4>Task 1: Use Azure CLI to create a user account for Dylan Williams.</h4><p>In this task, you will create a user account for Dylan Williams.</p><ol><li>I ran the following in bashshell to identify the name of your Azure AD tenant</li></ol><p>DOMAINNAME=$(az ad signed-in-user show — query ‘userPrincipalName’ | cut -d ‘@’ -f 2 | sed ‘s/\”//’)</p><p>2. In the Bash session within the Cloud Shell pane, ran the following to create a user, Dylan Williams. I used the unique domain name I created.</p><p>az ad user create — display-name “Dylan Williams” — password “Pa55w.rd1234” — user-principal-name Dylan@$DOMAINNAME</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Mb_LOrMXEte1fh_s54M7EQ.png" /></figure><p>3. In the Bash session within the Cloud Shell pane, run the following to list Azure AD user accounts</p><p>az ad user list — output table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*3rqXxiSb_LQwyei_4asJ-A.png" /></figure><h4>Task 2: Use Azure CLI to create the Service Desk group and add the user account of Dylan to the group.</h4><p>In this task, you will create the Service Desk group and assign Dylan to the group.</p><p>1. In the same Bash session within the Cloud Shell pane, ran the following to create a new security group named Service Desk.</p><p>az ad group create — display-name “Service Desk” — mail-nickname “ServiceDesk”</p><p>2. In the Bash session within the Cloud Shell pane, ran the following to list the Azure AD groups (the list should include Service Desk, Senior Admins, and Junior Admins groups):</p><p>az ad group list -o table</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*7GyWp6J53EJjttDER7O-RQ.png" /></figure><p>3. In the Bash session within the Cloud Shell pane, run the following to obtain a reference to the user account of Dylan Williams:</p><p>USER=$(az ad user list — filter “displayname eq ‘Dylan Williams’”)</p><p>4. In the Bash session within the Cloud Shell pane, run the following to obtain the objectId property of the user account of Dylan Williams:</p><p>OBJECTID=$(echo $USER | jq ‘.[].id’ | tr -d ‘“‘)</p><p>5. In the Bash session within the Cloud Shell pane, ran the following to add the user account of Dylan to the Service Desk group:</p><p>az ad group member add — group “Service Desk” — member-id $OBJECTID</p><p>6. In the Bash session within the Cloud Shell pane, ran the following to list members of the Service Desk group and verify that it includes the user account of Dylan:</p><p>az ad group member list — group “Service Desk”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*F8CkpWY9uXACHV5FEFOSHw.png" /></figure><h3>Exercise 4: Assign the Virtual Machine Contributor role to the Service Desk group.</h3><p>In this exercise, you will complete the following tasks:</p><ul><li>Task 1: Create a resource group.</li><li>Task 2: Assign the Service Desk Virtual Machine Contributor permissions to the resource group.</li></ul><h4>Task 1: Create a resource group</h4><p>I Created resource group <strong>AZ500Lab01</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/439/1*nWo6vvwRyC7TURfjDD2XzA.png" /></figure><h4>Task 2: Assign the Service Desk Virtual Machine Contributor permissions.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/422/1*9pIL1OcBcYC82DQXxmc02w.png" /></figure><p><strong>All tasks complete!</strong></p><p><strong>Used the following command in the CloudShell to remove the created Resource Group</strong></p><p>Remove-AzResourceGroup -Name “AZ500LAB01” -Force -AsJob</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*XPUQEzYel84yRNhmhzSBCg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=539d3df6bd2a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subscriber data and identity theft — A Kenyan Case Study]]></title>
            <link>https://medium.com/@fredrickogonda/subscriber-data-and-identity-theft-a-kenyan-case-study-7b09c006e915?source=rss-10ed5350fe6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/7b09c006e915</guid>
            <dc:creator><![CDATA[Fredrickogonda]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 15:32:51 GMT</pubDate>
            <atom:updated>2022-11-08T15:32:51.158Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Subscriber data and identity theft — A Kenyan Case Study</strong></h3><p><strong>Identity theft </strong>is crime in which an attacker uses fraud or deception to obtain personal or sensitive information from a victim and misuses it to act in the victim’s name, usually motivated by their own economic gain (eset.com)</p><p>Witnessed two active attacks on two different Safaricom subscribers, and, from that experience, I can tell everyone to keenly follow this walkthrough.</p><p>The first victim was called from a <strong>personal line</strong>; claiming to be a Safaricom customer care agent. What caught my attention is how unsuspecting the victim was, to an extent of dialing codes as directed by the attackers; who wanted him to dial some code to check <em>fuliza</em> limit. So many questions about sim registration, have led to identity theft before. Fortunately, the victim did not have some money in their accounts, but, trust me, suppose he did, then your guess could be as good as mine. A classic case of social engineering, very common in the Kenyan Cyberspace.</p><p><strong>The second attack led to financial loss, and, this, will form better part of my analysis.</strong></p><p>1. The victim comes to an IT desk, weak and tired, people start grouping around her, informing her of the messages they are receiving from WhatsApp messenger.</p><p>2. She hands over her phone to me, requesting for help to connect to <em>Wi-Fi. What catches my attention is that, by that time, her phone had completely restored to default settings. I thought she initiated the process and therefore went ahead to help her set up new security features.</em></p><p>3. The victim wanted to get connected to WhatsApp to pass a message to all her contacts that the messages doing rounds, asking for <em>urgent</em> financial assistance are malicious. I therefore decide to log her into Playstore<em> </em>which<em> </em>was unsuccessful as she had forgotten her password.</p><p>4. We click forgot password as usual to reset password. As a security mechanism, Gmail sends a push notification for the trusted device authorization. Before I got curious, the process had failed! Looking at the failure message, someone had tapped NO, denying her access to the account. I asked her if she had the phone, <strong>Oppo CPH2185</strong>. She protests that she had not used any other device apart from her <strong>Itel model</strong>.</p><p>5. I therefore use another mechanism for authentication and, we succeed. I change password, recovery email and phone number. A GMAIL security alert notification pops up that some suspicious activity had happened in the account. This time, I am more interested to see every detail.</p><p>6. As I check the devices that had connected, boom!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/436/1*mipRF8d5G0wupKyd64JhyQ.png" /><figcaption>capture 1: mail activity log</figcaption></figure><p>7. I get interested in the Oppo CPH2185 and here, I get device IMEI, hereby masked for security reasons.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/377/1*uhANEhhz-Cv8zvtjy64zRA.png" /><figcaption>Capture 2: Attacker device IMEI</figcaption></figure><p>8. Looking at the activity log, it was evident the attacker device had initiated the device erasure and reset. This is the time the device initiated system changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/456/1*BUNuDnfOvL_jfh5xMwme4g.png" /><figcaption>capture 3: Attacker initiates victim phone reset.</figcaption></figure><p>9. The two timelines highlighted to compare with when the real event occurred on the victim’s phone as attached below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*xsFdSakXNulmWddIY2UvlA.png" /><figcaption>capture 4: actual victim phone reset.</figcaption></figure><p>Keenly looking at the timelines, clearly point to the initiator of these events.</p><p>9. The main platform of messaging was WhatsApp. The attacker registered with the victim’s profile picture to be trusted by her contacts. A target engaged the attacker and got involved in some interesting conversation as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/344/1*XNo7seJSkp4Hhf42l4krWA.png" /><figcaption>capture 5: WhatsApp con messaging</figcaption></figure><p>Circled in blue(in capture 5) is victim’s picture used to deceive people on WhatsApp.</p><p><strong>Results?</strong></p><p>· The victim is emotionally distressed.</p><p>· People sent money through this line 0724xxx673, attacker claiming that was the victim’s alternative MPESA account number.</p><p>· Data and privacy violation. The attacker compromised the victim’s GMAIL account, got her picture, changed her password and recovery phone number, owned the account and synchronized contacts to perform the attack.</p><p>· Data loss. The victim lost a lot of her personal data and accounts when the phone was restored to factory default settings.</p><p>Takeaways<strong> and summary</strong></p><p>1) Safaricom PLC security response team is either non-existent, non-committal on customer issues or completely unaware. We reported the matter to Safaricom on SMS code 333, but, they are yet to respond.</p><p>2) The victim’s password was weak: <em>her names!</em></p><p>3) The victim did not have two factor authentication on her Gmail account enabled, I helped her turn it on.</p><p>4) The victim’s password had not been changed since creation of her Gmail account.</p><p>5) A cybersecurity incident response team is necessary to avert financial crimes, the victim looked helpless.</p><p>6) Awareness training for the masses is necessary to enable people understand current cybercrimes and necessary counter-measures.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7b09c006e915" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configure and manage Azure Virtual Machines,]]></title>
            <link>https://medium.com/@fredrickogonda/configure-and-manage-azure-virtual-machines-552f6bfc4657?source=rss-10ed5350fe6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/552f6bfc4657</guid>
            <dc:creator><![CDATA[Fredrickogonda]]></dc:creator>
            <pubDate>Mon, 07 Nov 2022 15:39:25 GMT</pubDate>
            <atom:updated>2022-11-07T16:02:48.529Z</atom:updated>
            <content:encoded><![CDATA[<p>lab walkthrough:</p><h3>Lab scenario:</h3><p>You were tasked with identifying different options for deploying and configuring Azure virtual machines. First, you need to determine different compute and storage resiliency and scalability options you can implement when using Azure virtual machines. Next, you need to investigate compute and storage resiliency and scalability options that are available when using Azure virtual machine scale sets. You also want to explore the ability to automatically configure virtual machines and virtual machine scale sets by using the Azure Virtual Machine Custom Script extension.</p><p><strong>Objectives</strong></p><p>In this lab, you will:</p><p>Task 1: Deploy zone-resilient Azure virtual machines by using the Azure portal and an Azure Resource Manager template</p><p>Task 2: Configure Azure virtual machines by using virtual machine extensions</p><p>Task 3: Scale compute and storage for Azure virtual machines</p><p>Task 4: Register the Microsoft.Insights and Microsoft.AlertsManagement resource providers</p><p>Task 5: Deploy zone-resilient Azure virtual machine scale sets by using the Azure portal</p><p>Task 6: Configure Azure virtual machine scale sets by using virtual machine extensions</p><p>Task 7: Scale compute and storage for Azure virtual machine scale sets (optional)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*gQCIzyZ788GUIoR8uJmjBw.png" /><figcaption>Architecture Diagram</figcaption></figure><p>The first step in this exercise, I logged in to Azure Portal, and, directly accessed Azure Homepage as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*gT_HpV2vBhfdqDYk3ZOGRg.png" /><figcaption>Azure Homepage</figcaption></figure><p><strong>Step 1: Create Virtual Machines for subnet0</strong></p><p>Step 1.1: create VM0 manually.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/333/1*JD0bk0f2XjK214ZaEYcqcA.png" /><figcaption>virtual machine options</figcaption></figure><p>On the basic settings pane that pops up, I created a new resource group, created name for the VM, zone as zone 1, size and image. The rest left with default settings. Also blocked all inbound ports.</p><p><strong>Create Disks for the VM Operating System</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/602/1*HLR1MmsIC5bFUsMWA64-8w.png" /></figure><p>Next is networking-define network connectivity for the VM by configuring Network Interface Card (NIC)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/618/1*07saF8RjNLE6NXV6oXqCOQ.png" /><figcaption>virtual network options</figcaption></figure><p>From networking, I moved to management options and chose manual updates for patch management.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*hGn-sfAKXj9QnmCr6xyOkA.png" /></figure><p>After management, I configured monitoring options. Chose boot diagnostics with custom storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*RHTpzlYI_JIjrUWeZCWzeA.png" /></figure><p>My account in this stage is complete with costs charged on my services shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/449/1*K3quXzKjj0Ut6OPiiq9gBw.png" /></figure><p>Task1.2 <strong>Custom deployment and creation of vm1</strong></p><p>After Successful creation of vm0, I created VM1 out of custom template using the same parameters as those of VM0 but changed the zone to zone 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*pHh0Mcizi9WgVDu4LRj9BA.png" /></figure><h4>Task 2: Configure Azure virtual machines by using virtual machine extensions</h4><p>In this task, I created a container named <strong>scripts </strong>and uploaded the IIS server scripts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/379/1*9hm8DeT0lVYVXjVwWf-QKQ.png" /></figure><p>I successfully configured the custom script extension and created it inside vm0 container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*zgVQTros8p6yRJhytQssWg.png" /></figure><p>I created another extension from custom script template and deployed in vm1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*G6cxToqS9-lvbbFr9nGo_A.png" /></figure><p>To verify that the Custom Script extension-based configuration was successful on vm1 I ran a command in vm1 on PowerShell to access the website hosted on VM0 returned a successful output.</p><p>Below is the script I used to invoke the web request</p><p><em>Invoke-WebRequest -URI </em><a href="http://10.80.0.4/"><em>http://10.80.0.4</em></a><em> –UseBasicParsing</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*fCtv1hQsvS-Bvs-_fPk7Pg.png" /><figcaption>output</figcaption></figure><p>To verify that the Custom Script extension-based configuration was successful on vm0 I ran a command in VM0 on PowerShell to access the website hosted on VM1 returned a successful output. Below is the script I used to invoke the web request.</p><p><em>Invoke-WebRequest -URI http://10.80.0.5 –UseBasicParsing</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*4drV7pBRSKjXcnu2SPrinQ.png" /><figcaption>output</figcaption></figure><h4>Task 3: Scale compute and storage for Azure virtual machines</h4><p>In this task you will scale compute for Azure virtual machines by changing their size and scale their storage by attaching and configuring their data disks.</p><p>In this task I am scaling my vm size from <strong>Standard DS2_v3 </strong>to <strong>Standard DS1_v2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*z8qwJ_vlCxFxT_BtWkOnnw.png" /></figure><p>Next created two disks, with the same parameters, data disk0 and data disk1 and merged them to form a partition named Z as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Ma8NVQTbJ034TnOb6TpyCA.png" /><figcaption>command output</figcaption></figure><p>For the next section, I used the following scripts to automate creation of two managed disks in VM1</p><p>a. Resize disk from Standard_DS2_V3 to Standard_DS1_V2 as shown</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/582/1*IBK1fhL6IDUaQHAk64YFhQ.png" /><figcaption>editable template</figcaption></figure><p>b. Create two disks with default parameters exactly as done in VM0</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ymCiW92HFYTi5W_qoE-rYg.png" /><figcaption>editable template</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*chgNKpgLXZ1t_SLLF7Xixg.png" /></figure><p>c. Finally, created drive Z from the two disks</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*RPqCzjtJ3v8L-eS0iZ2SxQ.png" /><figcaption>command output</figcaption></figure><p>The script that I used to automate creation the two managed disks drive Z</p><p><em>New-StoragePool -FriendlyName storagepool1 -StorageSubsystemFriendlyName “Windows Storage*” -PhysicalDisks (Get-PhysicalDisk -CanPool $true)</em></p><p><em>New-VirtualDisk -StoragePoolFriendlyName storagepool1 -FriendlyName virtualdisk1 -Size 2046GB -ResiliencySettingName Simple -ProvisioningType Fixed</em></p><p><em>Initialize-Disk -VirtualDisk (Get-VirtualDisk -FriendlyName virtualdisk1)</em></p><p><em>New-Partition -DiskNumber 4 -UseMaximumSize -DriveLetter Z</em></p><h4>Task 4: Register the Microsoft.Insights and Microsoft.AlertsManagement resource providers</h4><p>I used the following scripts to register Microsoft insights in CloudShell,</p><p><em>Register-AzResourceProvider -ProviderNamespace Microsoft.Insights</em></p><p><em>Register-AzResourceProvider -ProviderNamespace Microsoft.AlertsManagement</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*IG-d6mLKbmP0tZkdBufL1A.png" /><figcaption>command output</figcaption></figure><h4>Task 5: Deploy zone-resilient Azure virtual machine scale sets by using the Azure portal</h4><p>In this task, you will deploy Azure virtual machine scale set across availability zones by using the Azure portal.</p><p>i. Started by creating network security group inbound rules</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Qm6isHeW3NsjVUiNGpLuEQ.png" /><figcaption>manual setting</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*OC0kEZZuN2-UM3vX36_1LA.png" /></figure><h4>Task 6: Configure Azure virtual machine scale sets by using virtual machine extensions</h4><p>I configured virtual machine scale sets and got a public ip</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*F13VM3MpvVwXMFbgMUjf2Q.png" /></figure><p>On navigating to my browser, I verified that the public ip is reachable and I can view the vm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/360/1*A9n7uTVpGJkmu_SRGuzW7Q.png" /></figure><h4>Task 7: Scale compute and storage for Azure virtual machine scale sets</h4><p>In this task, you will change the size of virtual machine scale set instances, configure their autoscaling settings, and attach disks to them.</p><p>After successful configuration of instances, I confirm that both of them are in different zones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*ICNccgUdH1J9XUUI1f4SLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*CjkdqYP9BQ85eCc5Fqm8Ig.png" /></figure><p>I ran a PowerShell script to create a new instance which was successfully added on top of the already available two instances. The new instance assigned zone 3 as shown.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*nASO5Ki1GtXXMBJeK1eqZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*wCTBQDHJUqBRo1MKFDMeEg.png" /></figure><p>Finally, I remove the resources after successful completion of tasks</p><p>PowerShell script</p><p><em>rm ~\az104–08*</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*l3tWehwkN8YuLPd7hvzcqw.png" /></figure><p>Confirm all the lab resources</p><p><em>Get-AzResourceGroup -Name ‘az104–08*’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*knVXQQo5B-xggFXbSSwLFA.png" /><figcaption>output</figcaption></figure><p>Delete everything created in this lab, command;</p><p><em>Get-AzResourceGroup -Name ‘az104–08*’ | Remove-AzResourceGroup -Force –AsJob</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/624/1*Wb_6lfU0Ollwr0YA3tifdQ.png" /><figcaption>output</figcaption></figure><p>Confirm that everything is deleted</p><p><em>Get-AzResourceGroup -Name ‘az104–08*’</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/1*E3LlOoFjoxa-8bVdKvci6A.png" /></figure><p>Yes! No resource group remaining, everything successfully deleted and task completed! Thanks to Microsoft Azure for the sponsorship.</p><p><strong>Lab reference manual:</strong></p><p><a href="https://microsoftlearning.github.io/AZ-104-MicrosoftAzureAdministrator/Instructions/Labs/LAB_08-Manage_Virtual_Machines.html">AZ-104-MicrosoftAzureAdministrator</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=552f6bfc4657" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to tcpdump essentials.]]></title>
            <link>https://medium.com/@fredrickogonda/introduction-to-tcpdump-essentials-4c2acdf61d76?source=rss-10ed5350fe6d------2</link>
            <guid isPermaLink="false">https://medium.com/p/4c2acdf61d76</guid>
            <dc:creator><![CDATA[Fredrickogonda]]></dc:creator>
            <pubDate>Sun, 11 Sep 2022 11:13:37 GMT</pubDate>
            <atom:updated>2022-09-11T11:13:37.225Z</atom:updated>
            <content:encoded><![CDATA[<p>I have been going through <strong>tcpdump</strong> packet capture and analysis essentials at HTB Academy and I am excited to share this with beginners in this forum, just how I was able to solve a few problems.</p><h4>Q1. If I wish to start a capture without hostname resolution, verbose output, showing contents in ASCII and hex, and grab the first 100 packets; what are the switches used? please answer in the order the switches are asked for in the question.</h4><p>Ans: -nvXc 100</p><h4><strong>Q2. Given the capture file at /tmp/capture.pcap, what tcpdump command will enable you to read from the capture and show the output contents in Hex and ASCII? (Please use best practices when using switches)</strong></h4><p>Ans: sudo tcpdump -Xr /tmp/capture.pcap</p><h4><strong>Q3. What TCPDump switch will increase the verbosity of our output? ( Include the — with the proper switch )</strong></h4><p>Ans: -v</p><h4>Q4. What built in terminal help reference can tell us more about TCPDump?</h4><p>Ans: man</p><h4>Q5.What TCPDump switch will let me write my output to a file?</h4><p>Ans: -w</p><p>I have shared this post, not because the questions are too technical, but, rather, to help beginners understand how following instructions and understanding the key terms in questions asked, may be of importance in passing this module.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c2acdf61d76" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>