concept PowerShell in category azure

This is an excerpt from Manning's book Azure Storage, Streaming, and Batch Analytics: A guide for data engineers.
Using the tool set in Azure for building a large scale data analysis system requires some basic and intermediate technical skills. First, SQL is used extensively for processing streams of data, batch processing, orchestrating data migrations, and managing SQL databases. Second, CSV and JSON files facilitate transferring data between systems. Data engineers must understand the strengths and weaknesses of these file formats. Reading and writing these files are core activities of the batch processing workflows. Third, the Microsoft data engineer should be able to write basic C# and JavaScript functions. Several cloud tools, including Stream Analytics and Data Lake Analytics, are extensible using these languages. Processing functions and helpers can run in Azure and be triggered by cloud service events. Last, experience with the Azure portal and familiarity with the Azure CLI or PowerShell allows the engineer to create new resources efficiently.
Some features in Azure cannot be configured through the portal, and some can be configured only through the portal. PowerShell is a powerful tool, and the examples in this book only scratch the surface of what’s possible. Learn Windows PowerShell in a Month of Lunches, 3rd ed. by Jones and Hicks for a much deeper view.
Now create a new security group for Technical Operations, and add
techuserto this group. Execute these lines in PowerShell with the Azure PowerShell module loaded. You’ll repeat these steps for thefinanceuser. This script will return an error if a group by that name exists.Listing A.4. New AAD group
$Group = New-AzADGroup -DisplayName "Technical Operations" -MailNickname "TechOps" Add-AzADGroupMember -MemberObjectId $User.Id -TargetGroupObjectId $Group.Id $Group2 = New-AzADGroup -DisplayName "Finance" -MailNickname "Finance" Add-AzADGroupMember -MemberObjectId $User2.Id -TargetGroupObjectId $Group2.IdNow you’ve set up the basic resources in Azure using PowerShell. You’ve learned why you need a resource group in Azure, and how to create one. You’ve created a user and a security group for Technical Operations and Finance in AAD. Now you can use them when securing other resources in Azure. In the next section you’ll create a Storage account.