Skip to content

adding compute bulkactions SDK tests for partial RP#21

Open
hardikginwala wants to merge 2 commits into
mainfrom
pr/compute-bulkactions-partial-rp-tests
Open

adding compute bulkactions SDK tests for partial RP#21
hardikginwala wants to merge 2 commits into
mainfrom
pr/compute-bulkactions-partial-rp-tests

Conversation

@hardikginwala

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new ComputePowerOpsTest console project intended to exercise Compute BulkActions workflows (start then deallocate) against a specified subscription/resource group/VM set, and wires the project into the repository solution.

Changes:

  • Introduces a new CLI-driven executable (ComputePowerOpsTest) that submits bulk start/deallocate operations and polls until completion.
  • Adds a new project file referencing the intended BulkActions SDK package.
  • Updates the solution to include the new project.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/ComputePowerOpsTest/Program.cs New CLI executable implementing bulk start/deallocate workflow plus polling and argument parsing.
src/ComputePowerOpsTest/ComputePowerOpsTest.csproj New project definition with a PackageReference to the BulkActions SDK.
src/azure-computeschedule-dotnet-samples.sln Adds the new project to the solution (but currently introduces a leading blank line).

To run this

dotnet run --project src/ComputePowerOpsTest/ComputePowerOpsTest.csproj -- --subscription-id 1d04e8f1-ee04-4056-b0b2-718f5bb45b04 --resource-group hginwala-partialsdktest25 --vm-name partialsdkdemo2


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/azure-computeschedule-dotnet-samples.sln Outdated
Comment on lines +12 to +14
private static readonly TimeSpan InitialPollDelay = TimeSpan.FromSeconds(20);
private static readonly TimeSpan PollInterval = TimeSpan.FromSeconds(15);
private static readonly TimeSpan PollTimeout = TimeSpan.FromMinutes(45);
Comment on lines +7 to +10
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>ComputePowerOpsTest</RootNamespace>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 26, 2026 03:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment on lines +188 to +192
if (string.IsNullOrWhiteSpace(subscriptionId))
{
validationError = "--subscription-id is required.";
return false;
}
Comment on lines +200 to +204
if (vmNames.Count == 0)
{
validationError = "At least one VM is required. Use --vm-name or --vm-names.";
return false;
}
Comment on lines +1 to +15
<Project Sdk="Microsoft.NET.Sdk">

<ItemGroup>
<PackageReference Include="Azure.ResourceManager.Compute.BulkActions" Version="1.0.0" />
</ItemGroup>

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>ComputePowerOpsTest</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
Comment on lines +28 to +29
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputePowerOpsTest", "ComputePowerOpsTest\ComputePowerOpsTest.csproj", "{F9BD5F72-27DB-4594-AB06-A22018EC9C80}"
EndProject
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants