Skip to content
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

Move Policy CRUD cmdlets to autorest generation: fixes #23518

Conversation

mentat9
Copy link
Member

@mentat9 mentat9 commented Nov 21, 2023

Description

Checklist

  • SHOULD select appropriate branch. Cmdlets from Autorest.PowerShell should go to generation branch.
  • SHOULD make the title of PR clear and informative, and in the present imperative tense.
  • SHOULD update ChangeLog.md file(s) appropriately
    • For any service, the ChangeLog.md file can be found at 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. Add changelog in description section if PR goes into generation branch.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD have approved design review for the changes in this repository (Microsoft internal only) with following situations
    • Create new module from scratch
    • Create new resource types which are not easy to conform to Azure PowerShell Design Guidelines
    • Create new resource type which name doesn't use module name as prefix
    • Have design question before implementation
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT introduce breaking changes in Az minor release except preview version.
  • SHOULD NOT adjust version of module manually in pull request

Add back some test infrastructure fixes that were lost
Improve parameter handling for Remove-AzPolicySetDefinition
Copy link

azure-client-tools-bot-prd bot commented Nov 21, 2023

🔄Az.Resources
🔄Breaking Change Check
🔄PowerShell Core - Windows
🔄Windows PowerShell - Windows
🔄Signature Check
🔄PowerShell Core - Windows
🔄Windows PowerShell - Windows
🔄Help Example Check
🔄PowerShell Core - Windows
🔄Windows PowerShell - Windows
🔄Help File Existence Check
🔄PowerShell Core - Windows
🔄Windows PowerShell - Windows
🔄File Change Check
🔄PowerShell Core - Windows
🔄Windows PowerShell - Windows
🔄UX Metadata Check
🔄PowerShell Core - Windows
🔄Windows PowerShell - Windows

