Skip to content

Commit 09a8d49

Browse files
author
Peter Hauge
committed
Update agent creation to not pass version
1 parent a69843b commit 09a8d49

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

samples/microsoft/csharp/getting-started-agents/FabricAsync.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
var fabricConnectionId = configuration["FabricConnectionId"];
1717

1818
// Create the Agent Client
19-
PersistentAgentsClient agentClient = new(
20-
projectEndpoint,
21-
new DefaultAzureCredential(),
22-
new PersistentAgentsAdministrationClientOptions(
23-
PersistentAgentsAdministrationClientOptions.ServiceVersion.V2025_05_01
24-
));
19+
PersistentAgentsClient agentClient = new(projectEndpoint, new DefaultAzureCredential());
2520

2621
// Create the MicrosoftFabricToolDefinition object needed when creating the agent
2722
ToolConnectionList connectionList = new()

samples/microsoft/csharp/getting-started-agents/FabricSync.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,7 @@
1616
var fabricConnectionId = configuration["FabricConnectionId"];
1717

1818
// Create the Agent Client
19-
PersistentAgentsClient agentClient = new(
20-
projectEndpoint,
21-
new DefaultAzureCredential(),
22-
new PersistentAgentsAdministrationClientOptions(
23-
PersistentAgentsAdministrationClientOptions.ServiceVersion.V2025_05_01
24-
));
19+
PersistentAgentsClient agentClient = new(projectEndpoint, new DefaultAzureCredential());
2520

2621
// Create the MicrosoftFabricToolDefinition object needed when creating the agent
2722
ToolConnectionList connectionList = new()

0 commit comments

Comments
 (0)