You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be good if we had Azure PowerShell SDK commands for steps 1 and 2 of "Launching an Ops Manager Director Instance" under the Azure installation pages.
Here is a template script I wrote for the Azure Cloud Shell with the new PowerShell preview.
$StorageName=""$ResourceGroup=""$Location=""$SubscriptionName=""$OpsManURI=""# set global verbosity for all commands.$PSDefaultParameterValues['*:Verbose'] =$trueWrite-Host"Creating Resource Group and Storage Accounts"New-AzureRmResourceGroup-Name $ResourceGroup-Location $LocationNew-AzureRmStorageAccount-ResourceGroupName $ResourceGroup-AccountName $StorageName-Kind Storage -Type "Standard_LRS"-Location $Location$Context=New-AzureStorageContext-StorageAccountName $StorageName-StorageAccountKey (Get-AzureRmStorageAccountKey-StorageAccountName $StorageName-ResourceGroupName $ResourceGroup).Value[0]
Write-Host"Creating storage containers."$arr=@("vhds","opsmanager","bosh","stemcell")
New-AzureStorageContainer-Name opsman-image -Permission Blob -Context $Contextfor ($i=0; $i-lt$arr.Length; $i++) { New-AzureStorageContainer-Name $arr[$i] -Context $Context }
New-AzureStorageTable-Name stemcells -Context $ContextWrite-Host"Copying OpsMan blob."Start-AzureStorageBlobCopy-AbsoluteUri $OpsManURI-DestContainer "opsman-image"-DestBlob "image.vhd"-DestContext $Contextwhile ((Get-AzureStorageBlobCopyState-Context $Context-Blob "image.vhd"-Container "opsman-image").Status -eq"Pending") {
Start-Sleep-Seconds 3Write-Host"Waiting on OpsMan Blob to finish copying"
}
Write-Host"done."
The text was updated successfully, but these errors were encountered:
It would be good if we had Azure PowerShell SDK commands for steps 1 and 2 of "Launching an Ops Manager Director Instance" under the Azure installation pages.
Here is a template script I wrote for the Azure Cloud Shell with the new PowerShell preview.
The text was updated successfully, but these errors were encountered: