Getting started with PowerShell for Azure

Поділитися
Вставка
  • Опубліковано 31 гру 2024

КОМЕНТАРІ • 91

  • @daslyn3854
    @daslyn3854 3 роки тому +1

    Hi Shane,
    I got this feedback from system when entering Install-Module AzureRM
    NuGet provider is required to continue
    PowerShellGet requires NuGet provider version '2.8.5.201' or newer to interact with NuGet-based repositories. The NuGet provider must be available in 'C:\Program
    Files\PackageManagement\ProviderAssemblies' or 'C:\U

    • @ShanesCows
      @ShanesCows  3 роки тому

      Not sure. I would say update your PowerShell and go from there. Been a while for this one.

  • @roycharman7412
    @roycharman7412 7 років тому +2

    Great videos Shane! I hope they will be beneficial for when I start my networking job in a few weeks!

  • @ameyamagashe
    @ameyamagashe 6 років тому +3

    Question. why does get-command does not return anything for azurerm?
    PS C:\WINDOWS\system32> Get-Command -Module azurerm
    PS C:\WINDOWS\system32>
    Also, get-command-module azure gives me 655 commands whereas for you it is 708, is there I didn't execute correctlly?

    • @ShanesCows
      @ShanesCows  6 років тому

      Not surprised the number would change. No big deal

  • @Nilan6
    @Nilan6 5 років тому +1

    What would be the updated code for (get-command -Module azure).count ? Right now, it seems all the previous AzureRM commands have migrated to Az. I'm a newbie and not sure how to update the .count command...

    • @ShanesCows
      @ShanesCows  5 років тому

      Not sure. Haven’t messed with it in a while.

    • @gaiusbaltar7122
      @gaiusbaltar7122 4 роки тому +2

      This worked for me: (get-command -Module az*).count

  • @dipeshshrestha2086
    @dipeshshrestha2086 3 роки тому +1

    How to display all the branches of a particular resource group and switch between branches (by default it is master ) and display corresponding pipelines

    • @ShanesCows
      @ShanesCows  3 роки тому

      Yikes, I haven't done that.

  • @flowww88
    @flowww88 2 роки тому

    when do you use Add-AzureAccount and when login-Azurermaccount ?

  • @daye1997
    @daye1997 5 років тому +1

    Hi Shane, Great Video. Thank you. (get-command -module azureRM).count returns 0 , After installing it. Is it replaced by AZ?

    • @ShanesCows
      @ShanesCows  5 років тому

      not sure. Been a while since I tried

  • @kevinchambers3448
    @kevinchambers3448 7 років тому +1

    Great teachings Shane! When I do my counts azure comes back with 655 however azurerm is 0. I'm on Win10 ps ver 5.1. Thoughts?

    • @ShanesCows
      @ShanesCows  7 років тому

      Sounds like you did not get the AzureRM cmdlets added successfully. Are they missing?

    • @MichaelGeorgeBrown
      @MichaelGeorgeBrown 6 років тому

      I have this same issue. Did you ever get it resolved?

  • @aihamabohameda669
    @aihamabohameda669 5 років тому +1

    Hallo, i have a problem that the Rm Module is not recognised. i have tried many solution from youtube but it didn't work. do yo have any idea?

    • @ShanesCows
      @ShanesCows  5 років тому

      Are you on PowerShell 5?

  • @neilmcamks2743
    @neilmcamks2743 7 років тому

    Thanks for the video, this got me started and up and running quickly. Quick question, when starting a load of VM's in a ResourceGroup, how do you prevent the command you used from not waiting on a response back. For example, I have x6 VM's in a Resource Group, to start them up it takes long pauses in-between each of the 6 VM's when the power on and report back that they have started, before moving on to the next one?

    • @ShanesCows
      @ShanesCows  7 років тому

      I know exactly what you are talking about but I don't have a great answer. Though to be fair I never looked. If you find anything or get close let me know. :) Thanks

  • @Adventures07
    @Adventures07 6 років тому +1

    Hey Shane, I can see you're using on prem, can you do the samething with Poweshell SPO?

    • @ShanesCows
      @ShanesCows  6 років тому

      Yes, I have videos doing similar stuff with SPO.

  • @Steve-gi2yj
    @Steve-gi2yj 5 років тому +1

    Hello, i am following along, however when i run the Install-Module azure -AllowClobber, i get the following error message: allow a parameter cannot be found that matches parameter name AllowClobber... any idea? maybe this video is out dated?

    • @ShanesCows
      @ShanesCows  5 років тому +1

      It is old. Maybe try install-module AzureRM

  • @nixaler
    @nixaler 6 років тому +3

    yeah... it would be nice if "Install-Module" actually worked. Was greeted with a nice red blurb about it not being recognized...

    • @ShanesCows
      @ShanesCows  6 років тому

      ua-cam.com/video/3jAH92mBbRk/v-deo.html
      You need to upgrade your version of PowerShell. Use that video to upgrade to 5.1 and then try Install-Module again.

    • @nixaler
      @nixaler 6 років тому +1

      Thanks Shane! - Wish MS docs would tell us that when attempting to follow their guide.

    • @Malvisk
      @Malvisk 5 років тому

      @@ShanesCows I'm getting the same message and we are already running 5.1.14393.3053 according to psversiontable

  • @shenelle5266
    @shenelle5266 5 років тому +1

    R u from Cincy

  • @marellasrinivasrao
    @marellasrinivasrao 4 роки тому +1

    hey hi shane young, i have one doubt,please give me solution for that one.1 How can we install anti virus software in all virtual machines at a time.

  • @bvraravind
    @bvraravind 5 років тому +2

    Thank you Shane. When I run the command Login-AzureRM, it takes me the login screen, but return empty for account and subscription etc. Can you help me what may be the issue?

    • @ShanesCows
      @ShanesCows  5 років тому

      Sorry I haven’t seen that one before. 😔

    • @snehajyp
      @snehajyp 4 роки тому

      this happens when might be subscribed to more than one azure subscriptions (within same the same or different tenant id). Specify your subscription and tenant details while you try to login. - Login-AzureRmAccount -SubscriptionName "XXX" -TenantId "YYY"

  • @chaitanyachelluri6377
    @chaitanyachelluri6377 5 років тому +1

    Excellent video!!!
    But while running "Get-Command -Module AzureRM
    ",
    I am getting this:
    PS C:\windows\system32> TerminatingError(New-Item): "The running command stopped because the preference variable "ErrorActionPreference" or common parameter is set to Stop: Could not find a part of the path 'C:\Users\mypc\.Azure\AzInstallationChecks.json'."
    Also my the command "(Get-Command -Module azurerm).count " is returning
    "0".
    Could you help with this? Thanks in advance.

  • @olufemibakare
    @olufemibakare 4 роки тому +1

    i get this error when i run the Login-AzureRMAccount command
    Connect-AzureRmAccount: Could not load type 'System.Security.Cryptography.SHA256Cng' from assembly 'System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    pls help out

  • @ameyamagashe
    @ameyamagashe 6 років тому +1

    ok, I am very new. These modules are microsoft provided? can I trust them?

    • @ameyamagashe
      @ameyamagashe 6 років тому +1

      Looks like they are! docs.microsoft.com/en-us/powershell/azure/install-azurerm-ps?view=azurermps-6.8.1

    • @ShanesCows
      @ShanesCows  6 років тому

      Yup. :)

  • @aaronstrickland8121
    @aaronstrickland8121 8 років тому

    Hi, great video! Is there any way to automate the login process, instead of typing the credentials each time?

    • @ShanesCows
      @ShanesCows  8 років тому +1

      There are ways. I just haven't messed with any of them enough to create a video on it. :( When I do I will let you know. This is the method I plan to play with first if you want to read ahead. github.com/SharePoint/PnP-PowerShell/wiki/How-to-use-the-Windows-Credential-Manager-to-ease-authentication-with-PnP-PowerShell

    • @aaronstrickland8121
      @aaronstrickland8121 8 років тому +3

      Thanks for your reply! After some digging, I found this method! Works quite nicely
      4sysops.com/archives/auto-login-to-azure-with-powershell/

    • @louisani7363
      @louisani7363 5 років тому

      @@aaronstrickland8121 you can register the credentials in your machines registry keys and then call them in the script

  • @josiahsamsel461
    @josiahsamsel461 7 років тому

    So im new to all of this and trying to learn more; however, when i run get-azurermvm it returns nothing but says "No Tenant found in the context."
    What can i do about this?

  • @dollydham5435
    @dollydham5435 7 років тому +1

    hi
    Could you please suggest the command on how to configure CORS for web app in azure by powershell

    • @ShanesCows
      @ShanesCows  7 років тому

      Hi Dolly. Sorry I don't have anything. If you figure something out that is helpful please share.

    • @dollydham5435
      @dollydham5435 7 років тому

      Sure shane, anyways thanks for valuable video

  • @thomasthorstensen1890
    @thomasthorstensen1890 3 роки тому +1

    yo i there still is anyone reading these comments: Help! I've installed azureRM but when i type: Get-Command -Module azureRM nothing shows. When I type Get-Command -Module azure i can see the commands. to me, it seems as if the rm module did not install. but if I type: Install-Module azureRM nothing happens.
    what went wrong?

    • @ShanesCows
      @ShanesCows  3 роки тому

      I think they changed and only use the Azure cmdlets now. You should be able to do all the same stuff just no RM anymore.

  • @tbudjone1270
    @tbudjone1270 5 років тому +1

    hello shane, im using my macbrook pro, and nothing happens after i insert "install-module azureRM"

    • @vinodkumaros6430
      @vinodkumaros6430 5 років тому +1

      uograde powershell to version 5

    • @ShanesCows
      @ShanesCows  5 років тому

      Does upgrading working as Vinod suggested?

    • @vinodkumaros6430
      @vinodkumaros6430 5 років тому

      @@ShanesCows $PSVersionTable.PSVersion aka.ms/wmf5download

  • @ameyamagashe
    @ameyamagashe 6 років тому +1

    Thank you sio much Shane, very useful for beginners.

  • @jothilingam4317
    @jothilingam4317 5 років тому +1

    how to start a particular VM in RG...

  • @kagemaru2498
    @kagemaru2498 6 років тому +1

    Hello, my server does not have internet available, does it have any offline installer?

    • @ShanesCows
      @ShanesCows  6 років тому +1

      I think you can download it. I have never tried though. Sorry

  • @yvesgvr
    @yvesgvr 7 років тому

    Hi Shane,
    I'm blocked at the installation of AzureRM
    got an error message
    PS C:\Windows\system32> Install-module azurerm
    Install-module : The term 'Install-module' is not recognized as the name of a cmdlet, function, script file, or
    operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try
    again.
    At line:1 char:1
    + Install-module azurerm
    + ~~~~~~~~~~~~~~
    + CategoryInfo : ObjectNotFound: (Install-module:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
    What installation did I miss ?
    Thanks
    Yves

    • @ShanesCows
      @ShanesCows  7 років тому

      You need to update your version of PowerShell. This video should help. ua-cam.com/video/3jAH92mBbRk/v-deo.html

  • @21LANMAN
    @21LANMAN 4 роки тому +1

    really good videos. Thanks!!!

  • @ashokaladhandi8622
    @ashokaladhandi8622 2 роки тому +1

    Great Working

  • @anushaande222
    @anushaande222 6 років тому

    Thanks for the vedio Shane! I use windows 10 and my PowerShell version is 5.1
    Name Value
    ---- -----
    PSVersion 5.1.16299.98
    PSEdition Desktop
    PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
    BuildVersion 10.0.16299.98
    CLRVersion 4.0.30319.42000
    WSManStackVersion 3.0
    PSRemotingProtocolVersion 2.3
    SerializationVersion 1.1.0.1
    I tried installing AzureRM using "Install-Module AzureRM -verbose" command but i always face an error that says :
    PackageManagement\Install-Package : Package 'AzureRM.profile' failed to be installed because: The process cannot access the file
    'C:\Users\anushaande\AppData\Local\Temp\xyvthkjj\Microsoft.Azure.Commands.Common.Authorization.dll' because it is being used by another process.
    At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\1.0.0.1\PSModule.psm1:1809 char:21
    + ... $null = PackageManagement\Install-Package @PSBoundParameters
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : InvalidResult: (AzureRM.profile:String) [Install-Package], Exception
    + FullyQualifiedErrorId : Package '{0}' failed to be installed because: {1},Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage
    I tried installing this way for last two days but still the issue dint get resolved. I feel glad if you can tell me something about this error.
    Finally i tried installing it using WEBPI. This time i can see the list of AzureRM modules installed in
    Directory: C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ResourceManager\AzureResourceManager However (get-command -Module AzureRM).count returns 0. If you can tell me the reason for this and help me fix it, That helps me a lot :)
    Thanks in advance!

  • @ankitarora4521
    @ankitarora4521 6 років тому +1

    Nice video Shane!! Keep it up :)

  • @sachinshinde3824
    @sachinshinde3824 6 років тому +2

    really great job !!

  • @markmedina7636
    @markmedina7636 5 років тому +1

    You are awesome dude

  • @srinivaspithani7645
    @srinivaspithani7645 7 років тому +1

    Thanks Shane

  • @jaynj908
    @jaynj908 8 років тому

    mine said "RemoteSigned" Is that bad?

    • @ShanesCows
      @ShanesCows  8 років тому

      +jay l that should work.

    • @jaynj908
      @jaynj908 8 років тому

      OK thanks I thought I got hacked or something

  • @Mo-dg8xi
    @Mo-dg8xi 8 років тому

    Hi! Can you outline for me which servers/DB's i need to subscribe to please? Thanks!

    • @ShanesCows
      @ShanesCows  8 років тому

      Hi Mona. I don't understand your question. Happy to help if I can.

  • @anthonyngari4834
    @anthonyngari4834 7 років тому +1

    Great work buddy

  • @mahadevgouda6043
    @mahadevgouda6043 6 років тому +1

    It''s really nice videos.....

  • @akirablac
    @akirablac 7 років тому

    Didn't understand anything.

    • @ShanesCows
      @ShanesCows  7 років тому

      What didn’t you understand?

    • @akirablac
      @akirablac 7 років тому

      I don't know anything about Microsoft Azure and ur video doesn't give the introduction of Azure.

    • @ShanesCows
      @ShanesCows  7 років тому

      That wasn't the goal of the video. :) Here is a good link you can learn more about Azure. docs.microsoft.com/en-us/azure/fundamentals-introduction-to-azure Hope it helps.

    • @akirablac
      @akirablac 7 років тому +1

      Thanks