File tree Expand file tree Collapse file tree 2 files changed +3072
-944
lines changed
src/ServiceManagement/Common/Commands.ScenarioTest
SessionRecords/Microsoft.WindowsAzure.Commands.ScenarioTest.DscExtensionTests Expand file tree Collapse file tree 2 files changed +3072
-944
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ function Test-GetAzureVMDscExtension
12
12
13
13
# Publish DSC Configuration
14
14
$configPath = ' .\Resources\DscExtension\DummyConfig.ps1'
15
- Publish-AzureVMDscConfiguration $configPath - Force - Verbose
15
+ $StorageAccountName = " dscextensiontest"
16
+
17
+ $StorageAccountKey = Get-AzureStorageKey - StorageAccountName $StorageAccountName
18
+ $Ctx = New-AzureStorageContext - StorageAccountName $StorageAccountName - StorageAccountKey $StorageAccountKey.Primary
19
+ Publish-AzureVMDscConfiguration - ConfigurationPath $configPath - StorageContext $Ctx - Force - Verbose
16
20
17
21
# Setup
18
22
$location = Get-DefaultLocation
@@ -38,7 +42,7 @@ function Test-GetAzureVMDscExtension
38
42
$vm | Update-AzureVM - Verbose
39
43
40
44
# Call Get-AzureVMDscExtensionStatus to check the status of the installation
41
- [TimeSpan ] $timeout = [TimeSpan ]::FromMinutes(30 )
45
+ [TimeSpan ] $timeout = [TimeSpan ]::FromMinutes(60 )
42
46
$maxTime = [datetime ]::Now + $timeout
43
47
$status = Get-AzureVMDscExtensionStatus - VM $vm
44
48
@@ -77,8 +81,7 @@ function Test-GetAzureVMDscExtension
77
81
finally
78
82
{
79
83
# Cleanup
80
- Cleanup- CloudService $svcName
81
-
82
- Remove-AzureStorageAccount - StorageAccountName $storageName - ErrorAction SilentlyContinue
84
+ Remove-AzureStorageAccount - StorageAccountName $storageName - ErrorAction SilentlyContinue
85
+ Cleanup- CloudService $svcName
83
86
}
84
87
}
Load Diff Large diffs are not rendered by default.
You can’t perform that action at this time.
0 commit comments