Skip to content

Commit f1425bb

Browse files
authored
Merge pull request #1189 from anosov1960/master
Added ESU timestamp
2 parents 42a07ee + d7d6d3b commit f1425bb

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('yyyy-MM-ddTHH:mm:ss.fffZ')
213214
$WriteSettings = $true
214215
} else {
215216
write-host "The configured license type does not support ESUs"

0 commit comments

Comments
 (0)