File tree Expand file tree Collapse file tree 2 files changed +1074
-2728
lines changed
src/ResourceManager/Compute/Commands.Compute.Test
SessionRecords/Microsoft.Azure.Commands.Compute.Test.ScenarioTests.DscExtensionTests Expand file tree Collapse file tree 2 files changed +1074
-2728
lines changed Original file line number Diff line number Diff line change @@ -56,23 +56,21 @@ function Test-GetAzureRmVMDscExtension
56
56
$p = Add-AzureRmVMDataDisk - VM $p - Name ' testDataDisk1' - Caching ' ReadOnly' - DiskSizeInGB 10 - Lun 1 - VhdUri $dataDiskVhdUri1 - CreateOption Empty;
57
57
58
58
# OS & Image
59
- $user = " Foo12 " ;
60
- $password = ' BaR@123 ' + $rgname ;
59
+ $user = " localadmin " ;
60
+ $password = ' Bull_dog1 ' ;
61
61
$securePassword = ConvertTo-SecureString $password - AsPlainText - Force;
62
62
$cred = New-Object System.Management.Automation.PSCredential ($user , $securePassword );
63
63
$computerName = ' test' ;
64
64
$vhdContainer = " https://$stoname .blob.core.windows.net/test" ;
65
65
66
66
$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
+
71
69
# Virtual Machine
72
70
New-AzureRmVM - ResourceGroupName $rgname - Location $loc - VM $p ;
73
71
74
72
# Test DSC Extension
75
- $version = ' 2.8 ' ;
73
+ $version = ' 2.13 ' ;
76
74
77
75
# Publish DSC Configuration
78
76
# TODO: Find a way to mock calls with storage
You can’t perform that action at this time.
0 commit comments