Microsoft.AVS.Management/samples
Eugene Tolmachev b95b565508
.NET SDK sample (#64)
2022-10-21 14:48:10 -04:00
..
AVSScripting.csproj .NET SDK sample (#64) 2022-10-21 14:48:10 -04:00
Program.cs .NET SDK sample (#64) 2022-10-21 14:48:10 -04:00
README.md .NET SDK sample (#64) 2022-10-21 14:48:10 -04:00
local.settings.json .NET SDK sample (#64) 2022-10-21 14:48:10 -04:00

README.md

Execute AVS commandlet via .NET SDK

Minimal sample that demonstrates executing AVS Run Command commandlet via .NET SDK.

Running the sample

Pre-requisites

  1. .NET SDK 5.x
  2. az CLI if intending to impersonate the current user*
  3. Edit local.settings.json and provide the details of your AVS cloud
  4. Optional: edit Program.cs to provide arguments for your commandlet.

*NOTE: See the docs for TokenCredential for details.

Use az CLI to login or setup the environment variables as required then execute the sample.