Azure / Azure/azure-cli-extensions
[datafactory] Unable to start datafactory trigger using az cli
- Dominant language
- Python
- Stars
- 454
- Forks
- 1.7k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 64
Description
Source: https://github.com/Azure/azure-cli/issues/32842 (by @abhilash-gsynergy)
Affected extension: `datafactory` (`src/datafactory/`)
---
<<>>
# Issue #32842 (by @abhilash-gsynergy)
## Title
Unable to start datafactory trigger using az cli
## Body
### Describe the bug
I have created a datafactory and a trigger using terraform. i wanted to start the blob trigger i created. i used az cli to start the trigger but it is throwing an error.
### Related command
az datafactory trigger start --factory-name smalltestonedev25886 --name "Manifest Full Upload Event" --resource-group rg-smalltestonedev --debug
### Errors
cli.azure.cli.core.azclierror: (BadRequest) Resource cannot be updated during provisioning
Code: BadRequest
Message: Resource cannot be updated during provisioning
Target: Manifest Full Upload Event
az_command_data_logger: (BadRequest) Resource cannot be updated during provisioning
Code: BadRequest
Message: Resource cannot be updated during provisioning
Target: Manifest Full Upload Event
### Issue script & Debug output
cli.knack.cli: Command arguments: ['datafactory', 'trigger', 'start', '--factory-name', 'smalltestonedev25886', '--name', 'Manifest Full Upload Event', '--resource-group', 'rg-smalltestonedev', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [, , ]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'datafactory': ['azext_datafactory']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name Load Time Groups Commands
cli.azure.cli.core: Total (0) 0.000 0 0
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name Load Time Groups Commands Directory
cli.azure.cli.core: datafactory 0.006 16 79 /Users/admin/.azure/cliextensions/datafactory
cli.azure.cli.core: Total (1) 0.006 16 79
cli.azure.cli.core: Loaded 16 groups, 79 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command : datafactory trigger start
cli.azure.cli.core: Command table: datafactory trigger start
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate []
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to '/Users/admin/.azure/commands/2026-02-24.14-11-29.datafactory_trigger_start.84612.log'.
az_command_data_logger: command args: datafactory trigger start --factory-name {} --name {} --resource-group {} --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [.add_subscription_parameter at 0x10710cc20>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [.add_ids_arguments at 0x10710ef20>, .add_cache_arguments at 0x10710f100>, .update_breaking_change_info at 0x10710f1a0>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [, , .parse_ids_arguments at 0x10710efc0>]
az_command_data_logger: extension name: datafactory
az_command_data_logger: extension version: 1.0.4
cli.azure.cli.core.commands.client_factory: Getting management service client client_type=DataFactoryManagementClient
cli.azure.cli.core.auth.persistence: build_persistence: location='/Users/admin/.azure/msal_token_cache.json', encrypt=False
cli.azure.cli.core.auth.binary_cache: load: /Users/admin/.azure/msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: Initializing with Entra authority: https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f
msal.authority: openid_config("https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/v2.0/.well-known/openid-configuration") = {'token_endpoint': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic', 'self_signed_tls_client_auth'], 'jwks_uri': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/kerberos', 'mtls_endpoint_aliases': {'token_endpoint': 'https://mtlsauth.microsoft.com/72f5aef5-4e10-4d86-95e2-e9b1c9e9928f/oauth2/v2.0/token'}, 'tls_client_certificate_bound_access_tokens': True, 'tenant_region_scope': 'NA', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? None
cli.azure.cli.core.auth.credential_adaptor: CredentialAdaptor.get_token_info: scopes=('https://management.core.windows.net//.default',), options={}
cli.azure.cli.core.auth.msal_credentials: UserCredential.acquire_token: scopes=['https://management.core.windows.net//.default'], claims_challenge=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: c394e639-b78b-4e33-97ac-5ebdc01db82d
cli.azure.cli.core.sdk.policies: Request URL: 'https://management.azure.com/subscriptions/8198b303-d5e6-4530-83a5-d0c2e2f59b09/resourceGroups/rg-smalltestonedev/providers/Microsoft.DataFactory/factories/smalltestonedev25886/triggers/Manifest%20Full%20Upload%20Event/start?api-version=2018-06-01'
cli.azure.cli.core.sdk.policies: Request method: 'POST'
cli.azure.cli.core.sdk.policies: Request headers:
cli.azure.cli.core.sdk.policies: 'Accept': 'application/json'
cli.azure.cli.core.sdk.policies: 'x-ms-client-request-id': '9ccb5334-115c-11f1-bf1e-0602dbdd2617'
cli.azure.cli.core.sdk.policies: 'CommandName': 'datafactory trigger start'
cli.azure.cli.core.sdk.policies: 'ParameterSetName': '--factory-name --name --resource-group --debug'
cli.azure.cli.core.sdk.policies: 'User-Agent': 'AZURECLI/2.82.0 (HOMEBREW) azsdk-python-core/1.37.0 Python/3.13.11 (macOS-26.2-arm64-arm-64bit-Mach-O)'
cli.azure.cli.core.sdk.policies: 'Authorization': '*****'
cli.azure.cli.core.sdk.policies: Re
... [truncated, original was 30385 chars]
## Comments
### Comment by @azure-client-tools-bot-prd[bot]
Hi @abhilash-gsynergy,
2.82.0 is not the latest Azure CLI(2.83.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
### Comment by @yonzhan
Thank you for opening this issue, we will look into it.
### Comment by @microsoft-github-policy-service[bot]
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @zhangyd2015, @Frey-Wang, @Jingshu923.
<<>>
Contributor guide
Assessment
This issue has not been assessed yet.