RSS

Tag Archives: command line

How to turn on/off AX VM through Powershell

First, you need to install Azure PowerShell

Go to the Azure Downloads page and click the link to install the Azure PowerShell cmdlets.

clip_image001

Step 1: Get-AzureVM to find out all your VMs hosted on Azure. In my case i have one VM for AX2012 which was deployed through LCS

image

Make sure to copy ServiceName and Name

image

Step 2: How to start

image

Syntax: Start-AzureVM -ServiceName “AX2012R3-Demo-Demo-da16992830bbf75a” -Name “DEMO-41e1aa3f1f”

Refresh Azure Portal > VM > Status , you will see eventually the status will become “Running”

image

image

Step 3: How to stop

image

Syntax: Stop-AzureVM -ServiceName “AX2012R3-Demo-Demo-da16992830bbf75a” -Name “DEMO-41e1aa3f1f” -Force

image

Bonus:

How to get RDP file

image

Syntax: Get-AzureRemoteDesktopFile -ServiceName “AX2012R3-Demo-Demo-da16992830bbf75a” -Name “DEMO-41e1aa3f1f” -LocalPath “c:\temp\AzureAX.rdp”

image

How to launch RDP from command line directly

image

Syntax: Get-AzureRemoteDesktopFile -ServiceName $serviceName -Name $vmName –Launch

A session will pop up and prompt to connect to the VM
image

How to delete a virtual machine

image

Syntax: Remove-AzureVM -ServiceName “AX2012R3-Demo-Demo-da16992830bbf75a” -Name “DEMO-41e1aa3f1f” –DeleteVHD

image

Advertisements
 
Leave a comment

Posted by on April 27, 2015 in Development

 

Tags: , , , , ,

Tips and Tricks – CU7 – Compile optimization for CU6

Everyone is fascinated about CU7 compiler but you have to wait until you are approved to install CU7 onto your environment. For one likes me, I could not wait and decided to poke around with CU7 and have discovered that CU7 should provide backward compatibility; therefore I’m going to give it a try to get the AX32Build to my CU6 environment

My VM machine:

· Intel Core i7 2.67 GHz
· Memory: 12288
· OS: Running Dynamics AX 2012 (CU6) – No custom codes

Kernel should support backward compatibility. Here is the trick how to install on CU6 and get the AX32Build.exe file

clip_image002

clip_image004

Script: Go to the folder where AX32Serv.exe is

axbuild.exe xppcompileall /aos=01 /nocleanup /altbin=”C:\Program Files (x86)\Microsoft Dynamics AX\60\Client\Bin” /workers=4

Command Line

clip_image006

Workers: 4

clip_image008

The result is amazing. Try it for yourself and spread the words. Have fun DAXing.

 
Leave a comment

Posted by on November 18, 2013 in Installation and Configuration

 

Tags: , , , , , ,

 
%d bloggers like this: