Open jmikedupont2 opened 1 year ago
go install github.com/Azure/aztfy@latest
Certainly, let's break down the GitHub issue titled "create azure infrastructure" into a series of API calls:
Create Task for Azure Infrastructure
/agent/tasks
{
"title": "Create Azure Infrastructure",
"description": "This task involves creating Azure infrastructure."
}
{
"task_id": "e2ba7b92-3d58-4b67-85e5-90f062312bb3",
"artifacts": []
}
Execute Step to Install Azure SDK
/agent/tasks/e2ba7b92-3d58-4b67-85e5-90f062312bb3/steps
{
"name": "Install Azure SDK",
"input": "Follow the instructions to install the Azure SDK.",
"additional_input": {
"instructions_link": "https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-on-premises-apps?tabs=azure-portal"
}
}
{
"task_id": "e2ba7b92-3d58-4b67-85e5-90f062312bb3",
"step_id": "fb93aa65-790d-441c-92a6-9f3e0b1a7c51",
"name": "Install Azure SDK",
"status": "completed",
"output": "Azure SDK installed successfully.",
"additional_output": {
"instructions_link": "https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-on-premises-apps?tabs=azure-portal"
},
"artifacts": [],
"is_last": false
}
Execute Step to Run Azure CLI Command
/agent/tasks/e2ba7b92-3d58-4b67-85e5-90f062312bb3/steps
{
"name": "Run Azure CLI Command",
"input": "Run the command 'go install github.com/Azure/aztfy@latest'.",
"additional_input": {}
}
{
"task_id": "e2ba7b92-3d58-4b67-85e5-90f062312bb3",
"step_id": "8f96f1ef-6321-4e68-b238-bc69a0f3e8db",
"name": "Run Azure CLI Command",
"status": "completed",
"output": "Command executed successfully.",
"additional_output": {},
"artifacts": [],
"is_last": true
}
List All Artifacts for Task
/agent/tasks/e2ba7b92-3d58-4b67-85e5-90f062312bb3/artifacts
{
"artifacts": []
}
Get Details about Task
/agent/tasks/e2ba7b92-3d58-4b67-85e5-90f062312bb3
{
"task_id": "e2ba7b92-3d58-4b67-85e5-90f062312bb3",
"title": "Create Azure Infrastructure",
"description": "This task involves creating Azure infrastructure.",
"artifacts": []
}
These API calls represent the step-by-step execution of the "create azure infrastructure" GitHub issue specified in the OpenAPI format. Each step corresponds to a specific action mentioned in the GitHub issue's comments. The actual implementation of these calls will depend on the programming language, HTTP library, and framework you're using.
https://learn.microsoft.com/en-us/azure/developer/python/sdk/authentication-on-premises-apps?tabs=azure-portal