Skip to content
Open
Show file tree
Hide file tree
Changes from 67 commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
4eb0e52
version
Sep 4, 2025
4c6f59a
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 8, 2025
338b823
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 11, 2025
5f1e5fc
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 12, 2025
d0f26eb
Merge branch 'microsoft:main' into main
shirasassoon Sep 15, 2025
f0b634c
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 16, 2025
6a33496
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 25, 2025
9d33932
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 25, 2025
10ccfe7
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Sep 26, 2025
9a6cfdc
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Oct 6, 2025
ac97507
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Oct 30, 2025
82f7ff0
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Nov 4, 2025
d0043c6
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Nov 17, 2025
a0cf0c8
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Nov 26, 2025
c2f6b49
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Nov 30, 2025
785d04e
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 1, 2025
edee296
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 3, 2025
fd29273
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 3, 2025
c67b4c8
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 9, 2025
96cba82
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 11, 2025
270aab9
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 16, 2025
377f805
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 16, 2025
c0a9e37
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Dec 21, 2025
a3fd973
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 6, 2026
16cd043
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 7, 2026
8edb0cf
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 11, 2026
0619a6b
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 15, 2026
0879258
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 19, 2026
fd0d6f7
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 20, 2026
669b206
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 22, 2026
64d630a
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 22, 2026
66d75bd
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 26, 2026
c0bbaf9
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 28, 2026
da9b4b9
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Jan 28, 2026
6f1a4d7
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Feb 2, 2026
7e6f3dd
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Feb 3, 2026
daf13ed
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Feb 4, 2026
5a8f6b9
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Feb 10, 2026
c681197
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Feb 10, 2026
3ec1618
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Feb 15, 2026
566179e
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Mar 2, 2026
d898928
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Mar 4, 2026
7f392dc
Merge branch 'main' of https://github.com/shirasassoon/fabric-cicd
Mar 5, 2026
18ed3d7
Merge branch 'microsoft:main' into main
shirasassoon Mar 8, 2026
daa88f0
Merge branch 'microsoft:main' into main
shirasassoon Mar 8, 2026
8a60f49
Merge branch 'microsoft:main' into main
shirasassoon Mar 9, 2026
7d4c441
Merge branch 'microsoft:main' into main
shirasassoon Mar 11, 2026
84858d5
Merge branch 'microsoft:main' into main
shirasassoon Mar 12, 2026
9961dbb
Merge branch 'microsoft:main' into main
shirasassoon Mar 16, 2026
0f99a88
Merge branch 'microsoft:main' into main
shirasassoon Mar 17, 2026
f838121
fix
Mar 19, 2026
bb5ac5e
revert
Mar 19, 2026
0a4849f
Merge branch 'microsoft:main' into main
shirasassoon Mar 22, 2026
9e02033
Merge branch 'microsoft:main' into main
shirasassoon Mar 22, 2026
29ca3a6
Merge branch 'microsoft:main' into main
shirasassoon Mar 23, 2026
47a8264
updates
Mar 23, 2026
05cb48c
update scripts
Mar 24, 2026
961b80b
fix
Mar 24, 2026
46dccae
fix
Mar 24, 2026
ec2d3ab
Merge branch 'main' into retire_defaultazurecredential
shirasassoon Mar 25, 2026
0967c4f
revert
Mar 25, 2026
0ed31c5
Merge branch 'retire_defaultazurecredential' of https://github.com/sh…
Mar 25, 2026
b3e8aab
fix docs
Mar 25, 2026
8536448
update
Mar 25, 2026
074dfc8
Merge branch 'main' into retire_defaultazurecredential
shirasassoon Mar 25, 2026
408e994
add changelog
Mar 25, 2026
4c51efa
fix warning
Mar 25, 2026
132fc63
Merge branch 'main' into retire_defaultazurecredential
shirasassoon Mar 26, 2026
05143a9
feedback
Mar 26, 2026
cb1a42a
Merge branch 'retire_defaultazurecredential' of https://github.com/sh…
Mar 26, 2026
5fc234d
fix
Mar 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changes/unreleased/optimization-20260325-161506.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
kind: optimization
body: Add deprecation warning for `DefaultAzureCredential` fallback with migration guidance to explicit `token_credential` parameter
time: 2026-03-25T16:15:06.677907+02:00
custom:
Author: shirasassoon
AuthorLink: https://github.com/shirasassoon
Issue: "903"
IssueLink: https://github.com/microsoft/fabric-cicd/issues/903
21 changes: 11 additions & 10 deletions devtools/debug_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

# The following is intended for developers of fabric-cicd to debug and call Fabric REST APIs locally from the github repo

