As mentioned in the section Resource Manager template, there are several ways to prepare and especially deploy ARM templates. As we have focused on PowerShell we will continue to do so. To deploy the template to Azure Stack you have to be connected to your Azure Stack environment. We will use the vmdeploy.json
and the parameter.vmdeploy.json
holding to create the VM. First upload the vmdeploy.json
and the parametervmdeploy.json
to your container. Please follow the steps:
- Using PowerShell create a new container for the temporary JSON files:
$RG = Get-AzureRmResourceGroup -Name 'DEV-AST2'$storeaccount = $RG | Get-AzureRmStorageAccount -Name "stackvhds"$jsonContainer = New-AzureStorageContainer -Name vmdeploy -Permission Blob -Context $storeaccount.Context
- Upload the
vmdeploy.json
file to the containervmdeploy
and do the same for the parametervmdeploy.json
file:
$vmdeploypath = $jsonContainer | Set-AzureStorageBlobContent
-File "C:\instal\vmdeploy...