November 2018
Intermediate to advanced
566 pages
17h 15m
English
We are now ready to write and execute the script:
Param( # Variables for common values [string]$ResourceGroup = "packtpub-rg", [string]$storageAcctName = "packtstorage", [string]$Location = "East US", [string]$VNetName = "packtpub-vnet", [string]$NicName = "packtpub-vm-nic", [string]$DiskName = "packtUbuntu", [string]$VmName = "packtpub-ubuntu" ) # Check for open session Connect-AzureRmAccount # Create user object $Cred = Get-Credential -Message "Enter username and password of administrator credentials" # Create a resource group New-AzureRmResourceGroup -Name $ResourceGroup -Location $Location # Create a storage account New-AzureRmStorageAccount -Name $storageAcctName -ResourceGroupName ...
Read now
Unlock full access