SetupComplete2.cmd File Example
The following code is an example of the SetComplete2.cmd file on a Windows Azure virtual machine. When you create a Windows Azure virtual machine that you want to use as a Windows Azure Gallery image for Microsoft Dynamics NAV deployment, you use the SetComplete2.cmd file to Schedule the second part of SysPrep-based SQL Server installation on the Windows Azure virtual machine that is created from the image.
Copy the following code into the SetComplete2.cmd file.
@ECHO OFF && SETLOCAL && SETLOCAL ENABLEDELAYEDEXPANSION && SETLOCAL ENABLEEXTENSIONS
REM All commands will be executed during first Virtual Machine boot
"C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\SQLServer2012\setup.exe" /QS /ACTION=CompleteImage /INSTANCEID=MSSQLSERVER /INSTANCENAME=MSSQLSERVER /IACCEPTSQLSERVERLICENSETERMS=1 /SQLSYSADMINACCOUNTS=%COMPUTERNAME%\Administrator /BROWSERSVCSTARTUPTYPE=AUTOMATIC /INDICATEPROGRESS /TCPENABLED=1
For more information about how to use the SetComplete2.cmd file, see How to: Create a Windows Azure Virtual Machine Operating System Image for Microsoft Dynamics NAV.
See Also
Tasks
How to: Create a Windows Azure Virtual Machine Operating System Image for Microsoft Dynamics NAV
Concepts
SQL Server Sysprep Installation Configuration File Example
Preparing for Deploying Microsoft Dynamics NAV on Windows Azure
Preparing a Windows Azure Virtual Machine Image for Microsoft Dynamics NAV