@fabric-harness/azure
v0.5.0
Published
Azure Container Apps / Container Instances / AKS adapter for Fabric Harness.
Downloads
143
Maintainers
Readme
@fabric-harness/azure
Azure and Foundry integration helpers for Fabric Harness.
Current surface:
AzureOpenAIModelProvider— Azure OpenAI chat/completions adapter.createAzureBlobArtifactStore()— Blob-backed artifact storage helper.createAzureKeyVaultSecretResolver()— Key Vault secret resolver for scoped commands.FoundryAgentServiceClient/foundryAgentTool()— invoke Azure AI Foundry Agent Service from Fabric agents.AzureArmClienttools for Container Apps jobs, AKS Run Command, and ACI exec-session creation.
Install
npm install @fabric-harness/azure @fabric-harness/sdkFoundry Agent Service as a tool
import { createFoundryAgentServiceClient, foundryAgentTool } from '@fabric-harness/azure';
const foundry = createFoundryAgentServiceClient({
projectEndpoint: process.env.AZURE_FOUNDRY_PROJECT_ENDPOINT!,
agentId: process.env.AZURE_FOUNDRY_AGENT_ID!,
token: process.env.AZURE_TOKEN!,
});
const agent = await init({ tools: [foundryAgentTool(foundry)] });Azure control-plane tools
import { createAzureArmClient, azureContainerAppsJobTool, azureAksRunCommandTool } from '@fabric-harness/azure';
const arm = createAzureArmClient({ subscriptionId: process.env.AZURE_SUBSCRIPTION_ID!, token: process.env.AZURE_TOKEN! });
const tools = [azureContainerAppsJobTool(arm), azureAksRunCommandTool(arm)];Keep Azure credentials in environment variables, managed identity token providers, or secret stores. Do not put tokens in prompts or payloads.
License
Apache-2.0
