Skip to content

Az VMware Powershell Version new 2024-09-01 #27955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

anaarias-msft
Copy link

Description

Updated the AVS VMware cmdlets to the latest version [2024-09-01] from azure-rest-api-specs using autorest

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

@Copilot Copilot AI review requested due to automatic review settings June 13, 2025 04:16
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Updates the Azure VMware PowerShell module to use the 2024-09-01 API version and regenerates related documentation and UX metadata.

  • Bumped API version in UX JSON files and updated AutoRest commit & spec path in README
  • Added help markdown for new cmdlets (Get-AzVMwareSku, PureStoragePolicy, ProvisionedNetwork, Host) and updated module GUID & cmdlet listings
  • Corrected capitalization in existing cmdlet docs and cleaned up AssemblyInfo trailing whitespace

Reviewed Changes

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

Show a summary per file
File Description
src/VMware/VMware.Autorest/docs/New-AzVMwareAuthorization.md Fixed capitalization in synopsis/description
src/VMware/VMware.Autorest/docs/Get-AzVMwareSku.md Added new cmdlet documentation
src/VMware/VMware.Autorest/docs/Az.VMware.md Updated module GUID and expanded cmdlet index
src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds.json Bumped apiVersion to 2024-09-01
src/VMware/VMware.Autorest/README.md Updated AutoRest commit hash and input-file spec path
src/VMware/VMware.Autorest/Properties/AssemblyInfo.cs Removed extraneous blank lines
Comments suppressed due to low confidence (6)

src/VMware/VMware.Autorest/docs/Get-AzVMwareSku.md:11

  • [nitpick] Align with PowerShell help style by using a verb-first synopsis, e.g., "Gets a list of SKUs."
A list of SKUs.

src/VMware/VMware.Autorest/docs/Get-AzVMwarePureStoragePolicy.md:11

  • [nitpick] Align synopsis with cmdlet naming convention, e.g., "Gets a Pure Storage policy."
Get a PureStoragePolicy

src/VMware/VMware.Autorest/docs/Get-AzVMwareProvisionedNetwork.md:11

  • [nitpick] Align synopsis with cmdlet naming convention, e.g., "Gets a provisioned network."
Get a ProvisionedNetwork

src/VMware/VMware.Autorest/docs/Get-AzVMwareHost.md:11

  • [nitpick] Align synopsis with cmdlet naming convention, e.g., "Gets a host."
Get a Host

src/VMware/VMware.Autorest/UX/Microsoft.AVS/privateClouds-pureStoragePolicies.json:65

  • Parameter type is inconsistent—should be an array of strings (<String[]>) like other cmdlets.
[-SubscriptionId <String>]

anaarias-msft and others added 2 commits June 13, 2025 00:34
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@vidai-msft
Copy link
Contributor

/azp run

Copy link
Contributor

Azure Pipelines successfully started running 3 pipeline(s).

@@ -24,3 +24,7 @@
[assembly: System.Reflection.AssemblyVersionAttribute("0.7.2")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]

Copy link
Contributor

Choose a reason for hiding this comment

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

Please remove the empty lines.

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'Get-AzVMwareHost' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'Get-AzVMwareProvisionedNetwork' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'Get-AzVMwarePureStoragePolicy' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'Get-AzVMwareSku' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'New-AzVMwarePureStoragePolicy' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'Remove-AzVMwarePureStoragePolicy' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

. ($mockingPath | Select-Object -First 1).FullName
}

Describe 'Update-AzVMwarePureStoragePolicy' {
Copy link
Contributor

Choose a reason for hiding this comment

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

Please provide at least 1 test case for this cmdlet. If it cannot be recorded, add the test script with -Tag "LiveOnly".

@vidai-msft
Copy link
Contributor

@anaarias-msft Please address the review comments and mask the secrets detected by the security tool in CI. In addition, you should also update the ChangeLog.md with the release notes.

Copy link

This PR was labeled "needs-revision" because it has unresolved review comments or CI failures.
Please resolve all open review comments and make sure all CI checks are green. Refer to our guide to troubleshoot common CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants