Skip to content

Commit 9beb177

Browse files
committed
Merge pull request Azure#1832 from dscsolutions/dev0218
Fix for set and remove arm cmdlet
2 parents 6d2af53 + 8b07d6b commit 9beb177

File tree

4 files changed

+1094
-2738
lines changed

4 files changed

+1094
-2738
lines changed

src/ResourceManager/Compute/Commands.Compute.Test/ScenarioTests/DscExtensionTests.ps1

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,23 +56,21 @@ function Test-GetAzureRmVMDscExtension
5656
$p = Add-AzureRmVMDataDisk -VM $p -Name 'testDataDisk1' -Caching 'ReadOnly' -DiskSizeInGB 10 -Lun 1 -VhdUri $dataDiskVhdUri1 -CreateOption Empty;
5757

5858
# OS & Image
59-
$user = "Foo12";
60-
$password = 'BaR@123' + $rgname;
59+
$user = "localadmin";
60+
$password = 'Bull_dog1';
6161
$securePassword = ConvertTo-SecureString $password -AsPlainText -Force;
6262
$cred = New-Object System.Management.Automation.PSCredential ($user, $securePassword);
6363
$computerName = 'test';
6464
$vhdContainer = "https://$stoname.blob.core.windows.net/test";
6565

6666
$p = Set-AzureRmVMOperatingSystem -VM $p -Windows -ComputerName $computerName -Credential $cred -ProvisionVMAgent;
67-
68-
$imgRef = Get-DefaultCRPWindowsImageOffline;
69-
$p = ($imgRef | Set-AzureRmVMSourceImage -VM $p);
70-
67+
$p = Set-AzureRmVMSourceImage -VM $p -PublisherName MicrosoftWindowsServer -Offer WindowsServer -Skus 2012-R2-Datacenter -Version "latest"
68+
7169
# Virtual Machine
7270
New-AzureRmVM -ResourceGroupName $rgname -Location $loc -VM $p;
7371

7472
# Test DSC Extension
75-
$version = '2.8';
73+
$version = '2.13';
7674

7775
# Publish DSC Configuration
7876
#TODO: Find a way to mock calls with storage

0 commit comments

Comments
 (0)