Learn Terraform with Azure by Building a Dev Environment - Full Course for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 28 ก.ย. 2024

ความคิดเห็น • 144

  • @nikhillotia
    @nikhillotia 2 ปีที่แล้ว +27

    Great video covering all the small details! I noticed one thing where explanation of VM code is missed is custom data section.

  • @Angelslo690
    @Angelslo690 6 หลายเดือนก่อน +1

    What a calm and soothing voice, you are a born teacher. Amazing video and lots to learn from you. God bless.

  • @AdrianVrabie
    @AdrianVrabie ปีที่แล้ว +31

    from minute 53, creating an ssh-pair! Where is the VM creating?? it's like the most important stuff and it's missing :(

    • @dusty2445
      @dusty2445 9 หลายเดือนก่อน +2

      The SSH key is being created on the host that the terraform is being run from, not in the Azure VM

    • @walterallen1331
      @walterallen1331 2 หลายเดือนก่อน

      I was literally about to comment the same thing and then I seen your comment lol.

  • @Shravan_Reddy
    @Shravan_Reddy 11 หลายเดือนก่อน +1

    Nice video with good explanation all through. Just one correction, around 34th minute regarding 'address_prefixes' we cannot provide multiple CIDR range here. The address_prefixes argument in the Terraform azurerm_subnet resource is used to specify the CIDR range for the subnet. However, it can only take one CIDR range. The reason why it is called address_prefixes (plural) is because it is compatible with the Azure Resource Manager API, which allows you to specify multiple CIDR ranges for a subnet. However, this feature is not yet supported by the Terraform AzureRM provider.
    If you need to use multiple CIDR ranges in your virtual network, you can create multiple subnets. Each subnet can have its own CIDR range. You can then connect the subnets to each other using virtual network peering.

  • @an69
    @an69 2 ปีที่แล้ว +10

    Updating my resume immediately

  • @jens-rainerwiese5506
    @jens-rainerwiese5506 ปีที่แล้ว +21

    I could not find the moment when the whole linux vm was added, you just jumped over to the SSH Key generation. Was this part of the video before? After "0:47:40 " there is suddly a linux-vm on th screen which never was created before :-( please check if this video is not missing this part.

    • @sanidhiya7718
      @sanidhiya7718 11 หลายเดือนก่อน +1

      Yes same

    • @lecardinal1
      @lecardinal1 9 หลายเดือนก่อน

      agree. so after 47mins should we try to invent by ourself what is missing ?

  • @matthewdaniels7103
    @matthewdaniels7103 2 ปีที่แล้ว +2

    Good explaining .tf resources plus typing out the objects helps with beginners. Great job!

  • @ChanceMinus
    @ChanceMinus 6 หลายเดือนก่อน

    Invaluable info. Thank you.

  • @gokhanyildirim4162
    @gokhanyildirim4162 ปีที่แล้ว

    Another Great Job :)

  • @bruckurgessamulissa1072
    @bruckurgessamulissa1072 ปีที่แล้ว

    Thank you so much !!

  • @DodoDodo-eo2su
    @DodoDodo-eo2su 10 หลายเดือนก่อน +1

    Why would you just skip the part where you have entered the code for the VM?

  • @rikunjsindhwad7597
    @rikunjsindhwad7597 ปีที่แล้ว

    Well Explained 🙂🙂

  • @murthypothukuchi6781
    @murthypothukuchi6781 ปีที่แล้ว +1

    Where can I find the course resource files? Not seeing customdata.tpl contents in here.

  • @syednadeembe
    @syednadeembe 6 หลายเดือนก่อน

    Unfortunatly you skipped the entire vm creation part and directly jumpped into the ssh key gen part

  • @vivahernando1
    @vivahernando1 2 ปีที่แล้ว +1

    Is there a full azure-terraform course we can purchase?

  • @AleksandarIvanov69
    @AleksandarIvanov69 2 ปีที่แล้ว +2

    Not how you pronounce Azure (in intro), but looks really interesting 😊

    • @MorethanCertified
      @MorethanCertified 2 ปีที่แล้ว

      Yeah, I get that a lot. Blame it on my Southern American roots.

  • @PriestApostate
    @PriestApostate 10 หลายเดือนก่อน

    I seem to be running into an issue early on, in that after installing the Terraform extension (the same one that is being used here), I cannot run any commands. Terraform stymied me with the "fmt" command referenced at 09:10 - as it couldn't find the command. I'm using Visual Code Studio on Rocky Linux , and unsure how to proceed from here, as if I'm getting errors this early on, then I'm sure to be experiencing multiple issues later.

  • @joaco8121
    @joaco8121 ปีที่แล้ว +1

    is the code available in a repo?

  • @midinerd
    @midinerd ปีที่แล้ว

    danke!

  • @fw1engineer
    @fw1engineer 6 หลายเดือนก่อน

    I configured the provisioner but when i do a 'terraform apply -auto-approve' I get following error in the output of the apply:
    azurerm_linux_virtual_machine.mtc-machine (local-exec): Executing: ["bash" "-c" "cat > ~/.ssh/config

    Host $(hostname)
    Hostname $(hostname)
    User $(user)
    IdentityFile $(identityfile)
    EOF
    "]
    azurerm_linux_virtual_machine.mtc-machine (local-exec): bash: user: command not found
    azurerm_linux_virtual_machine.mtc-machine (local-exec): bash: identityfile: command not found
    when i cat the ~/.ssh/config file it has:
    Host My-MacBook
    HostName My-MackBook
    User
    IdentityFile
    any hints on how to fix??

  • @serbanvitan8059
    @serbanvitan8059 7 หลายเดือนก่อน

    how much is it gonna cost using azure cloud at the end of the project?

  • @-ex-muslimtv4435
    @-ex-muslimtv4435 2 ปีที่แล้ว +6

    we need Bash scripting (full course)

  • @KrishDivvela
    @KrishDivvela ปีที่แล้ว

    While doing az login, I'm getting "No subscriptions found". Please help clearing this error

  • @Panzerbjrn
    @Panzerbjrn ปีที่แล้ว

    hah, when logging into the VM, I am told permissions for my key are too open, and it will be ignored... So I can't actually log in -__-

  • @iamnexom
    @iamnexom 2 ปีที่แล้ว

    It doesn't matter if you're tall, short, thin, fat, rich, poor at the end of the day it's Night !

  • @tatapramod277
    @tatapramod277 2 ปีที่แล้ว +1

    Firstt!!

  • @tomtr3309
    @tomtr3309 2 ปีที่แล้ว

    I studying css 6h 2years ago in your channel, but when i fast foward the subtitle is broken, can you fix it, i have to study at school in 2 weaks

  • @akhan8629
    @akhan8629 6 หลายเดือนก่อน

    Its a good video, but because of resources not provided, it made this vidoe almost uselesss.

  • @IanTriggs
    @IanTriggs 2 ปีที่แล้ว +29

    Great video, but I think you might be missing a chapter on deploying the linux VM.

    • @LaurenceNairne
      @LaurenceNairne 2 ปีที่แล้ว +7

      I was about to comment the same thing - all of a sudden we have a VM block in main.tf :D

    • @dand9022
      @dand9022 ปีที่แล้ว +5

      @@LaurenceNairne I noticed as well but the vm wasn't deployed yet. All you need to do is copy and paste the linux vm code and pick up from creating the ssh keys

    • @JimboXiii
      @JimboXiii ปีที่แล้ว +1

      glad I wasn't the only one to spot this, thought I was going mad for a moment

  • @danielno8
    @danielno8 ปีที่แล้ว +7

    Is it just me or does the video jump past the Linux VM part and go straight to creating the key pair after creating the NIC?

  • @Syedhere92
    @Syedhere92 ปีที่แล้ว +7

    can anyone share the course resource which he is referring to for creating customdata.tpl and linux-ssh-script.tpl?

  • @treysmith3103
    @treysmith3103 9 หลายเดือนก่อน +2

    This video skips the ENTIRE portion regarding creating a VM, and skips from creating a network interface straight to generating a key pair.

  • @koshrf
    @koshrf 10 หลายเดือนก่อน +1

    You skipped the creation of the VM, which is the whole point of this video, isn't it?

    • @bmw428
      @bmw428 4 หลายเดือนก่อน

      It’s in his course on his website linked here

  • @laurianoluo7331
    @laurianoluo7331 2 ปีที่แล้ว +8

    seems like lost a part about how to create vm and fix the public ip problem between the part of network interface and the key pair ?

    • @LaurenceNairne
      @LaurenceNairne 2 ปีที่แล้ว

      Did you ever work this out?

    • @emiliocamacho
      @emiliocamacho ปีที่แล้ว +4

      ​@@LaurenceNairne This is the VM block missing from the video.
      resource "azurerm_linux_virtual_machine" "mtc-vm" {
      name = "mtv-vm"
      resource_group_name = azurerm_resource_group.mtc-rg.name
      location = azurerm_resource_group.mtc-rg.location
      size = "Standard_B1s"
      admin_username = "adminuser"
      network_interface_ids = [azurerm_network_interface.mtc-nic.id]
      admin_ssh_key {
      username = "adminuser"
      public_key = file("~/.ssh/mtcazurekey.pub")
      }
      os_disk {
      caching = "ReadWrite"
      storage_account_type = "Standard_LRS"
      }
      source_image_reference {
      publisher = "Canonical"
      offer = "UbuntuServer"
      sku = "18.04-LTS"
      version = "latest"
      }
      }

    • @lakerfan4life308
      @lakerfan4life308 ปีที่แล้ว

      unable to SSH into VM. port 22 is blocked. getting "connection timed out"

    • @lakerfan4life308
      @lakerfan4life308 ปีที่แล้ว

      Never mind. I resolved my issue. Had the wrong setting in my network_security rule. Changed direction value from Outbound to Inbound

    • @philmegaw3125
      @philmegaw3125 5 หลายเดือนก่อน

      @@emiliocamacho Thanks for this - it all makes sense now!

  • @jasoncoombes8913
    @jasoncoombes8913 ปีที่แล้ว +3

    Hi, keep getting the
    Error: terraform: The term 'terraform' is not recognized as a name of a cmdlet, function, script file, or executable program.
    Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    Followed the exact same code on your video, even copied the code from the docs, still fails. project is stored on another drive, will this cause an issue?

    • @jasoncoombes8913
      @jasoncoombes8913 ปีที่แล้ว +2

      Hi,
      I just fixed this by installing Terraform, copying the file path of where terraform is installed, searching "edit environment variables for your account" -> path -> edit -> add the path where the terraform.exe exists -> relaunching VS Studio.
      Hope this helps.

    • @brandonwaddell2583
      @brandonwaddell2583 ปีที่แล้ว

      @@jasoncoombes8913 I had the same issue on a Win 10 machine, used chocolatey to install terraform and it worked

  • @lakerfan4life308
    @lakerfan4life308 ปีที่แล้ว +8

    Excellent video. I'm a beginner user of Terraform. ONLY 16 mins into the video and already feel astonished. Great feeling of accomplishment when I created a RG and see the outcome in the Azure portal. I've learned so much with just a few minutes. Great work with explaining the Terraform concepts and commands. It makes learning fun and effortless.

  • @tk429
    @tk429 ปีที่แล้ว +5

    I'm about 20 minutes in, and this course is good. My only ask is that you posted the code to a github to inspect.

  • @hophop521
    @hophop521 ปีที่แล้ว +2

    Derek, you said a couple of times "the file can be found in the Resources section of the lesson/course". but where am I suppose to find it?

  • @sanketsalunkhe6049
    @sanketsalunkhe6049 2 หลายเดือนก่อน

    I'm a bit confused about why we created a config file just to login to vm's instance, even though we are able to connect our local terminal in vs code using ssh -i ~/azurekey admin@1.2.3.4(public IP). Someone please help me understand this.

  • @aviralgupta9869
    @aviralgupta9869 8 หลายเดือนก่อน +1

    Guys If you are having a problem in which you are not able to see public IP at 57:30, just change allocation_method = "Dynamic" to allocation_method = "Static"

  • @vlauciani
    @vlauciani 2 หลายเดือนก่อน

    Very great video, thank you!!! Is there a public repo with used files?

  • @mirnabakhoum2534
    @mirnabakhoum2534 2 หลายเดือนก่อน

    Thank you for this great course , I am asking about the resources links used in that video ? where can I find them ?

  • @osr2004snd
    @osr2004snd 10 หลายเดือนก่อน +1

    Excellent video. Just a small sugestion: try using a Chrome extension named Dark Reader or similar. The contrasts going from VSCode (dark) to Terraform documentation (white) can really destroy people's eyes (like me).

  • @LekoOffRoad
    @LekoOffRoad 9 หลายเดือนก่อน +2

    at 59:03 in customdata.tpl line "sudo usermod -aG docker ubuntu" does not work because user "ubuntu" does not exist

  • @deonmarfo9878
    @deonmarfo9878 6 หลายเดือนก่อน

    PLEASE HELP IT KEEPS SAYING No changes. Your infrastructure matches the configuration.
    Terraform has compared your real infrastructure against your configuration and found no
    differences, so no changes are needed.

    • @sweetman1994
      @sweetman1994 5 หลายเดือนก่อน

      Save the tab

  • @innocentrage1
    @innocentrage1 2 ปีที่แล้ว +2

    Brooooo I was just about to do your aws terraform project, so glad I found this before I started because I like working with azure a lot better

  • @Shymoliuk
    @Shymoliuk ปีที่แล้ว +3

    finally I found the lessons I can easily follow and feel my in demand skills improving with every minute.

  • @stannylou1636
    @stannylou1636 ปีที่แล้ว +1

    Love the course, but one suggestion make the font bigger next time, I tried on my end to no avail I'm old 😃 thanks

  • @julianhamm1
    @julianhamm1 3 หลายเดือนก่อน

    Where's the customdata.tpl file?

  • @mraghul7418
    @mraghul7418 2 ปีที่แล้ว +2

    Make a video also in azure ai and ml projects💯💫

  • @DSDSDS1235
    @DSDSDS1235 2 หลายเดือนก่อน

    did the video skip the whole vm resource?

  • @LekoOffRoad
    @LekoOffRoad 9 หลายเดือนก่อน +1

    At 53:05 entire section is skipped

  • @eliassal1
    @eliassal1 ปีที่แล้ว +2

    Just finished the whole course, really fabtastic and easy to follow and explained, well done Derek, do you have other courses ike this So many thanks for your efforts

  • @stephenyork7318
    @stephenyork7318 8 หลายเดือนก่อน

    Ermm, how are you able to run terraform fmt? You didn't explain installing any terraform stuff for the console
    I've installed the terraform extension for VSCode but there's no cmdlet called terraform

  • @siddhantsrivastava4048
    @siddhantsrivastava4048 8 หลายเดือนก่อน

    Note: We also need to install terraform.

  • @TTOnkeys
    @TTOnkeys ปีที่แล้ว +5

    I've been watching courses on Pluralsight/ACloudGuru and felt like I wasn't getting anywhere. I've learned more from this 1 hour video which was far more engaging and hands-on than I did in any of theirs. Thanks Derek.

  • @shehzad_ali
    @shehzad_ali 2 ปีที่แล้ว +2

    Hello. Thanks for the great video. I recently attended a Microsoft DevOps session where they are heavily promoting Bicep. Will terraform be sidelined because of this in your opinion? Thanks once again for the video

    • @devbycloud
      @devbycloud ปีที่แล้ว +2

      Bicep is just like Terraform however, its an Azure only desired state configuration (DSC). Whereas Terraform can be use for multi-cloud (Azure, AWS, etc). So I would suggest Terraform is higher valued

  • @mbhargavi627
    @mbhargavi627 ปีที่แล้ว +1

    Where did you install terraform

  • @HarryTuttleHeatingEngineer
    @HarryTuttleHeatingEngineer 6 หลายเดือนก่อน

    Things seem to completely fall apart around the hour mark. We need something more for ssh access. The VM is not allowing ssh access.

  • @elodiemirza
    @elodiemirza ปีที่แล้ว +1

    Is there a repo with the .TF and other files?

  • @TheOnlyDominik
    @TheOnlyDominik 9 หลายเดือนก่อน

    "just like so" or "just like this"

  • @arihasan3423
    @arihasan3423 11 หลายเดือนก่อน +1

    Great tutorial! Thanks for taking time to explain everything in details.

  • @M365ITTuts
    @M365ITTuts ปีที่แล้ว

    I am not sure what I am doing wrong. I have confirmed that my azure account is connected, confirmed Terraform is installed. However when I do terraform init, it shows in terminal that it has been initialized successfully, however, it doesn't create any of the other files/folder as shown in the video. I have set my version to =3.0.0. I would appreciate any help with this! :)

  • @akshanssharma8318
    @akshanssharma8318 ปีที่แล้ว

    I guess you skipped the Virtual Machine deployment part in the video, found it on your website. Thanks.

  • @deen4803
    @deen4803 2 ปีที่แล้ว +1

    Or provide me link 🔗 of any course on api

  • @AleksFirst
    @AleksFirst 6 หลายเดือนก่อน

    Oh This man is amazing I bought his course on Udemy !)!)

  • @Peaceout168
    @Peaceout168 7 หลายเดือนก่อน

    Awesome tutorial, this definitely helped me get a better grip on terraform with Azure and i was able to complete all the executions with some troubleshooting to get it fixed, definitely this was fun to learn. Thank you so much :)

  • @johnvardy9559
    @johnvardy9559 ปีที่แล้ว

    This video would also for Cloud Security people work or for administrator?

  • @soumyadipchatterjee2267
    @soumyadipchatterjee2267 ปีที่แล้ว

    In flow it seems you skipped to showcase the entire vm scripts to us . Please share in details with ssh key portion. I am performing the same from scratch ,so ...

  • @jjanna07751
    @jjanna07751 9 หลายเดือนก่อน

    Awesome video!!.. just needed where the resources mentioned in the video are placed. Need it for the docker bit

  • @tanmaysen4434
    @tanmaysen4434 2 ปีที่แล้ว

    Please upload AWS solution architect course SAA-C03 latest.

  • @SurbanoskiAleksandar
    @SurbanoskiAleksandar ปีที่แล้ว +1

    Mind-blowing course

  • @CloudzNJ
    @CloudzNJ 2 ปีที่แล้ว

    Hey for the vm section, I am a bit lost. cant seem to apply the settings made. Any help?

  • @IncorrectTarget.
    @IncorrectTarget. 6 หลายเดือนก่อน

    I

  • @gurdipedosanjh7887
    @gurdipedosanjh7887 11 หลายเดือนก่อน

    Thank you so much for this brilliant training course, every command worked and I learned so much about terraform and azure

  • @liamconverse8950
    @liamconverse8950 2 ปีที่แล้ว +1

    What is Terraform? Seems like that should have been mentioned in the beginning now

    • @LaurenceNairne
      @LaurenceNairne 2 ปีที่แล้ว

      I don't agree - - it's for terraform to explain what their tools do. It's for other content creators to try and give a great resource for *how to use them*

    • @liamconverse8950
      @liamconverse8950 2 ปีที่แล้ว

      @@LaurenceNairne Well you you have the right to be wrong lol

  • @naveenkumar-y
    @naveenkumar-y 2 ปีที่แล้ว +1

    where is the VM creation part

    • @AdrianVrabie
      @AdrianVrabie ปีที่แล้ว

      I don't see it either? Was it cut on purpose?

  • @The_Personal_Picks_SnM
    @The_Personal_Picks_SnM ปีที่แล้ว

    Just started the video and i had to like the video immediately the moment heard him saying resume project with terraform. Cos that's exactly what I needed. Hope i won't be disappointed

  • @kuqezi294
    @kuqezi294 ปีที่แล้ว

    Will you do a video with Azure Devops integration ?

  • @dapoolajide8887
    @dapoolajide8887 11 หลายเดือนก่อน

    Can't see the resource file here. Can you help?

  • @NeverGonnaGiveYouUpp
    @NeverGonnaGiveYouUpp 2 ปีที่แล้ว

    Fun Fact: if you write fun fact, people will read it

  • @mikejone7793
    @mikejone7793 2 ปีที่แล้ว

    thanks for what your doing, was going through this course, had issues with creating a network interphase card as can be seen on the diagram, am out of options pls help

  • @Bzoli1000
    @Bzoli1000 ปีที่แล้ว

    Well, it was really useful. Great presentation, thank you!

  • @eliassal1
    @eliassal1 ปีที่แล้ว

    Derk, at minute 1H:24 I agree it is a good idea to use variables and we might run terraform on different OSes but any related operation to ssh using the openssh ssh-keygen on the win10 bix does not work, I copied everything to a fedora 35 box and everything works like a charm, so as I said in an earlier thread terraform cannot decode mtcazurekey correctly

  • @rimantasdanilevicius6754
    @rimantasdanilevicius6754 2 ปีที่แล้ว

    Human language - so what can I do with that? :D

  • @frankwu98
    @frankwu98 5 หลายเดือนก่อน

    Amazing thank you

  • @traximtech-x7g
    @traximtech-x7g ปีที่แล้ว

    very good course. Better then paid ones

  • @johnmountain9896
    @johnmountain9896 ปีที่แล้ว +6

    Unnecessary content removed from this video results in compressed and effective content. Thanks for the detailed and great review!

  • @nishitkumar7650
    @nishitkumar7650 2 ปีที่แล้ว

    Terraform with gcp please

  • @teesec3978
    @teesec3978 ปีที่แล้ว

    i am having issues with the tpl file is there another way i could run a bash file with terraform

    • @DavidMunoz-kd2tp
      @DavidMunoz-kd2tp ปีที่แล้ว

      Make sure bash script is good. Also Look here: custom_data = filebase64("${path.module}/customdata.tpl")
      hope this helps!

  • @Dannydod1
    @Dannydod1 ปีที่แล้ว

    I can't seem to find the customdata.tpl code, can anyone help?

    • @Dannydod1
      @Dannydod1 ปีที่แล้ว

      I typed out the bash script, I have the following error response
      usermod: user 'ubuntu' does not exist

  • @deen4803
    @deen4803 2 ปีที่แล้ว

    Please make video on restful API

  • @vishwamnayak
    @vishwamnayak 2 ปีที่แล้ว

    Make tutorial of wso2 please

  • @ilovefoxes9987
    @ilovefoxes9987 2 ปีที่แล้ว

    Well don't work anymore do another video on discord python bot

  • @samajier2566
    @samajier2566 2 ปีที่แล้ว

    I like the video

  • @ranjankhakurel4969
    @ranjankhakurel4969 ปีที่แล้ว

    Thanks bruv

  • @scottmcarthur7496
    @scottmcarthur7496 ปีที่แล้ว

    This has been a really good learning tool, thanks a lot!

  • @stuartjacobs
    @stuartjacobs 2 ปีที่แล้ว

    Thanks Derek for putting this together and a well thought out example. Learnt a ton. Super Thanks.

  • @eliassal1
    @eliassal1 ปีที่แล้ว

    Hi Derek, I started watching this course, when I issue "terraform init", I get a message "Terraform has been successfully initialized!" but no files no directory terraform is created. Thanks for your help

    • @eliassal1
      @eliassal1 ปีที่แล้ว

      Please ignore this question as I noticed that when I copied it from the doc there was "features" and not "feature" it seems that the S was not correct what is strange is that even an error exits terrafom said init was successful in spite of the fact it did not indicate that there was a syntax error

    • @tomisinodunuga8422
      @tomisinodunuga8422 ปีที่แล้ว +3

      You need to save the file in your VS.code. You can put your VS.code in autosave better still

    • @harryjb28
      @harryjb28 ปีที่แล้ว

      @@tomisinodunuga8422 Thank you for this :)

    • @brandonwaddell2583
      @brandonwaddell2583 ปีที่แล้ว

      @@tomisinodunuga8422 you’re a lifesaver

    • @iqbalhakim3953
      @iqbalhakim3953 ปีที่แล้ว

      @@tomisinodunuga8422 my man

  • @Kronu.
    @Kronu. 2 ปีที่แล้ว +1

    Hello codecamp, a small request.
    Can you teach how to create A.I app or anything to make it play games? Not any simple games but high end games.
    I want to improve by playing with A.I.