Skip to content
This repository was archived by the owner on Dec 6, 2023. It is now read-only.

Commit 1dd0ec0

Browse files
authored
Changed offer for SQL server and Windows server. (#383)
Existing setting results in error when script is ran. Replaced with 2022 and was able to execute the script w/o errors. Changed value to: -Offer 'SQL2022-WS2022'
1 parent 5cb3490 commit 1dd0ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

virtual-network/virtual-network-multi-tier-application/virtual-network-multi-tier-application.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ $nicVMsql = New-AzNetworkInterface -ResourceGroupName $rgName -Location $locatio
8282
# Create a SQL VM in the back-end subnet.
8383
$vmConfig = New-AzVMConfig -VMName 'MyVm-Sql' -VMSize 'Standard_DS2' | `
8484
Set-AzVMOperatingSystem -Windows -ComputerName 'MyVm-Sql' -Credential $cred | `
85-
Set-AzVMSourceImage -PublisherName 'MicrosoftSQLServer' -Offer 'SQL2016-WS2016' `
85+
Set-AzVMSourceImage -PublisherName 'MicrosoftSQLServer' -Offer 'SQL2022-WS2022' `
8686
-Skus 'Web' -Version latest | Add-AzVMNetworkInterface -Id $nicVMsql.Id
8787

8888
$vmsql = New-AzVM -ResourceGroupName $rgName -Location $location -VM $vmConfig

0 commit comments

Comments
 (0)