Reputation: 67
All,
I am trying to figure out how to install software specifically TrendMicro onto Azure VMs using VSTS DSC configurations. All i need is to be pointed in the right direction on how to accomplish this or suggestions. I have very little experience doing this so any help would be greatly appreciated.
Thanks
Upvotes: 1
Views: 2961
Reputation: 38106
To install software to Azure VM by PowerShell DSC, you can refer the document Deploy your application on virtual machine scale sets.
As the example Install an app to a Windows VM with PowerShell DSC, the example powershell script as:
# Define the script for your Desired Configuration to download and run
$dscConfig = @{
"wmfVersion" = "latest";
"configuration" = @{
"url" = "https://github.com/Azure-Samples/compute-automation-configurations/raw/master/dsc.zip";
"script" = "configure-http.ps1";
"function" = "WebsiteTest";
};
}
# Get information about the scale set
$vmss = Get-AzureRmVmss `
-ResourceGroupName "myResourceGroup" `
-VMScaleSetName "myScaleSet"
# Add the Desired State Configuration extension to install IIS and configure basic website
$vmss = Add-AzureRmVmssExtension `
-VirtualMachineScaleSet $vmss `
-Publisher Microsoft.Powershell `
-Type DSC `
-TypeHandlerVersion 2.24 `
-Name "DSC" `
-Setting $dscConfig
# Update the scale set and apply the Desired State Configuration extension to the VM instances
Update-AzureRmVmss `
-ResourceGroupName "myResourceGroup" `
-Name "myScaleSet" `
-VirtualMachineScaleSet $vmss
Upvotes: 3