Azure Admin Interview question - Azure PowerShell Use cases
Вставка
- Опубліковано 3 жов 2024
- #Install-Module -Name "AZ" -AllowClobber
#Connect-AzAccount
#Get-AzSubscription
#Get-AzStorageAccount
#Get-AzStorageAccount -Name bhupatitsts -ResourceGroupName WEBRG | Format-List
$stdetails = Get-AzStorageAccount -Name bhupatitsts -ResourceGroupName WEBRG
$name = $stdetails.StorageAccountName
$RG = $stdetails.ResourceGroupName
Remove-AzStorageAccount -Name $name -ResourceGroupName $RG -Force
#create Storage account
$Location = "EAST US"
$StName = "gopistss01"
$stRG = "appgwrg"
New-AzStorageAccount -Location $Location -Name $StName -ResourceGroupName $stRG -SkuName Standard_LRS -AccessTier Hot -Verbose
#Done with the creation
#Fetch VM DETAILS
Start-AzVM -Name devOpsAgent -ResourceGroupName WEBRG -Verbose
$vm2 = Get-AzVM -Name devOpsAgent -ResourceGroupName WEBRG
Stop Multiple VM's in Azure
$vms = Get-AzVM
foreach($vmdetails in $vms)
{
$vmname = $vmdetails.Name
$vmrg = $vmdetails.ResourceGroupName
Start-AzVM -ResourceGroupName $vmrg -Name $vmname | Where-Object {$_.Name -match "webvm"}
}
Sir ur videos are very helpful to crack the interviews and very understandable as well...sir i did course AZ104 AND I PAID 10K to one u Tuber guys he said he will help to get a job...even after completing the course he is not picking the calls nor he provided interviews preparation notes... But ur videos are so helpful...Thank uou please upload few more videos related real Work scanario of AZ104 in office environments
Hi , Thank you for the Feedback. I will upload new series very soon.
@@vvhitsolutions ,Pls provide yours mail id