Sunday, December 30, 2018

Launch PowerShell ISE with another Credential

In a situation, where you are login in your laptop, when you launch the PowerShell it will be your current login credential

image

I need to login with another credential which has admin rights to perform certain tasks


SNAGHTML64b5603

When a box appears, key in your password

A new PowerShelll ISE is launch

image

And now I can carry out the tasks in this window with admin rights

In summary the command is

Start-Process powershell_ise.exe -Credential "yourdomain\adminID"  

Make changes to the syntax in yellow.  The command must have the quotes as shown.

keywords : launch powershell ise with another credential, launch powershell  ISE with administrator rights, power shell

Tuesday, February 27, 2018

DPM 2012–Event ID 3184 Owner DPM Server

Recently I had an incident on the DPM 2012.  It’s the ActiveOwner issue.

image

I’m going to share with you how I done it.

The ActiveOwner files are located in "c:\program files\Microsoft Data Protection Manage\dpm\activeowner" on the server hosting the databases (SQL server being backed up). In my case it is one of the SQL server the DPM is protecting.  These ActiveOwner are used to manage ownership of databases, important for ensuring multiple DPM servers aren't attempting to backup/restore resources at the same period of time.


image

In the Protected Server that is running the SQL, from the Windows Explorer, drill to the location of:
C:\Program Files\Microsoft Data Protection Manager\DPM\ActiveOwner .

Rename all the files that is 0 KB. e.g. rename with the extention of .old

image

Next launch the Command Prompt in Administrator.

image

Change the directory to : C:\Program Files\Microsoft Data Protection Manager\DPM\bin in the Protected server (not DPM)

Key in as follow :
SetDPMServer.exe –DPMServerName DPMServerName

Note : Replace the DPMServerName with your DPM Server.  The rest of the syntax stays the same.


Rerun the Synchronization in your DPM Console.  It should resolved.

image

keywords : DPM, DPM 2012, DPM 2012 R2, Owner DPM Server ID 3184 The file or directory is corrupted and unreadable (0x80070570), DPM could not run backup/recovery job for the data source it is owned by a different DPM Server, Take data source ownership



Monday, January 15, 2018

Azure–Upsize VM while Maintaining VHD

Upsizing a VM which is in the same family will be easy to perform.  However, what happens if I want to upsize the VM to another category/family ?

I’m going to share the steps.

Scenario :

A VM (DC) that is in the size of Standard A1.  I’ll need to upgrade to size to Standard A1 V2.  Need to maintain the information.

In the steps I’ve created a text document and place it in the desktop of the old VM before I upsize the VM, just to show that the data is still intact.

image

Before changing the VM size.

image

The above shows the VM size

image

The above shows the VM (BK-TRN-DC01) in the resource group name rg_bkhoo_training

image

Take note of the VH VHD.  This info is needed later.

Also take note of the Network Card attach to the VM.


The Process.

image

Firstly, stop the VM just like the shown above.  The VM is stopping. 

image

Once the VM has stopped, then delete the particular VM.

image

As you can see, even though the VM has been deleted, the VHD is still intact in the storage.

image

Create a new VM with the same OS in the Resource Group that you have deleted the VM

image

Now I created a new VM.  In my example I name it as BK-TRN-DC01-A.

image

Now the VM, I select the size of A1_V2 Standard.

image

In the Settings panel, key in to the same settings as the same previous VM that was deleted earlier, then click OK

Revise the Summary, then click OK.

Once the VM is created, then click on the Virtual machine to review the size.  It’s shown as follow

image

Ensure the VM is shutdown down.

Azure Storage Explorer

Next is to launch the Azure Storage Explorer and connect to the Azure Account .

image

Take note that we’re going to remove the new VHD that has been created, and attach the previous VM VHD into the new VM.

image

Firstly, select the the new VM VHD, right-click and select Break Lease.

image

Click Yes to break the lease

image

Before the deletion, copy down the name of the new VM VHD.

Select the new VM VHD, then right-click, choose Delete the new VM VHD in the Azure Storage Explorer.

image

Select Yes to confirm the deletion

image

Right-click on the previous VM VHD and select Rename. Rename the VHD to the name that was noted earlier.

image

The end result in the Azure Storage Explorer is displayed as above for my example.

Attaching back previous Network.

The next things before firing up the VM, is to attach back the previous VM Network.  It contains the previous IP address, with it’s profile.  This is very important.

Take note the VM must be shutdown in order to perform the action

Select Virtual machine networking.

image

Select Attach Network Interface.

image

Select the previous VM network interface and click OK.

image

Next is to detach the the network interface when the new VM was created.

Select the new VM interface in the tab. Then at the top click Detach network interface.

image

Click OK to confirm.

image

Take note of the previous Private VM IP has been attached to the new VM.

image

Now can Start the VM.

RDP into the VM

image

Take note that the new VM hostname is the old VM hostname.  This is because is using the previous VHD. 

Also take note of the IP address.  It’s the previous VM IP address. 

Hope the steps has helped you on how to migrate your VMs from one size to another (from different category) without much of hassles.  The method also can be use to migrate the VMs from classic to the new Azure Portal.


keywords : Azure migration, azure up size, azure family, azure migration of different family, virtualization, azure sizing.

Wednesday, January 10, 2018

Azure Storage Explorer–Release 0.9.3

The Microsoft Azure Storage Explorer was release in December 2017.

Can download from the link  here

image

keywords : Azure Storage Explorer, storage, azure, cloud storage