Skip to content

Commit 6f74d42

Browse files
author
Alexander (Sasha) Nosov
committed
Added ESU timestamp
1 parent 10cb0a2 commit 6f74d42

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

samples/manage/azure-arc-enabled-sql-server/modify-license-type/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ The following command will scan resource group `<resource_group_name>` in the su
6666
## Example 4
6767

6868
The following command will set License Type to 'Paid" and enables ESU on all servers in the subscriptions `<sub_id>` and the resource group `<resource_group_name>`.
69-
69+
7070
```console
7171
.\modify-license-type.ps1 -SubId <sub_id> -ResourceGroup <resource_group_name> -LicenseType Paid -EnableESU Yes -Force
7272
```

samples/manage/azure-arc-enabled-sql-server/modify-license-type/modify-license-type.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ foreach ($sub in $subscriptions){
210210
if ($EnableESU) {
211211
if (($settings["LicenseType"] | select-string "Paid","PAYG") -or ($EnableESU -eq "No")) {
212212
$settings["enableExtendedSecurityUpdates"] = ($EnableESU -eq "Yes")
213+
$settings["esuLastUpdatedTimestamp"] = [DateTime]::UtcNow.ToString((Get-Culture).DateTimeFormat.UniversalSortableDateTimePattern)
213214
$WriteSettings = $true
214215
} else {
215216
write-host "The configured license type does not support ESUs"

0 commit comments

Comments
 (0)