If you are a frequent user of the Azure Portal, you might have realized it is a common sighting to see some metrics such…
If you are a frequent user of the Azure Portal, you might have realized it is a common sighting to see some metrics such…
I refer to various guides ranging from SQL Always On Cluster Setup Guide, and brief documentation on SQL Always On with AAD Domain Services and…
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
$cred = Get-Credential Add-AzureRmAccount -Credential $cred $ResourceGroupName = "__yourvalues__" $vmname = "__yourvalues__" # maybe this should be another task altogether # Get-AzureRmVM -ResourceGroupName $ResourceGroupName -Name $vmname | Stop-AzureRmVM -force Select-AzureSubscription "yoursubscriptionname" Set-AzureSubscription -SubscriptionName "yoursubscriptionname" -CurrentStorageAccount "__yourvalues__" # VHD blob to copy # $blobName = "__yourvalues__.vhd" # Source Storage Account Information # $sourceStorageAccountName = "__yourvalues__" $sourceKey = "__yourvalues__" $sourceContext = New-AzureStorageContext –StorageAccountName $sourceStorageAccountName -StorageAccountKey $sourceKey $sourceContainer = "__yourvalues__" # Destination Storage Account Information # $destinationStorageAccountName = "__yourvalues__" $destinationKey = "__yourvalues__" $destinationContext = New-AzureStorageContext –StorageAccountName $destinationStorageAccountName -StorageAccountKey $destinationKey # Create the destination container # $destinationContainerName = "vhds" # Copy the blob # $blobCopy = Start-AzureStorageBlobCopy -DestContainer $destinationContainerName ` -DestContext $destinationContext ` -SrcBlob $blobName ` -Context $sourceContext ` -SrcContainer $sourceContainer -Force while(($blobCopy | Get-AzureStorageBlobCopyState).Status -eq "Pending") { Start-Sleep -s 30 $blobCopy | Get-AzureStorageBlobCopyState } # maybe this should be another task altogether # Get-AzureVM -ServiceName $servicename -Name $vmname | Start-AzureVM # set as a disk # $AzureVHD = 'https://' + $destinationStorageAccountName + '.blob.core.windows.net/' + $destinationContainerName + '/' + $blobName $vnet = Get-AzureRmVirtualNetwork -name __yourvalues__-ResourceGroupName __yourvalues__ $nic = New-AzureRmNetworkInterface -Name "__yourvalues__" -ResourceGroupName __yourvalues__ -Location "SouthEast Asia" -SubnetId $vnet.Subnets[0].Id $VirtualMachine = New-AzureRmVMConfig -VMName "__yourvalues__" -VMSize "Standard_DS1_v2" $VirtualMachine = Add-AzureRmVMNetworkInterface -VM $VirtualMachine -Id $nic.Id $VirtualMachine = Set-AzureRmVMOSDisk -VM $VirtualMachine -Name $blobName -VhdUri $AzureVHD -CreateOption Attach -Windows New-AzureRmVM -VM $VirtualMachine -ResourceGroupName "__yourvalues__" -location 'SouthEast Asia' |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
$username = "userid@yourtenantname.onmicrosoft.com" $password = ConvertTo-SecureString "yourpassword" -AsPlainText -Force $cred = new-object -typename System.Management.Automation.PSCredential ` -argumentlist $username, $password Add-AzureAccount -Credential $cred $servicename = "yourservicename" $vmname = "yourvmname" # maybe this should be another task altogether # Get-AzureVM -ServiceName $servicename -Name $vmname | Stop-AzureVM -force Select-AzureSubscription "yoursubscriptionname" Set-AzureSubscription -SubscriptionName "yoursubscriptionname" -CurrentStorageAccount "portalvhdssomethingsource" # VHD blob to copy # $blobName = "yourvhdname.vhd" # Source Storage Account Information # $sourceStorageAccountName = "portalvhdssomethingsource" $sourceKey = "yourkey" $sourceContext = New-AzureStorageContext –StorageAccountName $sourceStorageAccountName -StorageAccountKey $sourceKey $sourceContainer = "vhds" # Destination Storage Account Information # $destinationStorageAccountName = "portalvhdssomethingdestination" $destinationKey = "yourkey" $destinationContext = New-AzureStorageContext –StorageAccountName $destinationStorageAccountName -StorageAccountKey $destinationKey # Create the destination container # $destinationContainerName = "vhds" # Copy the blob # $blobCopy = Start-AzureStorageBlobCopy -DestContainer $destinationContainerName ` -DestContext $destinationContext ` -SrcBlob $blobName ` -Context $sourceContext ` -SrcContainer $sourceContainer -Force while(($blobCopy | Get-AzureStorageBlobCopyState).Status -eq "Pending") { Start-Sleep -s 30 $blobCopy | Get-AzureStorageBlobCopyState } # maybe this should be another task altogether # Get-AzureVM -ServiceName $servicename -Name $vmname | Start-AzureVM # set as a disk # $AzureVHD = 'http://' + $destinationStorageAccountName + '.blob.core.windows.net/' + $destinationContainerName + '/' + $blobName Add-AzureDisk -DiskName $vmname -MediaLocation $AzureVHD ` -Label $vmname -OS linux |
There are a couple of users who have complained that they are unable to link to their Xiaoyi Weidan M1 Mirrorless Camera via their iPhone…
Users of LUIS, or Language Understanding Intelligent Service on luis.ai might have recently received a message “The programmatic API keys will no longer be used…
You might have recently tested the technical preview of Windows 10 and realised that the OneDrive/ Skydrive client fails to start running. Here’s the fix…
I refer to the new feature of sticky session on this article here where you are able to set 2-tuple or 3-tuple affinity in addition…
Recently, Skydrive users have complain on various sites and that the sync speed on their Skydrive client is slow, or taking too long to sync a large amount…
A startup based in Singapore, Pixaroll is announcing that they are bringing photo printing/delivery service to Windows Phone platform! Unlike self-served printing from consumer photo…