![]() In this section, we will learn how to use the credential parameter to login and setup azure automation. In this example, we will explore the different ways The first step in the exercise, login to the Azure subscription. PS:\> Get-command *AzAccount* -Module *Az* Any of the three cmdlets can log in to Azure-It looksĭifferent but all three commands can be used to authenticate Azure using PowerShell.Connect-AzAccount is theĬommand and Login-AzAccount and Add-AzAccount are the aliases build around the Connect-AzAccount cmdlet ToĪnswer all three cmdlets holds well in all the scenarios. The basic question is which one is correct and why?. ![]() Note: In the Azure automation script, sometimes you may see the use of Login-AzAccount you can also seeĪdd-AzAccount and some may use Connect-AzAccount.Login to the portal by type in the user-id and password and set the session to appropriate the subscription context. I will discuss the following ways to connect toīefore we write PowerShell script for Azure, you must sign into the Azure portal and then build the automation. In this article, you will see different ways to connect to Azure. For Azure automation, Microsoft provided a set of Azure PowerShell Modules that can be leverage to manage the Azure Cloud platform. ![]() If you are already familiar with PowerShell cmdlets, then it will be easy to be acquainted with Azure PowerShell modules. PowerShell always comes to the rescue when there is a need for automation, and it is no different for Azure. PowerShell provides a platform and a friendly way of automating many repeated tasks, which in turn minimize the time-and-cost. ![]() PowerShell becomes a de facto toolset in the arsenal of Azure automation. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |