Hello @Rajesh Gopisetti Welcome to QnA forum,
What programming language are you using here? Any sample code snippets or any documentation you have followed?
Please add screenshots of your trigger logs if they are available? any error logs? either form your code execution or from Azure portal?
Any Firewall issues?
Is this intermittent issue?
Any API version issue?
What is the Trigger Type?
Azure Region?
def main():
# Azure subscription ID
subscription_id = '597e'
rg_name = 'MyRG'
df_name = 'msce'
# Specify your Active Directory client ID, client secret, and tenant ID
credentials = ClientSecretCredential(client_id='1f52', client_secret='2i', tenant_id='c8')
resource_client = ResourceManagementClient(credentials, subscription_id)
adf_client = DataFactoryManagementClient(credentials, subscription_id)
# Create a trigger
adf_client.triggers.create_or_update( resource_group_name="MyRG",
factory_name="msftCommunityspace",
trigger_name="ETFTrigger",
trigger={
"properties": {
"pipelines": [
{
# "parameters": {"OutputBlobNameList": ["exampleoutput.csv"]},
"pipelineReference": {"referenceName": "MonitorPipelineTriggers", "type": "PipelineReference"},
}
],
"type": "ScheduleTrigger",
"typeProperties": {
"recurrence": {
"endTime": "2018-06-16T00:55:13.8441801Z",
"frequency": "Minute",
"interval": 4,
"startTime": "2018-06-16T00:39:13.8441801Z",
"timeZone": "UTC",
}
},
}
},)
# Start A Trigger
adf_client.triggers.begin_start(
resource_group_name="MyRG",
factory_name="mse",
trigger_name="ETFTrigger",
).result()
# Start the trigger
# adf_client.triggers.start(rg_name, df_name, tr_name)
# Start the main method
main()
The trigger will be created and published, you may try to edit the trigger from the portal and you may see the publish option. But the above script creates the trigger and publishes.
If the response is helpful, please click "Accept Answer" and Click 'Yes' (For Short Survey). So that we can close this case.