i would like to write an extension for Windows Admin Center (it is a Powershell script that loops though all clusters-> through all nodes -> and finally lists up all VMs with their data( CPU, RAM...) The powershell script is finished, but how do i insert it into the WAC surface ???
Asked
Active
Viewed 244 times
1 Answers
1
you need to build a tool type extension.. here is where you can begin looking into https://learn.microsoft.com/en-us/windows-server/manage/windows-admin-center/extend/prepare-development-environment

Ani
- 61
- 1
- 7
-
thankyou for your answer (and sorry for my late reply) – Powershell21 Nov 02 '21 at 12:34
-
i tried to build an extension but i get this error message: – Powershell21 Nov 02 '21 at 12:35
-
appErrorHandler -- Cannot read properties of undefined (reading 'powerShell') So it doesnt work, although i did it exactly as told in the MIcrosoft Tutorial – Powershell21 Nov 02 '21 at 12:37
-
return this.appContext.powerShell.run(this.session, script3) – Powershell21 Nov 02 '21 at 15:10
-
looks like that MS have not updated their repository for long... thats why there are lots of errors related to dependencies and I guess your error is just one of them. Please try to reach MS to let them updating their repository – Ani Nov 03 '21 at 18:15
-
Thx! Can i do that? I mean, can i download it ("git clone ...") and then update the repositories by myself – Powershell21 Dec 03 '21 at 12:29