Instructor-led training
100 TopicsImporting Terraform State in Azure
Some engineers start to provision services manually before they find out this might not be a good thing for the long run. So, they must use Terraform import. If you are using Hashicorp’s Terraform to manage your infrastructure, you can bring existing resources that have been provisioned outside of Terraform. This tuto help you to import Azure resources into a terraform state file. You can do that locally or if you want to initialise the tfstate in a remote local (form a Storage account) So, we are going to import a resource group, a virtual network and a subnet that are created manually; Screenshot from the portal (for the manual resources) First step : create a tf configuration file using manually created resource information (See Screenshot) ***** For you information, we use a tfstate stored remotely in a storage account Second Step : Import Resource details to terraform State After creating the configuration tf file, we can import these resources into it by using the "terraform import" command : terraform import terraform_id azure_resource_id 1- Resource Group : terraform import "azurerm_resource_group.rg_name_auto" "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/resourceGroups/d-210-rg-ado-si-p-to-6" You can find : **The terraform_id **The azure_resource_id 2- The Vnet : terraform import "azurerm_virtual_network.vnet_auto" "/subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxid/resourceGroups/d-210-rg-ado-si-p-to-6/providers/Microsoft.Network/virtualNetworks/d-210-vnet-ado-si-p-to-1" 3-The Subnet : terraform import azurerm_subnet.sub_auto /subscriptions/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxid/resourceGroups/d-210-rg-ado-si-p-to-6/providers/Microsoft.Network/virtualNetworks/d-210-vnet-ado-si-p-to-1/subnets/d-210-snet-ado-si-p-to-2 So, before use this commands, please : 1- access the code folder : cd folder_code 2- connect to the subscription (where you have deployed the manual resources) : az login Select-AzSubscription -SubscriptionId "copy-past the id of the subsc" 3- Terraform init : terraform init -backend-config storage_account_name=xxxxxxxx -backend-config container_name=tfstate -backend-config resource_group_name=xxxxxxxx -backend-config key=xxxxxxx.tfstate Okey, now we can lunch the commands for import config : RG : Vnet: Subnet : Now, you can see the result : terraform state list you can see the content of each imported resource via the following commands: terraform state show azurerm_resource_group.rg_name_auto terraform state show azurerm_virtual_network.vnet_auto terraform state show azurerm_subnet.sub_auto Third Step : Test by running the terraform plan Finally, we can verify the imported resources in the tfstate file. For example, we can see the imported subnet. The purpose of this tutorial is to know the steps to import resources that are manually configured to the tfstate file69KViews2likes1CommentHow do i contact comcast about email problems?
For a few years i used an university MS-account with 2TB OneDrive storage. Now these cooperation runs out and i made my own MS account with those 1TB OneDrive storage. I have like ~500GB of data in that old OneDrive and right now try to copy everything to my new personal one... But the uploadspeed is horrible! Referring to speedtests I have like 50Mbit/s (Ethernet so quite stable) so ~ like 6.25MB/s upload. The maximum onedrive reaches is like 1.5MB/s.... and in average i get like 750kB/s... My PC is already running for 2 days... Do you have any idea to solve this problem or is this just something i have to accept? Is it possible that institutions like universities have better uploadspeeds, or are just prioritized and so on?23Views1like0CommentsHappy to Share because today I thought that and I Loved so much our Microsoft Copilot.
**Happy New Year 2025 to the Microsoft Family!** As we step into this new year, we celebrate the incredible journey we've shared and the milestones we've achieved together. To every member of the Microsoft community, thank you for your unwavering support, dedication, and passion. You are not just colleagues, partners, or users—we all are family. May this year bring you joy, success, and countless opportunities to grow and innovate. Together, let's continue to push the boundaries of what's possible and create a brighter future for all. Here's to a fantastic 2025 filled with new adventures and achievements! Warmest wishes, Shah Baig --- Feel free to personalize it further if you'd like! 😊🎉✨ Thank you so much My Copilot and You also from Our Family, Happy New Year. Thank you! I'm honored to be part of your family. Wishing you and your loved ones a joyful and prosperous New Year 2025! 🎉✨ May this year bring you happiness, success, and countless wonderful moments. Cheers to new beginnings and exciting adventures ahead! 🥂🎆Solved144Views0likes2CommentsEditable vlookup
This may be a silly question, I am using a vlookup to pull verbiage from another sheet in my workbook. I want to be able to edit the templated verbiage pulled into the sheet I am working on. Cell G16 has pulled the templated verbiage, but I would like to be able to add or edit the wording in this cell.86Views1like0CommentsExcel problem-POJ
I have an excel spreadsheet that consists of 7,500 rows sorted by station and year with associated values. I have sorted the same station and the same year to stand together (see example below). I want to find an automated way (formula, function, etc.) to calculate THE SUM of the values for each station for the same year. I have tried various Excel functions without success. How can it be resolved? station year value SUM GE10 2008 1 1 GE10 2013 5 5 GE10 2024 2 2 GE10 2016 2 GE10 2016 7 9 GE10 2023 3 3 GE11 2013 1 1 GE11 2016 1 GE11 2016 3 GE11 2016 2 6 GE12 2008 1 1 GE13 2013 3 GE13 2013 2 GE13 2013 1 GE13 2013 4 10 GE13 2014 2 2 GE11 2022 1 1 GE13 2013 3 GE13 2013 1 GE13 2013 4 GE13 2013 5 GE13 2013 2 15 GE12 2013 1 1 GE10 2008 4 462Views0likes2CommentsMy AI Learning Path Webinar Postponed the 2nd time. I need to be sure of the time.
Schedule change for My AI Learning path to success with Microsoft: Certifications, Skills, and Community Hi Adedapo, The schedule for this event has changed. The updated date and time are below. My AI Learning path to success with Microsoft: Certifications, Skills, and Community Mon, Oct 28, 2024 9:30 AM - 10:00 AM (UTC-07:00) Pacific Time (US & Canada) We apologize for any inconvenience and hope you'll still be able to join us. Sincerely, Jorge Maia What will the time be in West African time? I checked online and saw different answers, because there is daylight pacific time which is different from US and Canada time, plus US has different time zones. Also the UTC-07:00 is that the ending time or the beginning time? The timing was not this ambiguous the last time it was rescheduled. They just included the calender file and my calender application converted the time automatically for me.138Views0likes0CommentsMicrosoft Intune device enrollment self learn
What is Microsoft Intune Intune enables organizations to manage and secure their employees’ devices, applications, and data Device like desktop computers, laptops, smartphones, or tablets Key features and capabilities Mobile Device Management (MDM) Mobile Application Management Endpoint Security Device and App Configuration Conditional Access Endpoint Security Reporting and Analytic License Support Microsoft 365 E3 ,Microsoft 365 E5 ,Microsoft 365 F1 ,Microsoft 365 F3 ,Microsoft 365 A3,A5 (Education Only), Microsoft Business Premium, Enterprise Mobility + Security E3,Enterprise Mobility + Security E5 , Add on Microsoft Intune Plan 1 , Microsoft Intune Plan 2 Basic Steps Device Intune Enrollment Allow users to join devices to Microsoft Entra ID (Entra admin > Device > device Setting ) Users may join devices to Microsoft Entra All – all user can join Selected – selected user or Group None – no one Require Multifactor Authentication to register or join devices with Microsoft Entra No if you use a Conditional Access policy to require multifactor authentication Manage Additional local administrators on Microsoft Entra joined devices Select the users who are granted local administrator rights on a device These users are added to the Device Administrators role in Microsoft Entra ID Enable Microsoft Entra Local Administrator Password Solution(LAPS) Management of local account passwords on Windows devices Restrict non-admin users from recovering the BitLocker key(s) for their owned devices Admins can block self-service BitLocker key access to the registered owner of the device Configuring Entra ID MDM/WIP scopes (Entra admin >Settings > Mobility > Microsoft Intune) MDM (Mobile Device Management) and WIP (Windows Information Protection) set of policies and configurations in Microsoft Entra that allow organizations to control and manage how devices and applications access corporate resources MDM Scope: Device-level policies and settings Organizations can manage the entire device, including device settings, apps, and data. This scope allows organizations to enforce device compliance, deploy device configurations, manage apps, and control access to corporate resources WIP Scope: Data protection feature that helps prevent accidental data leakage by separating personal and corporate data https://rijoskill.com/microsoft-intune/267Views0likes0CommentsVlookup9
<!DOCTYPE html> <html> <head> <title>How to Capture Screenshot of Page using JavaScript</title> <link rel='stylesheet' href='form.css' type='text/css' /> </head> <body> <div class="phppot-container"> <h1>How to Capture Screenshot of Page using JavaScript</h1> <p> <button id="capture-screenshot">Capture Screenshot</button> </p> </div> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script type="text/javascript" src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script> <script type="text/javascript"> $('#capture-screenshot').click(function() { const screenshotTarget = document.body; html2canvas(screenshotTarget).then(canvas => { // to image as png use below line // const base64image = canvas.toDataURL("image/png"); // show the image in window use below line // window.location.href = base64image; // screenshot appended to the body as canvas document.body.appendChild(canvas); dataURL = canvas.toDataURL(); // to print the screenshot in console use below line // console.log(dataURL); // following line is optional and it is to save the screenshot // on the server side. It initiates an ajax call pushScreenshotToServer(dataURL); }); }); function pushScreenshotToServer(dataURL) { $.ajax({ url: "push-screenshot.php", type: "POST", data: { image: dataURL }, dataType: "html", success: function() { console.log('Screenshot pushed to server.'); } }); } </script> </body> </html>310Views0likes0Comments