File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ Log-Output "Creating VM $VMName";
129129
130130$output  =  az vm create -- name " $VMName "   -- resource- group " $ResourceGroupName "   -- location " $Location "   -- admin- password " $VMAdminPwd "   ` 
131131            -- admin- username " $VMAdminName "   -- computer- name " $VMName "   -- image " $ImageUrn "   -- nics " $InterfaceName "   -- priority Spot ` 
132-             -- size $Size  |  ConvertFrom-Json ;
132+             -- size $Size  -- data - disk - sizes - gb  8   |  ConvertFrom-Json ;
133133if  (! $output ) {
134134    Log- Output " VMName: " ,  $VMName ;
135135    Log- Output " ResourceGroupName: " ,  $ResourceGroupName ;
@@ -154,7 +154,7 @@ $output = az deployment group create --resource-group $ResourceGroupName --templ
154154if  (! $output ) {
155155    Write-Error  " Error creating SqlVM"  ;
156156    return ;
157- }
157+ }    
158158$SQLVM | Out-String | Log- Output;
159159Log- Output ' DONE: Applying SqlVM Config' 
160160
Original file line number Diff line number Diff line change 11param  sqlConnectivityType  string  = 'Public' 
22param  sqlPortNumber  int  = 41433 
3- param  sqlStorageWorkloadType  string  = 'DW ' 
3+ param  sqlStorageWorkloadType  string  = 'General ' 
44param  sqlStorageDisksConfigurationType  string  = 'NEW' 
5+ param  sqlDataSettingsDefaultFilePath  string  = 'F:\\ data' 
6+ param  sqlDataSettingsLUNs  array  = [
7+   0 
8+ ]
9+ param  sqlLogSettingsDefaultFilePath  string  = 'F:\\ log' 
10+ param  sqlLogSettingsLUNs  array  = [
11+   0 
12+ ]
513param  sqlAutopatchingDayOfWeek  string  = 'Sunday' 
614param  sqlAutopatchingStartHour  int  = 2 
715param  sqlAutopatchingWindowDuration  int  = 60 
@@ -29,6 +37,14 @@ resource newVMName_resource 'Microsoft.SqlVirtualMachine/SqlVirtualMachines@2017
2937    }
3038    storageConfigurationSettings : {
3139      diskConfigurationType : sqlStorageDisksConfigurationType 
40+       sqlDataSettings  : {
41+         luns : sqlDataSettingsLUNs 
42+         defaultFilePath : sqlDataSettingsDefaultFilePath 
43+       }
44+       sqlLogSettings : {
45+         luns : sqlLogSettingsLUNs 
46+         defaultFilePath : sqlLogSettingsDefaultFilePath 
47+       }
3248      storageWorkloadType : sqlStorageWorkloadType 
3349    }
3450    serverConfigurationsManagementSettings : {
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments