1 parent 49b6112 commit bb379b2Copy full SHA for bb379b2
1 file changed
remediate_rbac.py
@@ -0,0 +1,20 @@
1
+import asyncio
2
+from copilot import CopilotClient
3
+
4
+async def main():
5
+ client = CopilotClient()
6
+ await client.start()
7
8
+ session = await client.create_session({"model": "gpt-5-agent"})
9
10
+ print("🤖 Agentic MPF is scanning for the last deployment failure...")
11
+ prompt = "Find the last RBAC failure in my subscription and use the MPF skill to suggest a Bicep fix."
12
13
+ response = await session.send_and_wait({"prompt": prompt})
14
+ print("\n--- Agent Remediation ---")
15
+ print(response.data.content)
16
17
+ await client.stop()
18
19
+if __name__ == "__main__":
20
+ asyncio.run(main())
0 commit comments