Hi @Mani,
Thank you for contacting Microsoft Q&A. Please find below the detailed steps to address the reported issue.
This looks like a known/ongoing issue with Azure Data Factory (ADF) — specifically when deploying an Oracle 2.0 connector linked service via a Git-based CI/CD pipeline: the "authenticationType": "Basic" property doesn’t always get preserved publishing mode after publish, ending up as null. TECHCOMMUNITY.MICROSOFT.COM+1
Root cause (known issue / bug)
- The problem seems to stem not from your creation of the linked service, but from how ADF’s Git-publish (CI/CD) flow handles the Oracle connector JSON: during the publish step, the authenticationType property is dropped/omitted.
- Multiple community reports and a fix announcement by Microsoft in May 2025 suggest that this is a bug in the Oracle connector (v2.0) that affected regions.
- As a result, although in your feature branch (Git) the JSON shows "authenticationType": "Basic", after publishing the live-mode representation shows it as null. This causes authentication failures at runtime.
What you should do now: work around / fix
- Update to latest ADF version / ensure fix is applied
- Verify whether your ADF workspace is in a region where the May 27, 2025, fix has been rolled out. The fix reportedly resolved the issue for Oracle 2.0 connector in affected regions.
- If not updated yet, consider opening a support ticket with Microsoft to request the fix or migration of your workspace to a region that has the patched connector.
- Manually patch the linked-service JSON in the published (live) workspace
- In the ADF portal (live mode), locate the deployed Oracle linked service.
- Edit its JSON definition and manually add:
- "authenticationType": "Basic"
(alongside the existing properties like server, username, password, connectVia, etc.)
Save/publish the change to ensure ADF will honor the Basic auth setting at runtime.
-
- This is effective (per community reports) when the automated publish dropped the authentication property.
- If using scripted/automated deployments (e.g. PowerShell, ARM templates, Terraform), verify they include authenticationType
- For example, some users reported that az datafactory linked-service create or Terraform-based deployment ignores the authentication property, leading to missing auth type after deployment.
- If your CI/CD uses PowerShell, ARM, or Terraform, update the deployment definition to explicitly include "authenticationType": "Basic" (or parameterize it), rather than relying on default or omitted values.
- Use secrets / Key Vault rather than embedding credentials directly
- As a best practice (and partly to avoid secrets in Git), store database credentials (username/password) in an Azure Key Vault and reference them in the linked service. This doesn’t directly solve the authenticationType bug — but reduces risk and avoids “secrets in code” issues. This aligns with general ADF recommendations.