Created
February 14, 2017 20:44
-
-
Save bobalob/345bbe8dba3a1f2731d8fb0d9a70d1ce to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$resourceGroup = "DSC-Test-Resources" | |
$location = "northeu" | |
$vmName = "MyCoolVM" | |
$storageName = "dsctestresourcesdisks871" | |
#Publish the configuration script into user storage | |
Publish-AzureRmVMDscConfiguration -ConfigurationPath .\dsc-webserver.ps1 ` | |
-ResourceGroupName $resourceGroup -StorageAccountName $storageName -force | |
#Set the VM to run the DSC configuration | |
Set-AzureRmVmDscExtension -Version 2.21 -ResourceGroupName $resourceGroup ` | |
-VMName $vmName -ArchiveStorageAccountName $storageName ` | |
-ArchiveBlobName dsc-webserver.ps1.zip -AutoUpdate:$true ` | |
-ConfigurationName "DSCWebServer" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment