File tree Expand file tree Collapse file tree
samples/manage/azure-arc-enabled-sql-server/modify-license-type Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -244,7 +244,7 @@ foreach ($sub in $subscriptions){
244244 if ($EnableESU ) {
245245 if (($settings [" LicenseType" ] | select-string " Paid" , " PAYG" ) -or ($EnableESU -eq " No" )) {
246246 $settings [" enableExtendedSecurityUpdates" ] = ($EnableESU -eq " Yes" )
247- $settings [" esuLastUpdatedTimestamp" ] = [DateTime ]::UtcNow.ToString(' yyyy-MM-ddTHH:mm:ss.fffZ ' )
247+ $settings [" esuLastUpdatedTimestamp" ] = [DateTime ]::UtcNow.ToString(' yyyy-MM-ddTHH:mm:ssZ ' )
248248 $WriteSettings = $true
249249 } else {
250250 write-host " The configured license type does not support ESUs"
@@ -256,7 +256,7 @@ foreach ($sub in $subscriptions){
256256 if (($settings [" LicenseType" ] | select-string " Paid" , " PAYG" ) -or ($UsePcoreLicense -eq " No" )) {
257257 $settings [" UsePhysicalCoreLicense" ] = @ {
258258 " IsApplied" = ($UsePcoreLicense -eq " Yes" );
259- " LastUpdatedTimestamp" = [DateTime ]::UtcNow.ToString(' yyyy-MM-ddTHH:mm:ss.fffZ ' )
259+ " LastUpdatedTimestamp" = [DateTime ]::UtcNow.ToString(' yyyy-MM-ddTHH:mm:ssZ ' )
260260 }
261261 $WriteSettings = $true
262262 } else {
@@ -271,7 +271,7 @@ foreach ($sub in $subscriptions){
271271 if (-not $settings.ContainsKey (" ConsentToRecurringPAYG" ) -or -not $settings [" ConsentToRecurringPAYG" ][" Consented" ]) {
272272 $settings [" ConsentToRecurringPAYG" ] = @ {
273273 " Consented" = $true ;
274- " ConsentTimestamp" = [DateTime ]::UtcNow.ToString(' yyyy-MM-ddTHH:mm:ss.fffZ ' )
274+ " ConsentTimestamp" = [DateTime ]::UtcNow.ToString(' yyyy-MM-ddTHH:mm:ssZ ' )
275275 }
276276 $WriteSettings = $true
277277 }
You can’t perform that action at this time.
0 commit comments