adding compute bulkactions SDK tests for partial RP#21
Open
hardikginwala wants to merge 2 commits into
Open
Conversation
Contributor
There was a problem hiding this comment.
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 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>
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.