-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
68 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
59 changes: 59 additions & 0 deletions
59
CI/Azure-DevOps/CreateSqlVirtualMachineTemplate-2008R2.bicep
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
param sqlConnectivityType string = 'Public' | ||
param sqlPortNumber int = 41433 | ||
param sqlStorageWorkloadType string = 'General' | ||
param sqlStorageDisksConfigurationType string = 'NEW' | ||
param sqlDataSettingsDefaultFilePath string = 'F:\\data' | ||
param sqlDataSettingsLUNs array = [ | ||
0 | ||
] | ||
param sqlLogSettingsDefaultFilePath string = 'F:\\log' | ||
param sqlLogSettingsLUNs array = [ | ||
0 | ||
] | ||
param sqlAutopatchingDayOfWeek string = 'Sunday' | ||
param sqlAutopatchingStartHour int = 2 | ||
param sqlAutopatchingWindowDuration int = 60 | ||
param sqlAuthenticationLogin string = 'tSQLt' | ||
param sqlAuthenticationPassword string = 'sdlfksdlkfjlsdkjf39939^' | ||
param newVMName string = 'V1052sql2014sp3' | ||
param newVMRID string = '/subscriptions/58c04a99-5b92-410c-9e41-10262f68ca80/resourceGroups/tSQLtCI_DevTestLab_20200318_1052-V1052sql2014sp3-155797/providers/Microsoft.Compute/virtualMachines/V1052sql2014sp3' | ||
|
||
resource newVMName_resource 'Microsoft.SqlVirtualMachine/SqlVirtualMachines@2017-03-01-preview' = { | ||
name: newVMName | ||
location: resourceGroup().location | ||
properties: { | ||
virtualMachineResourceId: newVMRID | ||
sqlManagement: 'Full' | ||
sqlServerLicenseType: 'PAYG' | ||
autoPatchingSettings: { | ||
enable: true | ||
dayOfWeek: sqlAutopatchingDayOfWeek | ||
maintenanceWindowStartingHour: sqlAutopatchingStartHour | ||
maintenanceWindowDuration: sqlAutopatchingWindowDuration | ||
} | ||
keyVaultCredentialSettings: { | ||
enable: false | ||
credentialName: '' | ||
} | ||
storageConfigurationSettings: { | ||
diskConfigurationType: sqlStorageDisksConfigurationType | ||
sqlDataSettings : { | ||
luns: sqlDataSettingsLUNs | ||
defaultFilePath: sqlDataSettingsDefaultFilePath | ||
} | ||
sqlLogSettings: { | ||
luns: sqlLogSettingsLUNs | ||
defaultFilePath: sqlLogSettingsDefaultFilePath | ||
} | ||
storageWorkloadType: sqlStorageWorkloadType | ||
} | ||
serverConfigurationsManagementSettings: { | ||
sqlConnectivityUpdateSettings: { | ||
connectivityType: sqlConnectivityType | ||
port: sqlPortNumber | ||
sqlAuthUpdateUserName: sqlAuthenticationLogin | ||
sqlAuthUpdatePassword: sqlAuthenticationPassword | ||
} | ||
} | ||
} | ||
} |