@VeryEarly VeryEarly merged commit 7148d1e into Azure:shared/Resources-generation Nov 22, 2023
1 of 5 checks passed
VeryEarly added a commit that referenced this pull request May 8, 2024
* Move Policy CRUD cmdlets to autorest generation: fixes (#23518)

* Set all tests to -LiveOnly
Add back some test infrastructure fixes that were lost
Improve parameter handling for Remove-AzPolicySetDefinition

* Move to supported way of sharing Helpers.psm1 file

* Switch to recommended approach for shared functions

* Update to autorest 4.x (#24319)

Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Update Policy CRUD cmdlets (#24361)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix calculation for $testFilesFolder on macOS/linux (#24408)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-* (#24507)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe (#24540)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Apply changes to support -Playback mode (#24555)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* move creation of resource group to utils.ps1

* Test tweaks (#24566)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* fix test cases

* Correct location handling, fix tests and consistency (#24573)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* remove unnecessary script

* change cached location with a more unique name

* update execution of util script

* fix positional parameters generated when only default parameter set

* fix erroraction for Get-AzPolicyDefinition

* Apply feedback (#24757)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* Implement feedback:
 - Add ResourceId to Get-AzPolicy[Set]Definition
 - Change -BuiltIn to -Builtin
 - Add -InputObject parameter to Update-* cmdlets
 - Control ErrorAction behavior for Get-AzPolicy[Set]Definition
Deprecate the -BackwardCompatible switch

* sync static analysis exceptions

* remove redundant

* added file accidentally removed

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>
NoriZC added a commit that referenced this pull request May 16, 2024
* [MSGraph] Enable app roleassignment commands for Service Principal (#23732)

* add approle api in local yaml

* add approle api in local yaml

* customize New-AzAdServiceprincipalAppRoleAssignment

* app role

* Delete src/Resources/MSGraph.Autorest/test/Get-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* Delete src/Resources/MSGraph.Autorest/test/Remove-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* Delete src/Resources/MSGraph.Autorest/test/Update-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* add examples

* remove useless parameters

* Update New-AzADServicePrincipalAppRoleAssignment.Tests.ps1

* update

* Update Get-AzADApplication.ps1

* Update Get-AzADApplication.ps1

* change output ux, resolve comments

* fix bug (#23737)

* [StorageMover] Rename SmbFileShare endpoint cmdlets  (#23738)

* Rename SmbFileShare endpoint cmdlets

* update remaining

* Remove old test file

* Sync tools folder from main branch to generation branch (#23755)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Fleet] Kubernetes Fleet manager generated by autorest (#23631)

* generate Fleet by autorest, code design, example, test

* update examples

* update doc

* Update README.md

* fix typo

* Sync tools folder from main branch to generation branch (#23776)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Update the folder structure of Workloads (#23781)

* Update the folder structure of Workloads

* Update the folder structure of Workloads

* Update the folder structure of Workloads

* Remove the useless files (#23783)

* Sync tools folder from main branch to generation branch (#23795)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23801)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23807)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Alecb/rollback generation to 2023 09 05 (#23810)

* Removed Directives, ran autorest, deleted 3 custom appAttach cmdlets

* ran first test with failures on user session, remove

* Added successful remove session host recording

* All tests pass

* fixed removed session host test

* Removed changes to json file in Tools Common

* Removed extra space

* Find all missed one somehow

* Added additional breaking change suppression

* New Version 0.2.0 for Azure Workloads Module (#23786)

* New Version 1.0.0 for Azure Workloads Module

New Version 1.0.0 for Azure Workloads Module

* Update New-AzWorkloadsSapVirtualInstance.Tests.ps1

Added to run the checks again

* Update README.md

* Updating Docs and Test cases

* Update New-AzWorkloadsSapVirtualInstance.Tests.ps1

* Fixing Stop Database test

* correcting error for Remove SVI

* Fixing the issue with New SVI

* Sync tools folder from main branch to generation branch (#23820)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.DataProtection] Added support for Cross region restore for Backup vaults (#23818)

* Added support for Cross region restore for Backup vaults

* fixed Analyse issues

* re-recorded failed tests

* resolved issue with HttpPipelinePrepend

* added no-inline

* Sync tools folder from main branch to generation branch (#23824)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23837)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23843)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Azure Monitor] Metrics Data Plane API 2023-10-01 (#23695)

* Azure Monitor Metrics Data Plane API 2023-05-01-Preview Client tools

* [MetricBatch] change the module name

Make module name the same as folder name

* Update README.md

* Update to stable version

* CI failure Test

* Remove Metric manage plane

---------

Co-authored-by: Xiaogang <xidi@microsoft.com>

* Update SpringCloud message (#23854)

* Sync tools folder from main branch to generation branch (#23868)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Remove Set-AzNginxCertificate and Set-AzNginxDeployment (#23881)

* Sync tools folder from main branch to generation branch (#23883)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23895)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Rename Metrics Data plane to MetricsData (#23896)

* [Az.SqlVirtualMachine] Fix a bug of parameter 'VirtualMachineResourceId' (#23903)

* Sync tools folder from main branch to generation branch (#23899)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23922)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23932)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23936)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Onboarding ManagedNetworkFabric service powershell module (#23862)

* Onboarding ManagedNetworkFabric service powershell module

* Corrected path for azure.noprofile.md

* updated key Branch to commit

* Updated subcription id in config.json

* Added subcription Id to the command

* Corrected test cases to include subscription id

* Updated network tap name value

* Updated readme file to avoid flattening

* Removed file as it is not implemented

* Corrected example and doc file for new L3 Isolation domain

* Corrected formats in md files

* Corrected indentation

* Updated recording for networkfabriccontoller

* Updated recording file

* Updated readme file

* COming back to old changes due to build failure

* Changes for test case failures

* Adding versioning to Login migration console app (#23988)

* Sync tools folder from main branch to generation branch (#23993)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fix custom location enable flag issue (#24005)

* Sync tools folder from main branch to generation branch (#24010)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* removing interface remove option (#24019)

* removing interface remove option

* Update the examples and docs

---------

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Sync tools folder from main branch to generation branch (#24016)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24031)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fixed the resolve path issue in Install-AzAksCliTool. [#22853] (#24032)

* Az.Migrate support new Data.Replication (#23615)

* Support new scenario in Az.Migrate

* Added retry on get machine site.

* Add READMEs

* Revert changes

---------

Co-authored-by: Sam Lee <samlee3@microsoft.com>
Co-authored-by: Helen Afework <helenafework@microsoft.com>

* Az.StackHCI OOB Release - Jan 25 (#24026)

* changes to ps1

* build changes

* Sync tools folder from main branch to generation branch (#24046)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Kdonga/vmware ps 2023 (#23928)

* updated the vmware ps commands to 2023 version

* Added Test Recordings

* additional testing for ps vmware modules

* updated files according to autorest v4 spec

* Removed packages lock file

* new recordings

* additional recording files

* cmdlet workload network is hidden

* removed the test files for workload network

* New Recordings for additional cmdlts

* replace localhost to management.azure.com

* Add missing examples

* added tests for the missing examples

* made updates to AzVMwareGlobalReachConnection test case

---------

Co-authored-by: Ana Arias Rosales <anaarias@microsoft.com>

* Sync tools folder from main branch to generation branch (#24059)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24078)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24101)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* update monitor test and design by autorest change (#24099)

* Private Marketplace - Sync APIs with swagger 2023-01-01 and adds tests (#24114)

* upgrade API version, use autorest.powershell v4

* upgrade API version

* fix POST operations

* phase 1 - tests till user offers

* tmp1

* fix2

* clean tests

* run

* Update src/Marketplace/Marketplace.Autorest/README.md

* env

* skip and fix

* examples

* test record & playback

* remove two APIs

* remove stopsell & setrules

* docs with examples

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Sync tools folder from main branch to generation branch (#24125)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24151)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24155)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Updated `Set-AzStackHCI` to use PATCH for updating cluster resource instead of PUT and to only send changed properties (#24158)

* update connectedmachine (#24064)

* update connectedmachine

* Update src/ConnectedMachine/ConnectedMachine.Autorest/custom/New-AzConnectedMachineRunCommand_ScriptLocalPath.ps1

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* rename to tags

* fix tests

---------

Co-authored-by: Ved Kale <vedkale@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Feature firmwareanalysis ps (#24138)

* Onboard firmwareanalysis commands to powwershell

* add test cases and doc

* add docs

* add outputs

* update command

* fix test

* update doc

* update doc

* fix errors

* add recording

* remove command

* update tests

* Feature firmwareanalysis fix (#24188)

* Fix documentation for firmwareanalysis ps

* Regenerate FirmwareAnalysis

* remove commands and some variants

* update doc

---------

Co-authored-by: Lei Jin <leijin@microsoft.com>

* Sync tools folder from main branch to generation branch (#24228)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Remove command for dowmload url (#24220)

* Sync tools folder from main branch to generation branch (#24240)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24241)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Security] Initialize  Security Autogenerated Modules (#24162)

* Generate SecurityConnectors and ApiCollections cmdlets

* Add Get-* integration tests

* Regenerate tests

* Update docs and examples. Rename subject *Repos to *Repo.

* Remove depricated offering

* Fix static analysis errors

* Fix one more static analysis issue

* Sync tools folder from main branch to generation branch (#24247)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24255)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Report Image Download Progress  (#24180)

* working image download progress

* adding reporting download progress logic

* adding image recording test

* adding marketplace test

* Use fixed autorest.powershell version to generate

* updating env and recording files

* Revert change to README.md

* updatig variables and image recording

* image test

* storage path test

* disk recording

* updating env variables

* logical network test

* nic test

* fixing networkinterface test

* vm test

* fixing image test

* image recording

* fixing image

* fix

---------

Co-authored-by: Harika Vedati <havedati@microsoft.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* PowerShell Support for Email Services Control Plane CRUD operations (#24230)

* Powershell Support for Email Services Control Plane CRUD operations - # 3442118

* Powershell Support for Email Services Control Plane CRUD operations - test recordings- #3442118

* Removed  .gitignore

* Updated test recordings

* readme.md file root-module-name changes

* Updated examples

* Remove use autorest.powershell 4.x

---------

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* Fix the case sensitive issue when preparing migration (#24272)

* Sync tools folder from main branch to generation branch (#24296)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24309)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24315)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24328)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24346)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24351)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24377)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Change Login Migration Console App source to NuGet.org and Versioning support. (#24330)

* Adding versioning to Login migration console app

* Login migration Powershell script changes to change console app source change to Nuget.org and versioning support

* Modularity changes

* Removing try catch from the helper methods

* [EventHub/ServiceBus] Breaking change Alert for EventHub ServiceBus (#24354)

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* updates

* updates

* updates

* updates

* Updates

* Updates

* updates version number

* Update New-AzServiceBusIPRuleConfig.ps1

* [Application insight] Fix update component (#24405)

* fix application insight update cmdlet

* revert group logic in Application insights test utils

* Sync tools folder from main branch to generation branch (#24441)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Revert MI breaking changes for Fleet (#24448)

* [HDInsight on AKS] New Api version 2023-11-01-preview (#24375)

* Update readme.md

* Revert module version in files

* Add a custom command.

* Update readme.md and re generate.

* Update all docs and examples.

* Update test cases and session records.

* Add a command.

* Remove generated UX folder.

* Remove local input-file value from readme.md

* Update a command params.

* Add synopsis  and des for two new custom commands.

* Add exception for signature issues.

* Fix a error for custom command.

* Fix examples errors.

* Fix an example error.

* Update examples.

* Remove "SupportsShouldProcess"

---------

Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>

* StackHCIVM 2024-01-01 api version  (#24422)

* post autogeneration

* delete

* removing alb changes?

* removing alb changes

* fixing readme file to match folder structure of central repo

* removing example changes

* fix

* fixes for examples

* fix

* fix

* fix

* vm agent fixes

* removing module versin change

* adding storage path recording

* adding disk recording

* adding networking recoridng

* adding image and nic recordings

* vm recording

* image recording

* merge

* report api error

---------

Co-authored-by: Harika Vedati <havedati@microsoft.com>

* Replace Start-Sleep with Start-TestSleep to avoid waiting during playback (#24463)

* fix tests (#24475)

* Sync tools folder from main branch to generation branch (#24481)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.DataProtection] Onboarded new workloads - PGFlex and MySQL (#24443)

* Onboarded PGFlex and MySQL workloads.
Added end to end support for these workloads.

* re-recorded all test cases

* reverted breaking change by modifying default parameter set name

* Mitigate MI breaking changes (#24483)

* Mitigate MI breaking changes

* Update README.md

* Update README.md

* Update examples for New-AzApplicationInsightsWebTest (#24508)

* Fix typo in example Get-AzApplicationInsightsWorkbookRevision (#24511)

* Sync tools folder from main branch to generation branch (#24504)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24550)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Adding PowerShell module for the EdgeZones service (#24450)

* Adding initial README.md

* After running autorest step5 here Step 5 https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#:~:text=Step%205.%20In%20Azure%20PowerShell%2C%20execute%20command%20autorest%20in%20the%20module%20folder%20to%20generate%20the%20code.

* After performin pswh build-module.ps1 in step 6 https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#:~:text=Step%206.%20In%20Azure%20PowerShell%2C%20execute%20build%2Dmodule.ps1%20build%20module%20in%20the%20module%20folder.

* Add preview message

* Update examples

* Update examples under docs folder besides under examples

* Updated examples under docs folder

* Test cases for AzEdgeZonesExtendedZone

* Added validation for circuit bandwidth in New/Update collector policy cmdlet for ATC (#24571)

* Modified custom cmdlet

* minor fix

* Added custom new cmdlet

* Added shouldprocess

* Add UT

* fix

* Update

* revert

* revert

* Add UT

* Add UT

* Address comment

* Added UT

* test

* Testing

* Testing

* Tests

* Tests

* [Sphere] Feature generated by auto rest (#24568)

* feature Sphere stable 20240401

* sphere directive redesign

* test

* Update Sphere test cases

* Update message in readme

* Fix count parameter set for analyze test coverage

* Sync tools folder from main branch to generation branch (#24570)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Add log scrub for AzureFrontDoor profile (#24534)

* Use autorest to generate new property in exsiting cmdlets

* Add memory objects for AFDX profile LogSrubbing

* Customize memory ojbects for profile Logscrub

* Add examples when using the profileScrubbing'

* Add new testcases for new property and record all the testcases

* Add testcases and examples for New-AzFrontDoorCdnProfile using ProfileLogSrubbing parameter

* Feature standbypool powershell init (#24604)

* new standby pool cmdlets.

* change cmdlets and fix ci issue.

* fix ci.

* documentation.

* [SelfHelp] Add new API version 2024-03-01-preview support for AzSelfHelp cmdlets for Help Resource Provider (#24547)

* initial commit for SelfHelp new version

* Adding files generated by build-module powershell file

* Updating Test files

* Added unit tests

* Adding examples

* Updating DiscoverySolutions examples

* Updating examples

* Added LiveOnly tag to tests

* Adding SpotPlacementRecommender API cmdlets - version 2024-03-01-preview (#24352)

* Initial commit

* Update files after setting directives to add remove cmdlets

* Add initial tests for Invoke-SpotPlacementRecommender cmdlet and some examples in the doc

* Add examples to Invoke-Spot examples md file

* Remove unnecessary test.ps1 files

* Readding some removed files that should not be deleted (1)

* Readding some removed files that should not be deleted (2)

* Readding some removed files that should not be deleted (3)

* Adding older deleted cmds to FunctionsToExport

* Removing Get SpotPlacementRecommender files

* Remove Get-AzSpotPlacementRecommender.Tests.ps1, update failing test and doc

* Rever changes to docs/Az.Compute.md

* Only remove new functions from diagnostic.json

* Reverting changes to docs of other cmdlets

* Update README.md to point to remote swagger

* Readd removed Get-AzGalleryApplication Get-AzGalleryApplicationVersion descriptions from Az.Compute.md

* Update README.md commit to the commit version that includes Spot Placement Recommender merge

* Update Az.Compute.psd1 to remove Get-AzSpotPlacementRecommender function to export, add additional examples for SpotPlacementRecommenderInput parameter, update test to include SpotPlacementRecommenderInput example

* Update test cases, response should not be null or empty, update env.json, localEnv.json values

* Add recording file and fix invalid input desired size

* Sync tools folder from main branch to generation branch (#24630)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.Monitor] Change the name of sub-module (#24613)

* Change the name of sub-module

* Change the name of sub-module

* Rename Metric.Autorest to MetricData.Autorest

* Suppress the exceptions

* Suppress the exceptions

* Added vault tier restore and update backup instance for blobs (#24557)

* Added support for vaulted blobs restore and Update-backupInstance.

* added update BI test case
added ILR test case
added deep validate
added examples

* re-recorded failed tests

* re-recorded failed test

* Sync tools folder from main branch to generation branch (#24641)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* fixed in generation branch (#24668)

* [Functions] Update the logic to populate the function app creation stacks cache and tab completers. (#24656)

* Update Stacks API parser logic

* Update Functions Stack definitions

* Update the logic to populate tab completers only when the Az.Functions cmdlets are invoked

* Update test

* [Az.DataProtection] Adding CmkEnryption parameters to Get-AzDataProtectionBackupVault, New-AzDataProtectionBackupVault and Update-AzDataProtectionBackupVault cmdlets (#24654)

* cmk ps changes added

CmkEncryption tests added

CmkEncryption added to only UpdateExpanded variant

Updated help text for Update-AzDataProtectionBackupVault cmdlet

* output type and examples update

* Updated API version to 04-01
Added MUA changes for update-vault, stop-protection, suspend-backup, restore commands
re-recorded failed tests

* api version upgrade

* New-AzDataProtectionBackupVault example fix

* fixed CI issues

---------

Co-authored-by: Kartik Mahajan (from Dev Box) <karmahajan@microsoft.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>

* cmk encryption examples update (#24692)

added quotes

* Sync tools folder from main branch to generation branch (#24691)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Fleet] Managed Identity upgrade (#24643)

* Upgrade Fleet managed Identity design Add example and test

* Fix update description

* Sync tools folder from main branch to generation branch (#24719)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24736)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24739)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [EventHub/ServiceBus] Moved cmdlets to V4 (#24070)

* R2D tesing

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Docs update

* Updates

* updates

* Revert "updates"

* Revert "Updates22"

This reverts commit d247880.

* Revert "Docs update2"

This reverts commit 66fa1e4.

* fixing the test failure

* updates

* Revert "updates"

This reverts commit 3f1bcd8.

* Final updatees

* Docs update

* Updates with test

* updates

* Suppressing the breaking change exceptions

* Breaking changes csv update

* Deleted the tring[] file

* Sync tools folder from main branch to generation branch (#24805)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24814)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24832)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24842)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Chaos] Create new module: Az.Chaos (#24444)

* create new module: chaos

* update

* Update

* create new module Az.Chaos

* create ExampleIssues.csv

* [EventGrid] Create new module EventGrid (#24307)

* Create new module: EventGrid

* update

* update

* update

* update

* update breaking change readme directive

* added alias MaxDeliveryAttempt in New-AzEventGridPartnerTopicEventSubscription

* update

* update

* create BreakingChangeIssues.csv

* [Az.Support] generate Az.Support with autorest (#24843)

* init add powershell cmdlet

* add customization for filedetails

* correct readme to include file workspace create

* add custom cmdlet for creating and uploading the file

* chunking logic for larger files

* add error for custom cmdlet when file too big

* combined cmdlets

* edit custom file upload command to not use default subscriptionid

* no default value for subid in custom file upload

* separate subscription and no subscription commands

* remove comments from combined cmd for file

* fix cmd

* custom no subscription file upload commands

* autogen docs for no sub file upload

* hide individual file commands

* add back workspace commands

* add name as alias for fileworkspacename fileworkspacesnosubscription

* remove update files and add alias for nosubscription file commands

* tests for get service

* tests for problem classification

* try adding erroractionpreference = stop

* tests for new file workspace

* tests for get file workspace

* more tests

* add tests for new file and upload, removefile name as a parameter

* remove new files no subscription

* tests for get file

* erroraction stop

* remove unnecessary comments and print statements

* docs for get support service

* problem classification docs

* add titles

* documentation for file workspace commands

* documentation for file/file workspace cmdlets

* documentation for checkNameAvailability

* added tests and documentation for operations, support ticket, communication and chat transcript cmdlets

* added examples for operations, support ticket, communication and chat transcript cmdlets

* resolve merge conflicts

* resolved PR comments

* get conflict file changes from grhuang/azsupport-autorest

* resolved merge conflict

* removed update communication sub and no sub scenarios

* Revert "removed update communication sub and no sub scenarios"

This reverts commit ccbfdee.

* removed update communication sub and no sub scenarios , updated readme

* make communiation and support ticket properties required in readme, edit get operation file name, edit calling internal cmdlets for file upload

* fix documentation

* fix top query

* add custom error handler

* consolidate list and get communicationsnosubscription and chattranscriptsnosubscription

* init changes to allow no subscription recording tests-need to use csp partner account in tenant 2e6a0c9f-986d-480e-ad4b-bdfddc047aba

* changes to not create new resources in playback

* remove custom error handler csharp

* init add changes to split subscription and no subscription tests

* update skip

* Update recordings

* update recordings

* add more examples to new-azsupportticket documentation

* update documentation and readme

* add directive back in

* make advanced diagnostic consent required

* Add custom error handling for New- and Update- cmdlets to print full details of error (#9)

* Add custom error handler

* Add default filter to retrieve tickets from the past week for Get-AzSupportTickets and Get-AzSupportTicketsNoSubscription (#10)

* add custom filtering for list support ticket if no filter is applied

* make transformations in swagger in readme to make enrollment id not readonly and show isTempTicket (#11)

* Add argument completer (#12)

* add argument completers

* add quotes to argument completers

* remove repeated time zone

* Regenerate powershell module with GA swagger (#13)

* Rerecord tests using GA version (#14)

* add tests for file size (will add recordings once Ga swagger available)

* Regenerate powershell module with GA swagger

* Rerecord tests with GA version

* Fix documentation

* fix url for file upload

---------

Co-authored-by: Grace Huang (from Dev Box) <grhuang@microsoft.com>
Co-authored-by: grhuangmsft <103289214+grhuangmsft@users.noreply.github.com>
Co-authored-by: Shreya Kumar <shreyakumar@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Move Policy CRUD cmdlets to autorest generation: fixes (#23518) (#24221)

* Move Policy CRUD cmdlets to autorest generation: fixes (#23518)

* Set all tests to -LiveOnly
Add back some test infrastructure fixes that were lost
Improve parameter handling for Remove-AzPolicySetDefinition

* Move to supported way of sharing Helpers.psm1 file

* Switch to recommended approach for shared functions

* Update to autorest 4.x (#24319)

Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Update Policy CRUD cmdlets (#24361)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix calculation for $testFilesFolder on macOS/linux (#24408)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-* (#24507)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe (#24540)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Apply changes to support -Playback mode (#24555)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* move creation of resource group to utils.ps1

* Test tweaks (#24566)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* fix test cases

* Correct location handling, fix tests and consistency (#24573)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* remove unnecessary script

* change cached location with a more unique name

* update execution of util script

* fix positional parameters generated when only default parameter set

* fix erroraction for Get-AzPolicyDefinition

* Apply feedback (#24757)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* Implement feedback:
 - Add ResourceId to Get-AzPolicy[Set]Definition
 - Change -BuiltIn to -Builtin
 - Add -InputObject parameter to Update-* cmdlets
 - Control ErrorAction behavior for Get-AzPolicy[Set]Definition
Deprecate the -BackwardCompatible switch

* sync static analysis exceptions

* remove redundant

* added file accidentally removed

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>

* Change parsing logic in ATC custom cmdlet (#24828)

* Change parsing logic in ATC custom cmdlet

* Add if check

* add if check

* Minor change

* Add UT

* Sync tools folder from main branch to generation branch (#24849)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24852)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24860)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24864)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24867)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [StorageAction] onboard StorageAction with autorest (#24841)

* feature storage action 20240131

* Storage Action feature test cases and examples

* Storage Action test added

* Added swagger fix

* Update commit id from swagger main

* Update commit

* Update example

* Update src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTask.md

* Update src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTask.md

* Update example

---------

Co-authored-by: Yan Xu <yanxu1@microsoft.com>

* [custom location] Upgrade managed identity (#24770)

* Upgrade managed identity for Custom Location module

* Fix and remove custom cmdlets

* Add New custom location example exception

* Update CustomLocation examples

* Sync tools folder from main branch to generation branch (#24888)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24890)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24892)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24899)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fix issue for KubernetesConfigutation (#24900)

* Sync tools folder from main branch to generation branch (#24919)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

---------

Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
Co-authored-by: yifanz7 <131133995+yifanz7@users.noreply.github.com>
Co-authored-by: Azure PowerShell <65331932+azure-powershell-bot@users.noreply.github.com>
Co-authored-by: azurepowershell <azurepowershell@ms.com>
Co-authored-by: JoyerJin <116236375+JoyerJin@users.noreply.github.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
Co-authored-by: Alec Baird <100880612+alec-baird@users.noreply.github.com>
Co-authored-by: Jaskirat Singh <108129510+jaskisin@users.noreply.github.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>
Co-authored-by: lijinpei2008 <31384087+lijinpei2008@users.noreply.github.com>
Co-authored-by: Yan Xu <yanxu1@microsoft.com>
Co-authored-by: aytripathi <119933278+aytripathi@users.noreply.github.com>
Co-authored-by: Bhavikshah123 <126583651+Bhavikshah123@users.noreply.github.com>
Co-authored-by: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com>
Co-authored-by: Sam Lee <32776898+minhsuanlee@users.noreply.github.com>
Co-authored-by: Sam Lee <samlee3@microsoft.com>
Co-authored-by: Helen Afework <helenafework@microsoft.com>
Co-authored-by: Priyanshi Jain <87351063+priyjain358@users.noreply.github.com>
Co-authored-by: keyurdonga-msft <114703124+keyurdonga-msft@users.noreply.github.com>
Co-authored-by: Ana Arias Rosales <anaarias@microsoft.com>
Co-authored-by: saviesacov <96383178+saviesacov@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: PRATEEK PRASHER <prateekprshr@gmail.com>
Co-authored-by: Ved Kale <vedpkale@outlook.com>
Co-authored-by: Ved Kale <vedkale@microsoft.com>
Co-authored-by: kalpeshbhatia000 <108032504+kalpeshbhatia000@users.noreply.github.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
Co-authored-by: ivadim <iva9im@gmail.com>
Co-authored-by: hvedati <43424696+hvedati@users.noreply.github.com>
Co-authored-by: Harika Vedati <havedati@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: v-vprasannak <146808120+v-vprasannak@users.noreply.github.com>
Co-authored-by: TracyYaoYao <40618305+TracyYaoYao@users.noreply.github.com>
Co-authored-by: schaudhari6254888 <111409694+schaudhari6254888@users.noreply.github.com>
Co-authored-by: yuc-Li <58678302+yuc-Li@users.noreply.github.com>
Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>
Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com>
Co-authored-by: Jason Urban <jurban@microsoft.com>
Co-authored-by: kukulkarni1 <101899571+kukulkarni1@users.noreply.github.com>
Co-authored-by: fangru2023 <138832097+fangru2023@users.noreply.github.com>
Co-authored-by: siddiavinashmsft <117774802+siddiavinashmsft@users.noreply.github.com>
Co-authored-by: Elina Liu <wenxliu@microsoft.com>
Co-authored-by: Danny Furnivall <danielfurnivall@gmail.com>
Co-authored-by: Francisco Gamino <Francisco-Gamino@users.noreply.github.com>
Co-authored-by: Kartik Mahajan <66360449+Karmah24@users.noreply.github.com>
Co-authored-by: Kartik Mahajan (from Dev Box) <karmahajan@microsoft.com>
Co-authored-by: Grace Huang (from Dev Box) <grhuang@microsoft.com>
Co-authored-by: grhuangmsft <103289214+grhuangmsft@users.noreply.github.com>
Co-authored-by: Shreya Kumar <shreyakumar@microsoft.com>
Co-authored-by: Chris Stackhouse <cstack@microsoft.com>
NoriZC added a commit that referenced this pull request May 29, 2024
* [MSGraph] Enable app roleassignment commands for Service Principal (#23732)

* add approle api in local yaml

* add approle api in local yaml

* customize New-AzAdServiceprincipalAppRoleAssignment

* app role

* Delete src/Resources/MSGraph.Autorest/test/Get-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* Delete src/Resources/MSGraph.Autorest/test/Remove-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* Delete src/Resources/MSGraph.Autorest/test/Update-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* add examples

* remove useless parameters

* Update New-AzADServicePrincipalAppRoleAssignment.Tests.ps1

* update

* Update Get-AzADApplication.ps1

* Update Get-AzADApplication.ps1

* change output ux, resolve comments

* fix bug (#23737)

* [StorageMover] Rename SmbFileShare endpoint cmdlets  (#23738)

* Rename SmbFileShare endpoint cmdlets

* update remaining

* Remove old test file

* Sync tools folder from main branch to generation branch (#23755)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Fleet] Kubernetes Fleet manager generated by autorest (#23631)

* generate Fleet by autorest, code design, example, test

* update examples

* update doc

* Update README.md

* fix typo

* Sync tools folder from main branch to generation branch (#23776)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Update the folder structure of Workloads (#23781)

* Update the folder structure of Workloads

* Update the folder structure of Workloads

* Update the folder structure of Workloads

* Remove the useless files (#23783)

* Sync tools folder from main branch to generation branch (#23795)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23801)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23807)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Alecb/rollback generation to 2023 09 05 (#23810)

* Removed Directives, ran autorest, deleted 3 custom appAttach cmdlets

* ran first test with failures on user session, remove

* Added successful remove session host recording

* All tests pass

* fixed removed session host test

* Removed changes to json file in Tools Common

* Removed extra space

* Find all missed one somehow

* Added additional breaking change suppression

* New Version 0.2.0 for Azure Workloads Module (#23786)

* New Version 1.0.0 for Azure Workloads Module

New Version 1.0.0 for Azure Workloads Module

* Update New-AzWorkloadsSapVirtualInstance.Tests.ps1

Added to run the checks again

* Update README.md

* Updating Docs and Test cases

* Update New-AzWorkloadsSapVirtualInstance.Tests.ps1

* Fixing Stop Database test

* correcting error for Remove SVI

* Fixing the issue with New SVI

* Sync tools folder from main branch to generation branch (#23820)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.DataProtection] Added support for Cross region restore for Backup vaults (#23818)

* Added support for Cross region restore for Backup vaults

* fixed Analyse issues

* re-recorded failed tests

* resolved issue with HttpPipelinePrepend

* added no-inline

* Sync tools folder from main branch to generation branch (#23824)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23837)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23843)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Azure Monitor] Metrics Data Plane API 2023-10-01 (#23695)

* Azure Monitor Metrics Data Plane API 2023-05-01-Preview Client tools

* [MetricBatch] change the module name

Make module name the same as folder name

* Update README.md

* Update to stable version

* CI failure Test

* Remove Metric manage plane

---------

Co-authored-by: Xiaogang <xidi@microsoft.com>

* Update SpringCloud message (#23854)

* Sync tools folder from main branch to generation branch (#23868)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Remove Set-AzNginxCertificate and Set-AzNginxDeployment (#23881)

* Sync tools folder from main branch to generation branch (#23883)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23895)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Rename Metrics Data plane to MetricsData (#23896)

* [Az.SqlVirtualMachine] Fix a bug of parameter 'VirtualMachineResourceId' (#23903)

* Sync tools folder from main branch to generation branch (#23899)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23922)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23932)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23936)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Onboarding ManagedNetworkFabric service powershell module (#23862)

* Onboarding ManagedNetworkFabric service powershell module

* Corrected path for azure.noprofile.md

* updated key Branch to commit

* Updated subcription id in config.json

* Added subcription Id to the command

* Corrected test cases to include subscription id

* Updated network tap name value

* Updated readme file to avoid flattening

* Removed file as it is not implemented

* Corrected example and doc file for new L3 Isolation domain

* Corrected formats in md files

* Corrected indentation

* Updated recording for networkfabriccontoller

* Updated recording file

* Updated readme file

* COming back to old changes due to build failure

* Changes for test case failures

* Adding versioning to Login migration console app (#23988)

* Sync tools folder from main branch to generation branch (#23993)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fix custom location enable flag issue (#24005)

* Sync tools folder from main branch to generation branch (#24010)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* removing interface remove option (#24019)

* removing interface remove option

* Update the examples and docs

---------

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Sync tools folder from main branch to generation branch (#24016)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24031)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fixed the resolve path issue in Install-AzAksCliTool. [#22853] (#24032)

* Az.Migrate support new Data.Replication (#23615)

* Support new scenario in Az.Migrate

* Added retry on get machine site.

* Add READMEs

* Revert changes

---------

Co-authored-by: Sam Lee <samlee3@microsoft.com>
Co-authored-by: Helen Afework <helenafework@microsoft.com>

* Az.StackHCI OOB Release - Jan 25 (#24026)

* changes to ps1

* build changes

* Sync tools folder from main branch to generation branch (#24046)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Kdonga/vmware ps 2023 (#23928)

* updated the vmware ps commands to 2023 version

* Added Test Recordings

* additional testing for ps vmware modules

* updated files according to autorest v4 spec

* Removed packages lock file

* new recordings

* additional recording files

* cmdlet workload network is hidden

* removed the test files for workload network

* New Recordings for additional cmdlts

* replace localhost to management.azure.com

* Add missing examples

* added tests for the missing examples

* made updates to AzVMwareGlobalReachConnection test case

---------

Co-authored-by: Ana Arias Rosales <anaarias@microsoft.com>

* Sync tools folder from main branch to generation branch (#24059)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24078)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24101)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* update monitor test and design by autorest change (#24099)

* Private Marketplace - Sync APIs with swagger 2023-01-01 and adds tests (#24114)

* upgrade API version, use autorest.powershell v4

* upgrade API version

* fix POST operations

* phase 1 - tests till user offers

* tmp1

* fix2

* clean tests

* run

* Update src/Marketplace/Marketplace.Autorest/README.md

* env

* skip and fix

* examples

* test record & playback

* remove two APIs

* remove stopsell & setrules

* docs with examples

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Sync tools folder from main branch to generation branch (#24125)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24151)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24155)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Updated `Set-AzStackHCI` to use PATCH for updating cluster resource instead of PUT and to only send changed properties (#24158)

* update connectedmachine (#24064)

* update connectedmachine

* Update src/ConnectedMachine/ConnectedMachine.Autorest/custom/New-AzConnectedMachineRunCommand_ScriptLocalPath.ps1

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* rename to tags

* fix tests

---------

Co-authored-by: Ved Kale <vedkale@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Feature firmwareanalysis ps (#24138)

* Onboard firmwareanalysis commands to powwershell

* add test cases and doc

* add docs

* add outputs

* update command

* fix test

* update doc

* update doc

* fix errors

* add recording

* remove command

* update tests

* Feature firmwareanalysis fix (#24188)

* Fix documentation for firmwareanalysis ps

* Regenerate FirmwareAnalysis

* remove commands and some variants

* update doc

---------

Co-authored-by: Lei Jin <leijin@microsoft.com>

* Sync tools folder from main branch to generation branch (#24228)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Remove command for dowmload url (#24220)

* Sync tools folder from main branch to generation branch (#24240)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24241)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Security] Initialize  Security Autogenerated Modules (#24162)

* Generate SecurityConnectors and ApiCollections cmdlets

* Add Get-* integration tests

* Regenerate tests

* Update docs and examples. Rename subject *Repos to *Repo.

* Remove depricated offering

* Fix static analysis errors

* Fix one more static analysis issue

* Sync tools folder from main branch to generation branch (#24247)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24255)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Report Image Download Progress  (#24180)

* working image download progress

* adding reporting download progress logic

* adding image recording test

* adding marketplace test

* Use fixed autorest.powershell version to generate

* updating env and recording files

* Revert change to README.md

* updatig variables and image recording

* image test

* storage path test

* disk recording

* updating env variables

* logical network test

* nic test

* fixing networkinterface test

* vm test

* fixing image test

* image recording

* fixing image

* fix

---------

Co-authored-by: Harika Vedati <havedati@microsoft.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* PowerShell Support for Email Services Control Plane CRUD operations (#24230)

* Powershell Support for Email Services Control Plane CRUD operations - # 3442118

* Powershell Support for Email Services Control Plane CRUD operations - test recordings- #3442118

* Removed  .gitignore

* Updated test recordings

* readme.md file root-module-name changes

* Updated examples

* Remove use autorest.powershell 4.x

---------

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* Fix the case sensitive issue when preparing migration (#24272)

* Sync tools folder from main branch to generation branch (#24296)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24309)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24315)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24328)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24346)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24351)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24377)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Change Login Migration Console App source to NuGet.org and Versioning support. (#24330)

* Adding versioning to Login migration console app

* Login migration Powershell script changes to change console app source change to Nuget.org and versioning support

* Modularity changes

* Removing try catch from the helper methods

* [EventHub/ServiceBus] Breaking change Alert for EventHub ServiceBus (#24354)

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* updates

* updates

* updates

* updates

* Updates

* Updates

* updates version number

* Update New-AzServiceBusIPRuleConfig.ps1

* [Application insight] Fix update component (#24405)

* fix application insight update cmdlet

* revert group logic in Application insights test utils

* Sync tools folder from main branch to generation branch (#24441)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Revert MI breaking changes for Fleet (#24448)

* [HDInsight on AKS] New Api version 2023-11-01-preview (#24375)

* Update readme.md

* Revert module version in files

* Add a custom command.

* Update readme.md and re generate.

* Update all docs and examples.

* Update test cases and session records.

* Add a command.

* Remove generated UX folder.

* Remove local input-file value from readme.md

* Update a command params.

* Add synopsis  and des for two new custom commands.

* Add exception for signature issues.

* Fix a error for custom command.

* Fix examples errors.

* Fix an example error.

* Update examples.

* Remove "SupportsShouldProcess"

---------

Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>

* StackHCIVM 2024-01-01 api version  (#24422)

* post autogeneration

* delete

* removing alb changes?

* removing alb changes

* fixing readme file to match folder structure of central repo

* removing example changes

* fix

* fixes for examples

* fix

* fix

* fix

* vm agent fixes

* removing module versin change

* adding storage path recording

* adding disk recording

* adding networking recoridng

* adding image and nic recordings

* vm recording

* image recording

* merge

* report api error

---------

Co-authored-by: Harika Vedati <havedati@microsoft.com>

* Replace Start-Sleep with Start-TestSleep to avoid waiting during playback (#24463)

* fix tests (#24475)

* Sync tools folder from main branch to generation branch (#24481)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.DataProtection] Onboarded new workloads - PGFlex and MySQL (#24443)

* Onboarded PGFlex and MySQL workloads.
Added end to end support for these workloads.

* re-recorded all test cases

* reverted breaking change by modifying default parameter set name

* Mitigate MI breaking changes (#24483)

* Mitigate MI breaking changes

* Update README.md

* Update README.md

* Update examples for New-AzApplicationInsightsWebTest (#24508)

* Fix typo in example Get-AzApplicationInsightsWorkbookRevision (#24511)

* Sync tools folder from main branch to generation branch (#24504)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24550)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Adding PowerShell module for the EdgeZones service (#24450)

* Adding initial README.md

* After running autorest step5 here Step 5 https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#:~:text=Step%205.%20In%20Azure%20PowerShell%2C%20execute%20command%20autorest%20in%20the%20module%20folder%20to%20generate%20the%20code.

* After performin pswh build-module.ps1 in step 6 https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#:~:text=Step%206.%20In%20Azure%20PowerShell%2C%20execute%20build%2Dmodule.ps1%20build%20module%20in%20the%20module%20folder.

* Add preview message

* Update examples

* Update examples under docs folder besides under examples

* Updated examples under docs folder

* Test cases for AzEdgeZonesExtendedZone

* Added validation for circuit bandwidth in New/Update collector policy cmdlet for ATC (#24571)

* Modified custom cmdlet

* minor fix

* Added custom new cmdlet

* Added shouldprocess

* Add UT

* fix

* Update

* revert

* revert

* Add UT

* Add UT

* Address comment

* Added UT

* test

* Testing

* Testing

* Tests

* Tests

* [Sphere] Feature generated by auto rest (#24568)

* feature Sphere stable 20240401

* sphere directive redesign

* test

* Update Sphere test cases

* Update message in readme

* Fix count parameter set for analyze test coverage

* Sync tools folder from main branch to generation branch (#24570)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Add log scrub for AzureFrontDoor profile (#24534)

* Use autorest to generate new property in exsiting cmdlets

* Add memory objects for AFDX profile LogSrubbing

* Customize memory ojbects for profile Logscrub

* Add examples when using the profileScrubbing'

* Add new testcases for new property and record all the testcases

* Add testcases and examples for New-AzFrontDoorCdnProfile using ProfileLogSrubbing parameter

* Feature standbypool powershell init (#24604)

* new standby pool cmdlets.

* change cmdlets and fix ci issue.

* fix ci.

* documentation.

* [SelfHelp] Add new API version 2024-03-01-preview support for AzSelfHelp cmdlets for Help Resource Provider (#24547)

* initial commit for SelfHelp new version

* Adding files generated by build-module powershell file

* Updating Test files

* Added unit tests

* Adding examples

* Updating DiscoverySolutions examples

* Updating examples

* Added LiveOnly tag to tests

* Adding SpotPlacementRecommender API cmdlets - version 2024-03-01-preview (#24352)

* Initial commit

* Update files after setting directives to add remove cmdlets

* Add initial tests for Invoke-SpotPlacementRecommender cmdlet and some examples in the doc

* Add examples to Invoke-Spot examples md file

* Remove unnecessary test.ps1 files

* Readding some removed files that should not be deleted (1)

* Readding some removed files that should not be deleted (2)

* Readding some removed files that should not be deleted (3)

* Adding older deleted cmds to FunctionsToExport

* Removing Get SpotPlacementRecommender files

* Remove Get-AzSpotPlacementRecommender.Tests.ps1, update failing test and doc

* Rever changes to docs/Az.Compute.md

* Only remove new functions from diagnostic.json

* Reverting changes to docs of other cmdlets

* Update README.md to point to remote swagger

* Readd removed Get-AzGalleryApplication Get-AzGalleryApplicationVersion descriptions from Az.Compute.md

* Update README.md commit to the commit version that includes Spot Placement Recommender merge

* Update Az.Compute.psd1 to remove Get-AzSpotPlacementRecommender function to export, add additional examples for SpotPlacementRecommenderInput parameter, update test to include SpotPlacementRecommenderInput example

* Update test cases, response should not be null or empty, update env.json, localEnv.json values

* Add recording file and fix invalid input desired size

* Sync tools folder from main branch to generation branch (#24630)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.Monitor] Change the name of sub-module (#24613)

* Change the name of sub-module

* Change the name of sub-module

* Rename Metric.Autorest to MetricData.Autorest

* Suppress the exceptions

* Suppress the exceptions

* Added vault tier restore and update backup instance for blobs (#24557)

* Added support for vaulted blobs restore and Update-backupInstance.

* added update BI test case
added ILR test case
added deep validate
added examples

* re-recorded failed tests

* re-recorded failed test

* Sync tools folder from main branch to generation branch (#24641)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* fixed in generation branch (#24668)

* [Functions] Update the logic to populate the function app creation stacks cache and tab completers. (#24656)

* Update Stacks API parser logic

* Update Functions Stack definitions

* Update the logic to populate tab completers only when the Az.Functions cmdlets are invoked

* Update test

* [Az.DataProtection] Adding CmkEnryption parameters to Get-AzDataProtectionBackupVault, New-AzDataProtectionBackupVault and Update-AzDataProtectionBackupVault cmdlets (#24654)

* cmk ps changes added

CmkEncryption tests added

CmkEncryption added to only UpdateExpanded variant

Updated help text for Update-AzDataProtectionBackupVault cmdlet

* output type and examples update

* Updated API version to 04-01
Added MUA changes for update-vault, stop-protection, suspend-backup, restore commands
re-recorded failed tests

* api version upgrade

* New-AzDataProtectionBackupVault example fix

* fixed CI issues

---------

Co-authored-by: Kartik Mahajan (from Dev Box) <karmahajan@microsoft.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>

* cmk encryption examples update (#24692)

added quotes

* Sync tools folder from main branch to generation branch (#24691)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Fleet] Managed Identity upgrade (#24643)

* Upgrade Fleet managed Identity design Add example and test

* Fix update description

* Sync tools folder from main branch to generation branch (#24719)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24736)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24739)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [EventHub/ServiceBus] Moved cmdlets to V4 (#24070)

* R2D tesing

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Docs update

* Updates

* updates

* Revert "updates"

* Revert "Updates22"

This reverts commit d247880.

* Revert "Docs update2"

This reverts commit 66fa1e4.

* fixing the test failure

* updates

* Revert "updates"

This reverts commit 3f1bcd8.

* Final updatees

* Docs update

* Updates with test

* updates

* Suppressing the breaking change exceptions

* Breaking changes csv update

* Deleted the tring[] file

* Sync tools folder from main branch to generation branch (#24805)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24814)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24832)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24842)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Chaos] Create new module: Az.Chaos (#24444)

* create new module: chaos

* update

* Update

* create new module Az.Chaos

* create ExampleIssues.csv

* [EventGrid] Create new module EventGrid (#24307)

* Create new module: EventGrid

* update

* update

* update

* update

* update breaking change readme directive

* added alias MaxDeliveryAttempt in New-AzEventGridPartnerTopicEventSubscription

* update

* update

* create BreakingChangeIssues.csv

* [Az.Support] generate Az.Support with autorest (#24843)

* init add powershell cmdlet

* add customization for filedetails

* correct readme to include file workspace create

* add custom cmdlet for creating and uploading the file

* chunking logic for larger files

* add error for custom cmdlet when file too big

* combined cmdlets

* edit custom file upload command to not use default subscriptionid

* no default value for subid in custom file upload

* separate subscription and no subscription commands

* remove comments from combined cmd for file

* fix cmd

* custom no subscription file upload commands

* autogen docs for no sub file upload

* hide individual file commands

* add back workspace commands

* add name as alias for fileworkspacename fileworkspacesnosubscription

* remove update files and add alias for nosubscription file commands

* tests for get service

* tests for problem classification

* try adding erroractionpreference = stop

* tests for new file workspace

* tests for get file workspace

* more tests

* add tests for new file and upload, removefile name as a parameter

* remove new files no subscription

* tests for get file

* erroraction stop

* remove unnecessary comments and print statements

* docs for get support service

* problem classification docs

* add titles

* documentation for file workspace commands

* documentation for file/file workspace cmdlets

* documentation for checkNameAvailability

* added tests and documentation for operations, support ticket, communication and chat transcript cmdlets

* added examples for operations, support ticket, communication and chat transcript cmdlets

* resolve merge conflicts

* resolved PR comments

* get conflict file changes from grhuang/azsupport-autorest

* resolved merge conflict

* removed update communication sub and no sub scenarios

* Revert "removed update communication sub and no sub scenarios"

This reverts commit ccbfdee.

* removed update communication sub and no sub scenarios , updated readme

* make communiation and support ticket properties required in readme, edit get operation file name, edit calling internal cmdlets for file upload

* fix documentation

* fix top query

* add custom error handler

* consolidate list and get communicationsnosubscription and chattranscriptsnosubscription

* init changes to allow no subscription recording tests-need to use csp partner account in tenant 2e6a0c9f-986d-480e-ad4b-bdfddc047aba

* changes to not create new resources in playback

* remove custom error handler csharp

* init add changes to split subscription and no subscription tests

* update skip

* Update recordings

* update recordings

* add more examples to new-azsupportticket documentation

* update documentation and readme

* add directive back in

* make advanced diagnostic consent required

* Add custom error handling for New- and Update- cmdlets to print full details of error (#9)

* Add custom error handler

* Add default filter to retrieve tickets from the past week for Get-AzSupportTickets and Get-AzSupportTicketsNoSubscription (#10)

* add custom filtering for list support ticket if no filter is applied

* make transformations in swagger in readme to make enrollment id not readonly and show isTempTicket (#11)

* Add argument completer (#12)

* add argument completers

* add quotes to argument completers

* remove repeated time zone

* Regenerate powershell module with GA swagger (#13)

* Rerecord tests using GA version (#14)

* add tests for file size (will add recordings once Ga swagger available)

* Regenerate powershell module with GA swagger

* Rerecord tests with GA version

* Fix documentation

* fix url for file upload

---------

Co-authored-by: Grace Huang (from Dev Box) <grhuang@microsoft.com>
Co-authored-by: grhuangmsft <103289214+grhuangmsft@users.noreply.github.com>
Co-authored-by: Shreya Kumar <shreyakumar@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Move Policy CRUD cmdlets to autorest generation: fixes (#23518) (#24221)

* Move Policy CRUD cmdlets to autorest generation: fixes (#23518)

* Set all tests to -LiveOnly
Add back some test infrastructure fixes that were lost
Improve parameter handling for Remove-AzPolicySetDefinition

* Move to supported way of sharing Helpers.psm1 file

* Switch to recommended approach for shared functions

* Update to autorest 4.x (#24319)

Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Update Policy CRUD cmdlets (#24361)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix calculation for $testFilesFolder on macOS/linux (#24408)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-* (#24507)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe (#24540)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Apply changes to support -Playback mode (#24555)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* move creation of resource group to utils.ps1

* Test tweaks (#24566)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* fix test cases

* Correct location handling, fix tests and consistency (#24573)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* remove unnecessary script

* change cached location with a more unique name

* update execution of util script

* fix positional parameters generated when only default parameter set

* fix erroraction for Get-AzPolicyDefinition

* Apply feedback (#24757)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* Implement feedback:
 - Add ResourceId to Get-AzPolicy[Set]Definition
 - Change -BuiltIn to -Builtin
 - Add -InputObject parameter to Update-* cmdlets
 - Control ErrorAction behavior for Get-AzPolicy[Set]Definition
Deprecate the -BackwardCompatible switch

* sync static analysis exceptions

* remove redundant

* added file accidentally removed

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>

* Change parsing logic in ATC custom cmdlet (#24828)

* Change parsing logic in ATC custom cmdlet

* Add if check

* add if check

* Minor change

* Add UT

* Sync tools folder from main branch to generation branch (#24849)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24852)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24860)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24864)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24867)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [StorageAction] onboard StorageAction with autorest (#24841)

* feature storage action 20240131

* Storage Action feature test cases and examples

* Storage Action test added

* Added swagger fix

* Update commit id from swagger main

* Update commit

* Update example

* Update src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTask.md

* Update src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTask.md

* Update example

---------

Co-authored-by: Yan Xu <yanxu1@microsoft.com>

* [custom location] Upgrade managed identity (#24770)

* Upgrade managed identity for Custom Location module

* Fix and remove custom cmdlets

* Add New custom location example exception

* Update CustomLocation examples

* Sync tools folder from main branch to generation branch (#24888)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24890)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24892)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24899)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fix issue for KubernetesConfigutation (#24900)

* Sync tools folder from main branch to generation branch (#24919)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24931)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* updated api version from 2023-07-01 to 2023-08-01
Service Tag as new access rule
Reconcile APIs

* Sync tools folder from main branch to generation branch (#24947)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24955)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24959)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Az VMware Powershell Version 2023-09-01 (#24927)

* Ran autorest

* update repo path in README.md file (input-file property)

* add/fix examples

* update docs

* added test recordings and updates from custom files

* fix example and docs errors and re-ran all recordings

* fix some examples and docs

* Sync tools folder from main branch to generation branch (#24990)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fixed the build failure

* removed the invoke apis

---------

Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
Co-authored-by: yifanz7 <131133995+yifanz7@users.noreply.github.com>
Co-authored-by: Azure PowerShell <65331932+azure-powershell-bot@users.noreply.github.com>
Co-authored-by: azurepowershell <azurepowershell@ms.com>
Co-authored-by: JoyerJin <116236375+JoyerJin@users.noreply.github.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
Co-authored-by: Alec Baird <100880612+alec-baird@users.noreply.github.com>
Co-authored-by: Jaskirat Singh <108129510+jaskisin@users.noreply.github.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>
Co-authored-by: lijinpei2008 <31384087+lijinpei2008@users.noreply.github.com>
Co-authored-by: Yan Xu <yanxu1@microsoft.com>
Co-authored-by: aytripathi <119933278+aytripathi@users.noreply.github.com>
Co-authored-by: Bhavikshah123 <126583651+Bhavikshah123@users.noreply.github.com>
Co-authored-by: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com>
Co-authored-by: Sam Lee <32776898+minhsuanlee@users.noreply.github.com>
Co-authored-by: Sam Lee <samlee3@microsoft.com>
Co-authored-by: Helen Afework <helenafework@microsoft.com>
Co-authored-by: Priyanshi Jain <87351063+priyjain358@users.noreply.github.com>
Co-authored-by: keyurdonga-msft <114703124+keyurdonga-msft@users.noreply.github.com>
Co-authored-by: Ana Arias Rosales <anaarias@microsoft.com>
Co-authored-by: saviesacov <96383178+saviesacov@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: PRATEEK PRASHER <prateekprshr@gmail.com>
Co-authored-by: Ved Kale <vedpkale@outlook.com>
Co-authored-by: Ved Kale <vedkale@microsoft.com>
Co-authored-by: kalpeshbhatia000 <108032504+kalpeshbhatia000@users.noreply.github.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
Co-authored-by: ivadim <iva9im@gmail.com>
Co-authored-by: hvedati <43424696+hvedati@users.noreply.github.com>
Co-authored-by: Harika Vedati <havedati@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: v-vprasannak <146808120+v-vprasannak@users.noreply.github.com>
Co-authored-by: TracyYaoYao <40618305+TracyYaoYao@users.noreply.github.com>
Co-authored-by: schaudhari6254888 <111409694+schaudhari6254888@users.noreply.github.com>
Co-authored-by: yuc-Li <58678302+yuc-Li@users.noreply.github.com>
Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>
Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com>
Co-authored-by: Jason Urban <jurban@microsoft.com>
Co-authored-by: kukulkarni1 <101899571+kukulkarni1@users.noreply.github.com>
Co-authored-by: fangru2023 <138832097+fangru2023@users.noreply.github.com>
Co-authored-by: siddiavinashmsft <117774802+siddiavinashmsft@users.noreply.github.com>
Co-authored-by: Elina Liu <wenxliu@microsoft.com>
Co-authored-by: Danny Furnivall <danielfurnivall@gmail.com>
Co-authored-by: Francisco Gamino <Francisco-Gamino@users.noreply.github.com>
Co-authored-by: Kartik Mahajan <66360449+Karmah24@users.noreply.github.com>
Co-authored-by: Kartik Mahajan (from Dev Box) <karmahajan@microsoft.com>
Co-authored-by: Grace Huang (from Dev Box) <grhuang@microsoft.com>
Co-authored-by: grhuangmsft <103289214+grhuangmsft@users.noreply.github.com>
Co-authored-by: Shreya Kumar <shreyakumar@microsoft.com>
Co-authored-by: Chris Stackhouse <cstack@microsoft.com>
Co-authored-by: Bhupesh Bhatt <bhupeshbhatt@microsoft.com>
Co-authored-by: Ana Arias Rosales <147624519+anaarias-msft@users.noreply.github.com>
NoriZC added a commit that referenced this pull request Jun 4, 2024
* [MSGraph] Enable app roleassignment commands for Service Principal (#23732)

* add approle api in local yaml

* add approle api in local yaml

* customize New-AzAdServiceprincipalAppRoleAssignment

* app role

* Delete src/Resources/MSGraph.Autorest/test/Get-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* Delete src/Resources/MSGraph.Autorest/test/Remove-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* Delete src/Resources/MSGraph.Autorest/test/Update-AzADServicePrincipalAppRoleAssignedTo.Tests.ps1

* add examples

* remove useless parameters

* Update New-AzADServicePrincipalAppRoleAssignment.Tests.ps1

* update

* Update Get-AzADApplication.ps1

* Update Get-AzADApplication.ps1

* change output ux, resolve comments

* fix bug (#23737)

* [StorageMover] Rename SmbFileShare endpoint cmdlets  (#23738)

* Rename SmbFileShare endpoint cmdlets

* update remaining

* Remove old test file

* Sync tools folder from main branch to generation branch (#23755)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Fleet] Kubernetes Fleet manager generated by autorest (#23631)

* generate Fleet by autorest, code design, example, test

* update examples

* update doc

* Update README.md

* fix typo

* Sync tools folder from main branch to generation branch (#23776)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Update the folder structure of Workloads (#23781)

* Update the folder structure of Workloads

* Update the folder structure of Workloads

* Update the folder structure of Workloads

* Remove the useless files (#23783)

* Sync tools folder from main branch to generation branch (#23795)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23801)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23807)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Alecb/rollback generation to 2023 09 05 (#23810)

* Removed Directives, ran autorest, deleted 3 custom appAttach cmdlets

* ran first test with failures on user session, remove

* Added successful remove session host recording

* All tests pass

* fixed removed session host test

* Removed changes to json file in Tools Common

* Removed extra space

* Find all missed one somehow

* Added additional breaking change suppression

* New Version 0.2.0 for Azure Workloads Module (#23786)

* New Version 1.0.0 for Azure Workloads Module

New Version 1.0.0 for Azure Workloads Module

* Update New-AzWorkloadsSapVirtualInstance.Tests.ps1

Added to run the checks again

* Update README.md

* Updating Docs and Test cases

* Update New-AzWorkloadsSapVirtualInstance.Tests.ps1

* Fixing Stop Database test

* correcting error for Remove SVI

* Fixing the issue with New SVI

* Sync tools folder from main branch to generation branch (#23820)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.DataProtection] Added support for Cross region restore for Backup vaults (#23818)

* Added support for Cross region restore for Backup vaults

* fixed Analyse issues

* re-recorded failed tests

* resolved issue with HttpPipelinePrepend

* added no-inline

* Sync tools folder from main branch to generation branch (#23824)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23837)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23843)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Azure Monitor] Metrics Data Plane API 2023-10-01 (#23695)

* Azure Monitor Metrics Data Plane API 2023-05-01-Preview Client tools

* [MetricBatch] change the module name

Make module name the same as folder name

* Update README.md

* Update to stable version

* CI failure Test

* Remove Metric manage plane

---------

Co-authored-by: Xiaogang <xidi@microsoft.com>

* Update SpringCloud message (#23854)

* Sync tools folder from main branch to generation branch (#23868)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Remove Set-AzNginxCertificate and Set-AzNginxDeployment (#23881)

* Sync tools folder from main branch to generation branch (#23883)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23895)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Rename Metrics Data plane to MetricsData (#23896)

* [Az.SqlVirtualMachine] Fix a bug of parameter 'VirtualMachineResourceId' (#23903)

* Sync tools folder from main branch to generation branch (#23899)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23922)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23932)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#23936)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Onboarding ManagedNetworkFabric service powershell module (#23862)

* Onboarding ManagedNetworkFabric service powershell module

* Corrected path for azure.noprofile.md

* updated key Branch to commit

* Updated subcription id in config.json

* Added subcription Id to the command

* Corrected test cases to include subscription id

* Updated network tap name value

* Updated readme file to avoid flattening

* Removed file as it is not implemented

* Corrected example and doc file for new L3 Isolation domain

* Corrected formats in md files

* Corrected indentation

* Updated recording for networkfabriccontoller

* Updated recording file

* Updated readme file

* COming back to old changes due to build failure

* Changes for test case failures

* Adding versioning to Login migration console app (#23988)

* Sync tools folder from main branch to generation branch (#23993)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fix custom location enable flag issue (#24005)

* Sync tools folder from main branch to generation branch (#24010)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* removing interface remove option (#24019)

* removing interface remove option

* Update the examples and docs

---------

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Sync tools folder from main branch to generation branch (#24016)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24031)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fixed the resolve path issue in Install-AzAksCliTool. [#22853] (#24032)

* Az.Migrate support new Data.Replication (#23615)

* Support new scenario in Az.Migrate

* Added retry on get machine site.

* Add READMEs

* Revert changes

---------

Co-authored-by: Sam Lee <samlee3@microsoft.com>
Co-authored-by: Helen Afework <helenafework@microsoft.com>

* Az.StackHCI OOB Release - Jan 25 (#24026)

* changes to ps1

* build changes

* Sync tools folder from main branch to generation branch (#24046)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Kdonga/vmware ps 2023 (#23928)

* updated the vmware ps commands to 2023 version

* Added Test Recordings

* additional testing for ps vmware modules

* updated files according to autorest v4 spec

* Removed packages lock file

* new recordings

* additional recording files

* cmdlet workload network is hidden

* removed the test files for workload network

* New Recordings for additional cmdlts

* replace localhost to management.azure.com

* Add missing examples

* added tests for the missing examples

* made updates to AzVMwareGlobalReachConnection test case

---------

Co-authored-by: Ana Arias Rosales <anaarias@microsoft.com>

* Sync tools folder from main branch to generation branch (#24059)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24078)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24101)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* update monitor test and design by autorest change (#24099)

* Private Marketplace - Sync APIs with swagger 2023-01-01 and adds tests (#24114)

* upgrade API version, use autorest.powershell v4

* upgrade API version

* fix POST operations

* phase 1 - tests till user offers

* tmp1

* fix2

* clean tests

* run

* Update src/Marketplace/Marketplace.Autorest/README.md

* env

* skip and fix

* examples

* test record & playback

* remove two APIs

* remove stopsell & setrules

* docs with examples

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Sync tools folder from main branch to generation branch (#24125)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24151)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24155)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Updated `Set-AzStackHCI` to use PATCH for updating cluster resource instead of PUT and to only send changed properties (#24158)

* update connectedmachine (#24064)

* update connectedmachine

* Update src/ConnectedMachine/ConnectedMachine.Autorest/custom/New-AzConnectedMachineRunCommand_ScriptLocalPath.ps1

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* rename to tags

* fix tests

---------

Co-authored-by: Ved Kale <vedkale@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Feature firmwareanalysis ps (#24138)

* Onboard firmwareanalysis commands to powwershell

* add test cases and doc

* add docs

* add outputs

* update command

* fix test

* update doc

* update doc

* fix errors

* add recording

* remove command

* update tests

* Feature firmwareanalysis fix (#24188)

* Fix documentation for firmwareanalysis ps

* Regenerate FirmwareAnalysis

* remove commands and some variants

* update doc

---------

Co-authored-by: Lei Jin <leijin@microsoft.com>

* Sync tools folder from main branch to generation branch (#24228)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Remove command for dowmload url (#24220)

* Sync tools folder from main branch to generation branch (#24240)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24241)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Security] Initialize  Security Autogenerated Modules (#24162)

* Generate SecurityConnectors and ApiCollections cmdlets

* Add Get-* integration tests

* Regenerate tests

* Update docs and examples. Rename subject *Repos to *Repo.

* Remove depricated offering

* Fix static analysis errors

* Fix one more static analysis issue

* Sync tools folder from main branch to generation branch (#24247)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24255)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Report Image Download Progress  (#24180)

* working image download progress

* adding reporting download progress logic

* adding image recording test

* adding marketplace test

* Use fixed autorest.powershell version to generate

* updating env and recording files

* Revert change to README.md

* updatig variables and image recording

* image test

* storage path test

* disk recording

* updating env variables

* logical network test

* nic test

* fixing networkinterface test

* vm test

* fixing image test

* image recording

* fixing image

* fix

---------

Co-authored-by: Harika Vedati <havedati@microsoft.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* PowerShell Support for Email Services Control Plane CRUD operations (#24230)

* Powershell Support for Email Services Control Plane CRUD operations - # 3442118

* Powershell Support for Email Services Control Plane CRUD operations - test recordings- #3442118

* Removed  .gitignore

* Updated test recordings

* readme.md file root-module-name changes

* Updated examples

* Remove use autorest.powershell 4.x

---------

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* Fix the case sensitive issue when preparing migration (#24272)

* Sync tools folder from main branch to generation branch (#24296)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24309)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24315)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24328)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24346)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24351)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24377)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Change Login Migration Console App source to NuGet.org and Versioning support. (#24330)

* Adding versioning to Login migration console app

* Login migration Powershell script changes to change console app source change to Nuget.org and versioning support

* Modularity changes

* Removing try catch from the helper methods

* [EventHub/ServiceBus] Breaking change Alert for EventHub ServiceBus (#24354)

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* updates

* updates

* updates

* updates

* Updates

* Updates

* updates version number

* Update New-AzServiceBusIPRuleConfig.ps1

* [Application insight] Fix update component (#24405)

* fix application insight update cmdlet

* revert group logic in Application insights test utils

* Sync tools folder from main branch to generation branch (#24441)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Revert MI breaking changes for Fleet (#24448)

* [HDInsight on AKS] New Api version 2023-11-01-preview (#24375)

* Update readme.md

* Revert module version in files

* Add a custom command.

* Update readme.md and re generate.

* Update all docs and examples.

* Update test cases and session records.

* Add a command.

* Remove generated UX folder.

* Remove local input-file value from readme.md

* Update a command params.

* Add synopsis  and des for two new custom commands.

* Add exception for signature issues.

* Fix a error for custom command.

* Fix examples errors.

* Fix an example error.

* Update examples.

* Remove "SupportsShouldProcess"

---------

Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>

* StackHCIVM 2024-01-01 api version  (#24422)

* post autogeneration

* delete

* removing alb changes?

* removing alb changes

* fixing readme file to match folder structure of central repo

* removing example changes

* fix

* fixes for examples

* fix

* fix

* fix

* vm agent fixes

* removing module versin change

* adding storage path recording

* adding disk recording

* adding networking recoridng

* adding image and nic recordings

* vm recording

* image recording

* merge

* report api error

---------

Co-authored-by: Harika Vedati <havedati@microsoft.com>

* Replace Start-Sleep with Start-TestSleep to avoid waiting during playback (#24463)

* fix tests (#24475)

* Sync tools folder from main branch to generation branch (#24481)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.DataProtection] Onboarded new workloads - PGFlex and MySQL (#24443)

* Onboarded PGFlex and MySQL workloads.
Added end to end support for these workloads.

* re-recorded all test cases

* reverted breaking change by modifying default parameter set name

* Mitigate MI breaking changes (#24483)

* Mitigate MI breaking changes

* Update README.md

* Update README.md

* Update examples for New-AzApplicationInsightsWebTest (#24508)

* Fix typo in example Get-AzApplicationInsightsWorkbookRevision (#24511)

* Sync tools folder from main branch to generation branch (#24504)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24550)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Adding PowerShell module for the EdgeZones service (#24450)

* Adding initial README.md

* After running autorest step5 here Step 5 https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#:~:text=Step%205.%20In%20Azure%20PowerShell%2C%20execute%20command%20autorest%20in%20the%20module%20folder%20to%20generate%20the%20code.

* After performin pswh build-module.ps1 in step 6 https://eng.ms/docs/cloud-ai-platform/azure-core/azure-management-and-platforms/control-plane-bburns/azure-cli-tools-azure-cli-powershell-and-terraform/azure-cli-tools/onboarding/azurepowershell/dev_guidance_codegen#:~:text=Step%206.%20In%20Azure%20PowerShell%2C%20execute%20build%2Dmodule.ps1%20build%20module%20in%20the%20module%20folder.

* Add preview message

* Update examples

* Update examples under docs folder besides under examples

* Updated examples under docs folder

* Test cases for AzEdgeZonesExtendedZone

* Added validation for circuit bandwidth in New/Update collector policy cmdlet for ATC (#24571)

* Modified custom cmdlet

* minor fix

* Added custom new cmdlet

* Added shouldprocess

* Add UT

* fix

* Update

* revert

* revert

* Add UT

* Add UT

* Address comment

* Added UT

* test

* Testing

* Testing

* Tests

* Tests

* [Sphere] Feature generated by auto rest (#24568)

* feature Sphere stable 20240401

* sphere directive redesign

* test

* Update Sphere test cases

* Update message in readme

* Fix count parameter set for analyze test coverage

* Sync tools folder from main branch to generation branch (#24570)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Add log scrub for AzureFrontDoor profile (#24534)

* Use autorest to generate new property in exsiting cmdlets

* Add memory objects for AFDX profile LogSrubbing

* Customize memory ojbects for profile Logscrub

* Add examples when using the profileScrubbing'

* Add new testcases for new property and record all the testcases

* Add testcases and examples for New-AzFrontDoorCdnProfile using ProfileLogSrubbing parameter

* Feature standbypool powershell init (#24604)

* new standby pool cmdlets.

* change cmdlets and fix ci issue.

* fix ci.

* documentation.

* [SelfHelp] Add new API version 2024-03-01-preview support for AzSelfHelp cmdlets for Help Resource Provider (#24547)

* initial commit for SelfHelp new version

* Adding files generated by build-module powershell file

* Updating Test files

* Added unit tests

* Adding examples

* Updating DiscoverySolutions examples

* Updating examples

* Added LiveOnly tag to tests

* Adding SpotPlacementRecommender API cmdlets - version 2024-03-01-preview (#24352)

* Initial commit

* Update files after setting directives to add remove cmdlets

* Add initial tests for Invoke-SpotPlacementRecommender cmdlet and some examples in the doc

* Add examples to Invoke-Spot examples md file

* Remove unnecessary test.ps1 files

* Readding some removed files that should not be deleted (1)

* Readding some removed files that should not be deleted (2)

* Readding some removed files that should not be deleted (3)

* Adding older deleted cmds to FunctionsToExport

* Removing Get SpotPlacementRecommender files

* Remove Get-AzSpotPlacementRecommender.Tests.ps1, update failing test and doc

* Rever changes to docs/Az.Compute.md

* Only remove new functions from diagnostic.json

* Reverting changes to docs of other cmdlets

* Update README.md to point to remote swagger

* Readd removed Get-AzGalleryApplication Get-AzGalleryApplicationVersion descriptions from Az.Compute.md

* Update README.md commit to the commit version that includes Spot Placement Recommender merge

* Update Az.Compute.psd1 to remove Get-AzSpotPlacementRecommender function to export, add additional examples for SpotPlacementRecommenderInput parameter, update test to include SpotPlacementRecommenderInput example

* Update test cases, response should not be null or empty, update env.json, localEnv.json values

* Add recording file and fix invalid input desired size

* Sync tools folder from main branch to generation branch (#24630)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Az.Monitor] Change the name of sub-module (#24613)

* Change the name of sub-module

* Change the name of sub-module

* Rename Metric.Autorest to MetricData.Autorest

* Suppress the exceptions

* Suppress the exceptions

* Added vault tier restore and update backup instance for blobs (#24557)

* Added support for vaulted blobs restore and Update-backupInstance.

* added update BI test case
added ILR test case
added deep validate
added examples

* re-recorded failed tests

* re-recorded failed test

* Sync tools folder from main branch to generation branch (#24641)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* fixed in generation branch (#24668)

* [Functions] Update the logic to populate the function app creation stacks cache and tab completers. (#24656)

* Update Stacks API parser logic

* Update Functions Stack definitions

* Update the logic to populate tab completers only when the Az.Functions cmdlets are invoked

* Update test

* [Az.DataProtection] Adding CmkEnryption parameters to Get-AzDataProtectionBackupVault, New-AzDataProtectionBackupVault and Update-AzDataProtectionBackupVault cmdlets (#24654)

* cmk ps changes added

CmkEncryption tests added

CmkEncryption added to only UpdateExpanded variant

Updated help text for Update-AzDataProtectionBackupVault cmdlet

* output type and examples update

* Updated API version to 04-01
Added MUA changes for update-vault, stop-protection, suspend-backup, restore commands
re-recorded failed tests

* api version upgrade

* New-AzDataProtectionBackupVault example fix

* fixed CI issues

---------

Co-authored-by: Kartik Mahajan (from Dev Box) <karmahajan@microsoft.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>

* cmk encryption examples update (#24692)

added quotes

* Sync tools folder from main branch to generation branch (#24691)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Fleet] Managed Identity upgrade (#24643)

* Upgrade Fleet managed Identity design Add example and test

* Fix update description

* Sync tools folder from main branch to generation branch (#24719)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24736)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24739)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [EventHub/ServiceBus] Moved cmdlets to V4 (#24070)

* R2D tesing

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Updates

* Docs update

* Updates

* updates

* Revert "updates"

* Revert "Updates22"

This reverts commit d247880.

* Revert "Docs update2"

This reverts commit 66fa1e4.

* fixing the test failure

* updates

* Revert "updates"

This reverts commit 3f1bcd8.

* Final updatees

* Docs update

* Updates with test

* updates

* Suppressing the breaking change exceptions

* Breaking changes csv update

* Deleted the tring[] file

* Sync tools folder from main branch to generation branch (#24805)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24814)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24832)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24842)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [Chaos] Create new module: Az.Chaos (#24444)

* create new module: chaos

* update

* Update

* create new module Az.Chaos

* create ExampleIssues.csv

* [EventGrid] Create new module EventGrid (#24307)

* Create new module: EventGrid

* update

* update

* update

* update

* update breaking change readme directive

* added alias MaxDeliveryAttempt in New-AzEventGridPartnerTopicEventSubscription

* update

* update

* create BreakingChangeIssues.csv

* [Az.Support] generate Az.Support with autorest (#24843)

* init add powershell cmdlet

* add customization for filedetails

* correct readme to include file workspace create

* add custom cmdlet for creating and uploading the file

* chunking logic for larger files

* add error for custom cmdlet when file too big

* combined cmdlets

* edit custom file upload command to not use default subscriptionid

* no default value for subid in custom file upload

* separate subscription and no subscription commands

* remove comments from combined cmd for file

* fix cmd

* custom no subscription file upload commands

* autogen docs for no sub file upload

* hide individual file commands

* add back workspace commands

* add name as alias for fileworkspacename fileworkspacesnosubscription

* remove update files and add alias for nosubscription file commands

* tests for get service

* tests for problem classification

* try adding erroractionpreference = stop

* tests for new file workspace

* tests for get file workspace

* more tests

* add tests for new file and upload, removefile name as a parameter

* remove new files no subscription

* tests for get file

* erroraction stop

* remove unnecessary comments and print statements

* docs for get support service

* problem classification docs

* add titles

* documentation for file workspace commands

* documentation for file/file workspace cmdlets

* documentation for checkNameAvailability

* added tests and documentation for operations, support ticket, communication and chat transcript cmdlets

* added examples for operations, support ticket, communication and chat transcript cmdlets

* resolve merge conflicts

* resolved PR comments

* get conflict file changes from grhuang/azsupport-autorest

* resolved merge conflict

* removed update communication sub and no sub scenarios

* Revert "removed update communication sub and no sub scenarios"

This reverts commit ccbfdee.

* removed update communication sub and no sub scenarios , updated readme

* make communiation and support ticket properties required in readme, edit get operation file name, edit calling internal cmdlets for file upload

* fix documentation

* fix top query

* add custom error handler

* consolidate list and get communicationsnosubscription and chattranscriptsnosubscription

* init changes to allow no subscription recording tests-need to use csp partner account in tenant 2e6a0c9f-986d-480e-ad4b-bdfddc047aba

* changes to not create new resources in playback

* remove custom error handler csharp

* init add changes to split subscription and no subscription tests

* update skip

* Update recordings

* update recordings

* add more examples to new-azsupportticket documentation

* update documentation and readme

* add directive back in

* make advanced diagnostic consent required

* Add custom error handling for New- and Update- cmdlets to print full details of error (#9)

* Add custom error handler

* Add default filter to retrieve tickets from the past week for Get-AzSupportTickets and Get-AzSupportTicketsNoSubscription (#10)

* add custom filtering for list support ticket if no filter is applied

* make transformations in swagger in readme to make enrollment id not readonly and show isTempTicket (#11)

* Add argument completer (#12)

* add argument completers

* add quotes to argument completers

* remove repeated time zone

* Regenerate powershell module with GA swagger (#13)

* Rerecord tests using GA version (#14)

* add tests for file size (will add recordings once Ga swagger available)

* Regenerate powershell module with GA swagger

* Rerecord tests with GA version

* Fix documentation

* fix url for file upload

---------

Co-authored-by: Grace Huang (from Dev Box) <grhuang@microsoft.com>
Co-authored-by: grhuangmsft <103289214+grhuangmsft@users.noreply.github.com>
Co-authored-by: Shreya Kumar <shreyakumar@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>

* Move Policy CRUD cmdlets to autorest generation: fixes (#23518) (#24221)

* Move Policy CRUD cmdlets to autorest generation: fixes (#23518)

* Set all tests to -LiveOnly
Add back some test infrastructure fixes that were lost
Improve parameter handling for Remove-AzPolicySetDefinition

* Move to supported way of sharing Helpers.psm1 file

* Switch to recommended approach for shared functions

* Update to autorest 4.x (#24319)

Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Update Policy CRUD cmdlets (#24361)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix calculation for $testFilesFolder on macOS/linux (#24408)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-* (#24507)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe (#24540)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Apply changes to support -Playback mode (#24555)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* move creation of resource group to utils.ps1

* Test tweaks (#24566)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* fix test cases

* Correct location handling, fix tests and consistency (#24573)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* remove unnecessary script

* change cached location with a more unique name

* update execution of util script

* fix positional parameters generated when only default parameter set

* fix erroraction for Get-AzPolicyDefinition

* Apply feedback (#24757)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* Implement feedback:
 - Add ResourceId to Get-AzPolicy[Set]Definition
 - Change -BuiltIn to -Builtin
 - Add -InputObject parameter to Update-* cmdlets
 - Control ErrorAction behavior for Get-AzPolicy[Set]Definition
Deprecate the -BackwardCompatible switch

* sync static analysis exceptions

* remove redundant

* added file accidentally removed

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>

* Change parsing logic in ATC custom cmdlet (#24828)

* Change parsing logic in ATC custom cmdlet

* Add if check

* add if check

* Minor change

* Add UT

* Sync tools folder from main branch to generation branch (#24849)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24852)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24860)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24864)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24867)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* [StorageAction] onboard StorageAction with autorest (#24841)

* feature storage action 20240131

* Storage Action feature test cases and examples

* Storage Action test added

* Added swagger fix

* Update commit id from swagger main

* Update commit

* Update example

* Update src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTask.md

* Update src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTask.md

* Update example

---------

Co-authored-by: Yan Xu <yanxu1@microsoft.com>

* [custom location] Upgrade managed identity (#24770)

* Upgrade managed identity for Custom Location module

* Fix and remove custom cmdlets

* Add New custom location example exception

* Update CustomLocation examples

* Sync tools folder from main branch to generation branch (#24888)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24890)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24892)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24899)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Fix issue for KubernetesConfigutation (#24900)

* Sync tools folder from main branch to generation branch (#24919)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24931)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24947)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24955)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Sync tools folder from main branch to generation branch (#24959)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* Az VMware Powershell Version 2023-09-01 (#24927)

* Ran autorest

* update repo path in README.md file (input-file property)

* add/fix examples

* update docs

* added test recordings and updates from custom files

* fix example and docs errors and re-ran all recordings

* fix some examples and docs

* Sync tools folder from main branch to generation branch (#24990)

Co-authored-by: azurepowershell <azurepowershell@ms.com>

* added reconcile apis

* updated docs and examples

* fixed build errors

---------

Co-authored-by: NoriZC <110961157+NoriZC@users.noreply.github.com>
Co-authored-by: yifanz7 <131133995+yifanz7@users.noreply.github.com>
Co-authored-by: Azure PowerShell <65331932+azure-powershell-bot@users.noreply.github.com>
Co-authored-by: azurepowershell <azurepowershell@ms.com>
Co-authored-by: JoyerJin <116236375+JoyerJin@users.noreply.github.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
Co-authored-by: Alec Baird <100880612+alec-baird@users.noreply.github.com>
Co-authored-by: Jaskirat Singh <108129510+jaskisin@users.noreply.github.com>
Co-authored-by: Himanshu Agarwal <hiaga@microsoft.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>
Co-authored-by: lijinpei2008 <31384087+lijinpei2008@users.noreply.github.com>
Co-authored-by: Yan Xu <yanxu1@microsoft.com>
Co-authored-by: aytripathi <119933278+aytripathi@users.noreply.github.com>
Co-authored-by: Bhavikshah123 <126583651+Bhavikshah123@users.noreply.github.com>
Co-authored-by: NanxiangLiu <33285578+Nickcandy@users.noreply.github.com>
Co-authored-by: Sam Lee <32776898+minhsuanlee@users.noreply.github.com>
Co-authored-by: Sam Lee <samlee3@microsoft.com>
Co-authored-by: Helen Afework <helenafework@microsoft.com>
Co-authored-by: Priyanshi Jain <87351063+priyjain358@users.noreply.github.com>
Co-authored-by: keyurdonga-msft <114703124+keyurdonga-msft@users.noreply.github.com>
Co-authored-by: Ana Arias Rosales <anaarias@microsoft.com>
Co-authored-by: saviesacov <96383178+saviesacov@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: PRATEEK PRASHER <prateekprshr@gmail.com>
Co-authored-by: Ved Kale <vedpkale@outlook.com>
Co-authored-by: Ved Kale <vedkale@microsoft.com>
Co-authored-by: kalpeshbhatia000 <108032504+kalpeshbhatia000@users.noreply.github.com>
Co-authored-by: Lei Jin <leijin@microsoft.com>
Co-authored-by: ivadim <iva9im@gmail.com>
Co-authored-by: hvedati <43424696+hvedati@users.noreply.github.com>
Co-authored-by: Harika Vedati <havedati@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: v-vprasannak <146808120+v-vprasannak@users.noreply.github.com>
Co-authored-by: TracyYaoYao <40618305+TracyYaoYao@users.noreply.github.com>
Co-authored-by: schaudhari6254888 <111409694+schaudhari6254888@users.noreply.github.com>
Co-authored-by: yuc-Li <58678302+yuc-Li@users.noreply.github.com>
Co-authored-by: v-yuchenli <v-yuchenli@microsoft.com>
Co-authored-by: Vincent Dai <23257217+vidai-msft@users.noreply.github.com>
Co-authored-by: Jason Urban <jurban@microsoft.com>
Co-authored-by: kukulkarni1 <101899571+kukulkarni1@users.noreply.github.com>
Co-authored-by: fangru2023 <138832097+fangru2023@users.noreply.github.com>
Co-authored-by: siddiavinashmsft <117774802+siddiavinashmsft@users.noreply.github.com>
Co-authored-by: Elina Liu <wenxliu@microsoft.com>
Co-authored-by: Danny Furnivall <danielfurnivall@gmail.com>
Co-authored-by: Francisco Gamino <Francisco-Gamino@users.noreply.github.com>
Co-authored-by: Kartik Mahajan <66360449+Karmah24@users.noreply.github.com>
Co-authored-by: Kartik Mahajan (from Dev Box) <karmahajan@microsoft.com>
Co-authored-by: Grace Huang (from Dev Box) <grhuang@microsoft.com>
Co-authored-by: grhuangmsft <103289214+grhuangmsft@users.noreply.github.com>
Co-authored-by: Shreya Kumar <shreyakumar@microsoft.com>
Co-authored-by: Chris Stackhouse <cstack@microsoft.com>
Co-authored-by: Bhupesh Bhatt <bhupeshbhatt@microsoft.com>
Co-authored-by: Ana Arias Rosales <147624519+anaarias-msft@users.noreply.github.com>
qinzhouxu pushed a commit to qinzhouxu/azure-powershell that referenced this pull request Jun 5, 2024
…zure#24221)

* Move Policy CRUD cmdlets to autorest generation: fixes (Azure#23518)

* Set all tests to -LiveOnly
Add back some test infrastructure fixes that were lost
Improve parameter handling for Remove-AzPolicySetDefinition

* Move to supported way of sharing Helpers.psm1 file

* Switch to recommended approach for shared functions

* Update to autorest 4.x (Azure#24319)

Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Update Policy CRUD cmdlets (Azure#24361)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix calculation for $testFilesFolder on macOS/linux (Azure#24408)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-* (Azure#24507)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe (Azure#24540)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Apply changes to support -Playback mode (Azure#24555)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* move creation of resource group to utils.ps1

* Test tweaks (Azure#24566)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* fix test cases

* Correct location handling, fix tests and consistency (Azure#24573)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* remove unnecessary script

* change cached location with a more unique name

* update execution of util script

* fix positional parameters generated when only default parameter set

* fix erroraction for Get-AzPolicyDefinition

* Apply feedback (Azure#24757)

* Update to autorest 4.x
Update to Azure Policy 2023-04-01
Move to non-versioned interface types
Complete full test suite for existing cmdlets
Few bug fixes
Add completer for Location parameter
Fix record/playback, remove -LiveOnly tags
Make test names repeatable to work with record/playback
Implement resource group functions that became inaccessible
Fix test failures due to default parameter injection

* Clean up some transforms in README
Remove unsupported (for now) parameters
Streamline common test code
Move common test code to utils.ps1
Add serialization of test variables to env.json

* Remove extra parameters from Get-AzPolicyAssignment
Rerecord the tests

* Fix $testFilesFolder calculation to work on macOS/linux.

* Hide generated parameter sets for New-*
Correct definitions, validation, and tests for New-AzPolicyAssignment parameters
Re-record all tests

* Replace Get-AzContext with Utils\Get-SubscriptionIdTestSafe
Move to autorest 4.0.690
Update managed identity properties to match generation changes
Remove several parameter transforms no longer needed
Rerecord all tests
91 tests still failing on -Playback with the same signature

* Remove location completer from exports/docs/examples/help

* Improve location completer tests

* Remove transforms for Scope and Id parameters no longer needed
Update cmdlets to use Scope and Id directly
Rerecord all tests
All tests pass in -Record mode
Failures in -Playback mode unchanged

* Change location completer to lazy load (vs. module load)
Preserve "extra" input parameters in Update-* calls to Get-* in order to support -Playback test mode
Tag test files that don't support -Playback mode as LiveOnly
Rerecord all recording files

* Minor updates for consistency
Rerecord all tests
Move 4 test files back to LiveOnly

* Updates for consistency and to fix tests
Make changes to ensure consistent and valid handling of $location
Rerecord tests

* Fix bad merge
Rerecord two test files

* Re-record tests

* Implement feedback:
 - Add ResourceId to Get-AzPolicy[Set]Definition
 - Change -BuiltIn to -Builtin
 - Add -InputObject parameter to Update-* cmdlets
 - Control ErrorAction behavior for Get-AzPolicy[Set]Definition
Deprecate the -BackwardCompatible switch

* sync static analysis exceptions

* remove redundant

* added file accidentally removed

---------

Co-authored-by: Yabo Hu <yabhu@microsoft.com>
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