Partilhar via


SetupComplete2.cmd File Example

The following code is an example of the SetComplete2.cmd file on a Microsoft Azure virtual machine. When you create an Azure virtual machine that you want to use as an Azure Marketplace image for Dynamics NAV deployment, you use the SetComplete2.cmd file to Schedule the second part of SysPrep-based SQL Server installation on the 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 Microsoft Azure Virtual Machine Operating System Image for Microsoft Dynamics NAV.

See Also

How to: Create a Microsoft Azure Virtual Machine Operating System Image for Microsoft Dynamics NAV
SQL Server Sysprep Installation Configuration File Example
Preparing for Deploying Microsoft Dynamics NAV on Microsoft Azure
Preparing a Microsoft Azure Virtual Machine Image for Microsoft Dynamics NAV