Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployed scheduled trigger has wrong time due to timezone #402

Open
timtransport opened this issue Jul 23, 2024 · 0 comments
Open

Deployed scheduled trigger has wrong time due to timezone #402

timtransport opened this issue Jul 23, 2024 · 0 comments
Labels
triage Issue is under investigation

Comments

@timtransport
Copy link

Describe the bug
Scheduled trigger for different timezone is not converted in the deployed environment

To Reproduce

  1. Make a scheduled trigger with a particular start time and timezone that is +10
  2. Deploy to new environment using following settings
param
(
    [parameter(Mandatory = $true)] [String] $rootFolder,
    [parameter(Mandatory = $true)] [String] $dataFactoryName,
    [parameter(Mandatory = $true)] [String] $resourceGroupName,
    [parameter(Mandatory = $true)] [String] $location,
    [parameter(Mandatory = $true)] [String] $configPath,
    [parameter(Mandatory = $true)] [String] $folderName,
    [parameter(Mandatory = $true)] [String] $triggerName
)
$opt = New-AdfPublishOption
$opt.Includes.Add("trigger.*", "")

$opt.CreateNewInstance = $false
$opt.DeleteNotInSource = $true
$opt.DoNotDeleteExcludedObjects = $false

Publish-AdfV2FromJson -RootFolder "$rootFolder" -ResourceGroupName "$resourceGroupName" -DataFactoryName "$dataFactoryName" -Location "$location" -Option $opt -Stage "$configPath"

Expected behaviour
The deployed trigger should have a start time, end time and schedule execution time that matches the original trigger configuration. Instead the times are shifted by the timezone and no longer matches

Screenshots
Source
image

Target
image

Version of PowerShell module of:

  • ver 1.9.1

Provide all files to reproduce the issue

@timtransport timtransport added the triage Issue is under investigation label Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage Issue is under investigation
Projects
None yet
Development

No branches or pull requests

1 participant