from azure.identity import ClientSecretCredential, DefaultAzureCredential
from azure.identity import AzureCliCredential, AzurePowerShellCredential, ClientSecretCredential

from fabric_cicd import change_log_level, constants
from fabric_cicd._common._fabric_endpoint import FabricEndpoint
Expand All @@ -13,20 +13,21 @@
# change_log_level()

if __name__ == "__main__":
# Replace None correct value when using SPN auth
# Azure CLI auth - comment out to use a different auth method
token_credential = AzureCliCredential()

# Uncomment to use PowerShell auth
# token_credential = AzurePowerShellCredential()

# Uncomment to use SPN auth
# client_id = "your-client-id"
# client_secret = "your-client-secret"
# tenant_id = "your-tenant-id"
token_credential = (
None # ClientSecretCredential(client_id=client_id, client_secret=client_secret, tenant_id=tenant_id)
)
# token_credential = ClientSecretCredential(client_id=client_id, client_secret=client_secret, tenant_id=tenant_id)

# Create endpoint object
fe = FabricEndpoint( # if credential is not defined, use DefaultAzureCredential
token_credential=(
DefaultAzureCredential() if token_credential is None else validate_token_credential(token_credential)
)
)
fe = FabricEndpoint(token_credential=validate_token_credential(token_credential))

# Set workspace id variable if needed in API url
workspace_id = "8f5c0cec-a8ea-48cd-9da4-871dc2642f4c"

Expand Down
12 changes: 9 additions & 3 deletions devtools/debug_local config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
from pathlib import Path

from azure.identity import ClientSecretCredential
from azure.identity import AzureCliCredential, AzurePowerShellCredential, ClientSecretCredential

root_directory = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(root_directory / "src"))
Expand All @@ -19,6 +19,12 @@
# In this example, the config file sits within the root/sample/workspace directory
config_file = str(root_directory / "sample" / "workspace" / "config.yml")

# Azure CLI auth - comment out to use a different auth method
token_credential = AzureCliCredential()

# Uncomment to use PowerShell auth
# token_credential = AzurePowerShellCredential()

# Uncomment to use SPN auth
# client_id = "your-client-id"
# client_secret = "your-client-secret"
Expand All @@ -31,8 +37,8 @@
config_file_path=config_file,
# Comment out if environment is not needed
environment="dev",
# Uncomment to use SPN auth
# token_credential=token_credential,
# Explicit token credential required for auth (choose one of the options above)
token_credential=token_credential,
# Uncomment to override specific config values (pass in a dictionary of override values)
# config_override=config_override_dict
)
12 changes: 9 additions & 3 deletions devtools/debug_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import sys
from pathlib import Path

from azure.identity import ClientSecretCredential
from azure.identity import AzureCliCredential, AzurePowerShellCredential, ClientSecretCredential

root_directory = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(root_directory / "src"))
Expand Down Expand Up @@ -51,6 +51,12 @@
"SparkJobDefinition",
]

# Azure CLI auth - comment out to use a different auth method
token_credential = AzureCliCredential()

# Uncomment to use PowerShell auth
# token_credential = AzurePowerShellCredential()

# Uncomment to use SPN auth
# client_id = "your-client-id"
# client_secret = "your-client-secret"
Expand All @@ -65,8 +71,8 @@
environment=environment,
repository_directory=repository_directory,
item_type_in_scope=item_type_in_scope,
# Uncomment to use SPN auth
# token_credential=token_credential,
# Explicit token credential required for auth (choose one of the options above)
token_credential=token_credential,
)

# Uncomment to publish
Expand Down
5 changes: 4 additions & 1 deletion devtools/debug_trace_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import sys
from pathlib import Path

from azure.identity import AzureCliCredential

root_directory = Path(__file__).resolve().parent.parent
sys.path.insert(0, str(root_directory / "src"))

Expand All @@ -27,7 +29,6 @@ def main():
raise ValueError(msg)

environment = "PPE"

repository_directory = str(root_directory / "sample" / "workspace")
item_type_in_scope = [
"Dataflow",
Expand All @@ -49,13 +50,15 @@ def main():
"VariableLibrary",
"Warehouse",
]
token_credential = AzureCliCredential()
for flag in ["enable_shortcut_publish", "continue_on_shortcut_failure"]:
fabric_cicd.append_feature_flag(flag)
target_workspace = fabric_cicd.FabricWorkspace(
workspace_id=workspace_id,
environment=environment,
repository_directory=str(repository_directory),
item_type_in_scope=item_type_in_scope,
token_credential=token_credential,
)
fabric_cicd.publish_all_items(target_workspace)

Expand Down
Loading
Loading