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

Fix 4 P1 bugs for Sprint42 #12

Merged
merged 5 commits into from
Dec 1, 2014
Merged

Fix 4 P1 bugs for Sprint42 #12

merged 5 commits into from
Dec 1, 2014

Conversation

zhenyud
Copy link
Contributor

@zhenyud zhenyud commented Nov 25, 2014

1761320 [PowerShell] Parameter -Environment enum values are not well documented
1975232 [Powershell] cmdlets help content bugs
2470941 [PowerShell] get-help -online will throw error. expect it to redirect users to online page
1720534 [PowerShell for XSMB] enable accepting objects from pipeline to enable multi-task in File cmdlets

@azuresdkci
Copy link

Can one of the admins verify this patch?

@azurecla
Copy link

Hi @zhenyud, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

In order for us to evaluate and accept your PR, we ask that you sign a contribution license agreement. It's all electronic and will take just minutes. I promise there's no faxing. https://cla.azure.com.

TTYL, AZPRBOT;

}
catch (ArgumentException e)
{
throw new ArgumentException(e.Message + " " + String.Format(CultureInfo.CurrentCulture, Resources.ValidEnvironmentName, EnvironmentName.AzureCloud, EnvironmentName.AzureChinaCloud));

Choose a reason for hiding this comment

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

string.format

ogail added a commit that referenced this pull request Dec 1, 2014
Fix 4 P1 bugs for Sprint42
@ogail ogail merged commit 60b964d into Azure:dev Dec 1, 2014
akromm-zz pushed a commit to akromm-zz/azure-powershell that referenced this pull request Jan 5, 2015
Vault - Updating Azure Key Vault PowerShell with V3 protocol and adding help xml file
ogail pushed a commit that referenced this pull request Feb 25, 2015
Different parameter sets to retrieve E2E and E2A Network Mappings, corrected mapping object and couple of enums
avijitgupta pushed a commit to avijitgupta/azure-powershell that referenced this pull request Mar 2, 2015
ogail pushed a commit that referenced this pull request Mar 18, 2015
pull from dev branch of azure/azure-powershell
markcowl pushed a commit that referenced this pull request Mar 23, 2015
Azure dev -> private dev PR
akromm-zz pushed a commit to akromm-zz/azure-powershell that referenced this pull request Apr 18, 2015
ogail pushed a commit that referenced this pull request Jun 2, 2015
ogail pushed a commit that referenced this pull request Jul 7, 2015
Adding Device Id inputs to the Clone cmdlets.
stankovski pushed a commit that referenced this pull request Jul 10, 2015
Get-AzureBackupContainer
hovsepm pushed a commit that referenced this pull request Jan 28, 2016
Add Subscription ID property
cormacpayne pushed a commit that referenced this pull request Jan 11, 2017
Merge from Azure/dev
bganapa pushed a commit to bganapa/azure-powershell that referenced this pull request Mar 22, 2018
vladimir-shcherbakov pushed a commit that referenced this pull request May 4, 2018
SignalR Service PowerShell module continued
maddieclayton pushed a commit that referenced this pull request Sep 15, 2018
Update changelogs and release notes for release branch
cormacpayne pushed a commit that referenced this pull request Mar 5, 2019
cormacpayne pushed a commit that referenced this pull request Apr 16, 2019
* NFSAAS-1707 update from review comments

* NFSAAS-1707 update from review comments
cormacpayne pushed a commit that referenced this pull request Jul 31, 2019
romahamu added a commit to romahamu/azure-powershell that referenced this pull request May 4, 2020
…zure#527)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets. (Azure#1)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets.

* Adding empty folder layout.

* Update project reference for Test project of HPC Cache (Azure#2)

* Initial commit of clients / first mock cmdlet (Azure#3)

* Initial commit of clients / first mock cmdlet

* Initial commit of clients / first mock cmdlet

* Rename Client, Remove unnecessary files, return skulist in azure cmdlet

* Remove utilities

* Add classes to wrap .NET SDK type object. (Azure#4)

* Create wrapper for SDK management client (Azure#5)

* Fix GetAzSku wrt client changes.

* Restructure base cmdlet and mangement client class.

* Test Framework, Additional Cmdlets, Sku Object, Formatting Fixes (Azure#6)

* More commands and start of test framework

Move all logic out of hpc cache client to the commandlets

More commands and start of test framework

Updated commands using new client

fix rebase

fix spacing

fix comments

remove vars

* Test Framework working, add comments to code

* Help text files

* Updates to cmdlet New-AzHpcCache

* Update cmdlet Get-AzHpcCache

* Update cmdlet Get-AzHpcCacheUsageModels

* Update cmdlet Get-AzHpcCacheSku

* Update cmdlet Remove-AzHpcCache

* Cmdlet Update-AzHpcCache and help file

* Changes made for code review

* Start-AzHpcCache Cmdlet (Azure#8)

* Add support for Start-AzHpcCache.

* Adds resource designer for the project.

* Adds assembly info for the project.

* Remove unused imports

* Remove .keep files as they are no longer required.

* Use resource designer to handle strings in remove hpc cache cmdlet.

* Fix namespace and add project reference to test project.

* Prefix with this for local references for better code readability.

* Fix argument validation.

* Add synopsis for start hpc cache cmdlet help file.

* Update Sku Test

* Fix formatting based on StyleCop

* Change output type of start cmdlet (Azure#12)

* Flush-AzHpcCache cmdlet (Azure#11)

Add FlushAzHpcCache.cs and Flush-AzHpcCache.md
Update Resources files.
Update AzHpcCache.md to include flush markdown file.
Update psd1 file to include new command.

* Add support for stop HPC cache cmdlet. (Azure#13)

* Add support for stop HPC cache cmdlet.

* Fix typos

* Cmdlet: Remove Storage Target

* Cmdlet: Upgrade-AzHpcCache

* Add AsJob parameter option for action commands (Azure#14)

* UpgradeCache and RemoveStorageTarget edits

* Add support for storage target create. (Azure#17)

* Add PS wrapper classes required for storage targets.

* Add help for create storage target.

* Add new storage target cmdlet.

* Update resource designer for storage target.

* Get-AzHpcCacheStorageTarget cmdlet

* Fix help.md files to have correct messages

* PSHpcCache (Azure#16)

* Update how cache is returned

* Update what is sent into PSHpcCache.cs

* Add enumberate Collection

* Update help text and comments (Azure#19)

* Adds support for Set-AzHpcStorageTarget. (Azure#20)

* Add support for storage target update.

* Add help for Set-AzHpcStorageTarget.

* Add hook for update storage target in PSD file.

* Fix typos in help and comments.

* Change UpdateHpcCache to SetHpcCache. (Azure#21)

* Fix UpdateHpcCache to SetHpcCache

* update help

* Use Patch for Update, not Post - createOrUpdate

* Change getST cmdlet to also get individual ST

* Update test framework to use custom context and fixtures. (Azure#24)

* Modify HpcCacheController to use RMTestBase base class and use HpcCacheTestContext.

* Update test class to use HpcCacheCollection and HpcCacheTestFixture.

* Update PS file to test Get-AzHpcCache by resource group and name.

* Add HpcCacheTestContext.

* Add HpcCacheCollection.

* Add HpcCacheTestFixture.

* Add cache helper.

* Add constants.

* Add support to handle ENV vars from constants.

* Add utilities required for fixture and custom context.

* Adds storage account and storage target fixture. (Azure#25)

* Add CLFS storage target and get storage target support.

* Add StorageTargetName constant.

* Add StorageTargetName ENV var.

* Add Retry method and Aggregate exception handler.

* Add storage account fixture.

* Add storage account helper.

* Add example storage target cmdlet test.

* Update help text in SetAzHpcStorageTarget.cs (Azure#26)

Update help text for cmdlet SetAzHpcCacheStorageTarget.

* Fix help.md files and help messages

* Fix for storage target update cmdlet. (Azure#28)

* Add Cache, StorageTarget, and Operations tests

* If incorrect value is entered, return inner exception body message

* For Get and Remove - return inner exception body message

* Fix formatting / Fix Descriptions / Fix Typos  (Azure#32)

* Fix formatting using stylecon

* Flush cmdlet updates

* Get-AzHpcCache cmdlet updates

* Get-AzHpcCacheSku cmdlet updates

* Get-AzHpcCacheStorageTarget cmdlet updates

* Get-AzHpcCacheUsageModels cmdlet updates

* New-AzHpcCache cmdlet updates

* Remove-AzHpcCache cmdlet updates

* Remove-AzHpcCacheStorageCache cmdlet updates

* Set-AzHpcCache cmdlet updates

* Start-AzHpcCache cmdlet updates

* Stop-AzHpcCache cmdlet updates

* Upgrade-AzHpcCache cmdlet updates

* New-AzHpcCacheStorageTarget and Set-AzHpcCacheStorageTarget cmdlet updates

* Fix mockContext for fixtures. (Azure#34)

* Add required packages to test project.

* Add assembly info for test project.

* Fix references for resource manager.

* Remove constructor overloading & fix mockContext, also fix references for resource manager

* Dispose the context in StorageAccountFixture and fix the mockContext.

* Add storage account name constant (Azure#35)

* Add StorageAccountName constant.

* Fix Context calling

* Add recorded tests (Azure#33)

* Add recorded tests

* Rename folder

* Revert "Add storage account name constant (Azure#35)" (Azure#36)

This reverts commit 2ac58a8.

* Revert "Fix mockContext for fixtures. (Azure#34)" (Azure#37)

This reverts commit 768ba77.

* Fix Context (Azure#38)

* Add assebly for tests project. (Azure#39)

* Remove completed TODO check. (Azure#40)

* Add fake help urls to make CI task pass (Azure#41)

* Remove completed TODO check.

* Add fake online documentation URL to make CI task pass.

* Update help files to fix fake URLS. it does not like fake servie & cmdlet name. (Azure#42)

* Fix CI task related issues (Azure#43)

* Remove unused imports

* Fix package references

* Update session records to use correct API versions.

* Package Changes / Resource Name Completer / Change Log and Solution (Azure#44)

* Update ChangeLog

* move packages to test

* Fix solution file, add ResourceGroupCompleter to cmdlets

* move all packages

* Update changelog to preview

* Add inputobj and resourceId params to Start/Stop/Flush/Upgrade. Update CacheName to name (Azure#45)

* Update Flush cmdlet to have InputObj and ResourceId, Update cacheName to Name, update test

* fix flush comments

* Fix StartAzHpcCache to include input obj and resourceId

* Fix StopAzHpcCache to include input obj and resourceId

* Fix UpgradeAzHpcCache to include input obj and resourceId

* test changes

* fix help message for cmdlets

* Add Alias and resource name completer for get cache & get storage target. (Azure#46)

* Add CacheName as an alias & use ResourceNameCompleter.

* Add StorageTargetName as an alias and use ResourceNameCompleter.

* Alias initialization

* Get storage target support pipeline cache input.

* New and Set cmdlets (Azure#47)

* update tests

* update NewAzHpcCache to have should process

* update Set cmdlet to use obj/resource Id and shouldProcess

* remove resourceId from Set

* update resouce designer

* Update help files (Azure#48)

* Fix reference

* Update help files

* Use CheckIn type for tests. (Azure#49)

* Add CacheName and StorageTargetName alias. (Azure#50)

* Update Alias in help

* Add CacheName alias and help text for parameters.

* Add StorageTargetName alias.

* Formatting changes.

* Add description to psd

* Remove whitespaces.

* rename files for linux (Azure#51)

* Add shouldProcess to required cmdlets and update junction parameter. (Azure#52)

* Add shouldProcess parameter

* Modify tests to honor force parameter

* Update help text

* Update usage model cmdlet name.

* Update help for all cmdlets to include whatIf

Co-authored-by: Rebecca Makar <rebeccalmakar@gmail.com>
Co-authored-by: Rebecca Makar <remakar@microsoft.com>
romahamu added a commit to romahamu/azure-powershell that referenced this pull request May 4, 2020
romahamu added a commit to romahamu/azure-powershell that referenced this pull request May 4, 2020
…zure#527)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets. (Azure#1)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets.

* Adding empty folder layout.

* Update project reference for Test project of HPC Cache (Azure#2)

* Initial commit of clients / first mock cmdlet (Azure#3)

* Initial commit of clients / first mock cmdlet

* Initial commit of clients / first mock cmdlet

* Rename Client, Remove unnecessary files, return skulist in azure cmdlet

* Remove utilities

* Add classes to wrap .NET SDK type object. (Azure#4)

* Create wrapper for SDK management client (Azure#5)

* Fix GetAzSku wrt client changes.

* Restructure base cmdlet and mangement client class.

* Test Framework, Additional Cmdlets, Sku Object, Formatting Fixes (Azure#6)

* More commands and start of test framework

Move all logic out of hpc cache client to the commandlets

More commands and start of test framework

Updated commands using new client

fix rebase

fix spacing

fix comments

remove vars

* Test Framework working, add comments to code

* Help text files

* Updates to cmdlet New-AzHpcCache

* Update cmdlet Get-AzHpcCache

* Update cmdlet Get-AzHpcCacheUsageModels

* Update cmdlet Get-AzHpcCacheSku

* Update cmdlet Remove-AzHpcCache

* Cmdlet Update-AzHpcCache and help file

* Changes made for code review

* Start-AzHpcCache Cmdlet (Azure#8)

* Add support for Start-AzHpcCache.

* Adds resource designer for the project.

* Adds assembly info for the project.

* Remove unused imports

* Remove .keep files as they are no longer required.

* Use resource designer to handle strings in remove hpc cache cmdlet.

* Fix namespace and add project reference to test project.

* Prefix with this for local references for better code readability.

* Fix argument validation.

* Add synopsis for start hpc cache cmdlet help file.

* Update Sku Test

* Fix formatting based on StyleCop

* Change output type of start cmdlet (Azure#12)

* Flush-AzHpcCache cmdlet (Azure#11)

Add FlushAzHpcCache.cs and Flush-AzHpcCache.md
Update Resources files.
Update AzHpcCache.md to include flush markdown file.
Update psd1 file to include new command.

* Add support for stop HPC cache cmdlet. (Azure#13)

* Add support for stop HPC cache cmdlet.

* Fix typos

* Cmdlet: Remove Storage Target

* Cmdlet: Upgrade-AzHpcCache

* Add AsJob parameter option for action commands (Azure#14)

* UpgradeCache and RemoveStorageTarget edits

* Add support for storage target create. (Azure#17)

* Add PS wrapper classes required for storage targets.

* Add help for create storage target.

* Add new storage target cmdlet.

* Update resource designer for storage target.

* Get-AzHpcCacheStorageTarget cmdlet

* Fix help.md files to have correct messages

* PSHpcCache (Azure#16)

* Update how cache is returned

* Update what is sent into PSHpcCache.cs

* Add enumberate Collection

* Update help text and comments (Azure#19)

* Adds support for Set-AzHpcStorageTarget. (Azure#20)

* Add support for storage target update.

* Add help for Set-AzHpcStorageTarget.

* Add hook for update storage target in PSD file.

* Fix typos in help and comments.

* Change UpdateHpcCache to SetHpcCache. (Azure#21)

* Fix UpdateHpcCache to SetHpcCache

* update help

* Use Patch for Update, not Post - createOrUpdate

* Change getST cmdlet to also get individual ST

* Update test framework to use custom context and fixtures. (Azure#24)

* Modify HpcCacheController to use RMTestBase base class and use HpcCacheTestContext.

* Update test class to use HpcCacheCollection and HpcCacheTestFixture.

* Update PS file to test Get-AzHpcCache by resource group and name.

* Add HpcCacheTestContext.

* Add HpcCacheCollection.

* Add HpcCacheTestFixture.

* Add cache helper.

* Add constants.

* Add support to handle ENV vars from constants.

* Add utilities required for fixture and custom context.

* Adds storage account and storage target fixture. (Azure#25)

* Add CLFS storage target and get storage target support.

* Add StorageTargetName constant.

* Add StorageTargetName ENV var.

* Add Retry method and Aggregate exception handler.

* Add storage account fixture.

* Add storage account helper.

* Add example storage target cmdlet test.

* Update help text in SetAzHpcStorageTarget.cs (Azure#26)

Update help text for cmdlet SetAzHpcCacheStorageTarget.

* Fix help.md files and help messages

* Fix for storage target update cmdlet. (Azure#28)

* Add Cache, StorageTarget, and Operations tests

* If incorrect value is entered, return inner exception body message

* For Get and Remove - return inner exception body message

* Fix formatting / Fix Descriptions / Fix Typos  (Azure#32)

* Fix formatting using stylecon

* Flush cmdlet updates

* Get-AzHpcCache cmdlet updates

* Get-AzHpcCacheSku cmdlet updates

* Get-AzHpcCacheStorageTarget cmdlet updates

* Get-AzHpcCacheUsageModels cmdlet updates

* New-AzHpcCache cmdlet updates

* Remove-AzHpcCache cmdlet updates

* Remove-AzHpcCacheStorageCache cmdlet updates

* Set-AzHpcCache cmdlet updates

* Start-AzHpcCache cmdlet updates

* Stop-AzHpcCache cmdlet updates

* Upgrade-AzHpcCache cmdlet updates

* New-AzHpcCacheStorageTarget and Set-AzHpcCacheStorageTarget cmdlet updates

* Fix mockContext for fixtures. (Azure#34)

* Add required packages to test project.

* Add assembly info for test project.

* Fix references for resource manager.

* Remove constructor overloading & fix mockContext, also fix references for resource manager

* Dispose the context in StorageAccountFixture and fix the mockContext.

* Add storage account name constant (Azure#35)

* Add StorageAccountName constant.

* Fix Context calling

* Add recorded tests (Azure#33)

* Add recorded tests

* Rename folder

* Revert "Add storage account name constant (Azure#35)" (Azure#36)

This reverts commit 2ac58a8.

* Revert "Fix mockContext for fixtures. (Azure#34)" (Azure#37)

This reverts commit 768ba77.

* Fix Context (Azure#38)

* Add assebly for tests project. (Azure#39)

* Remove completed TODO check. (Azure#40)

* Add fake help urls to make CI task pass (Azure#41)

* Remove completed TODO check.

* Add fake online documentation URL to make CI task pass.

* Update help files to fix fake URLS. it does not like fake servie & cmdlet name. (Azure#42)

* Fix CI task related issues (Azure#43)

* Remove unused imports

* Fix package references

* Update session records to use correct API versions.

* Package Changes / Resource Name Completer / Change Log and Solution (Azure#44)

* Update ChangeLog

* move packages to test

* Fix solution file, add ResourceGroupCompleter to cmdlets

* move all packages

* Update changelog to preview

* Add inputobj and resourceId params to Start/Stop/Flush/Upgrade. Update CacheName to name (Azure#45)

* Update Flush cmdlet to have InputObj and ResourceId, Update cacheName to Name, update test

* fix flush comments

* Fix StartAzHpcCache to include input obj and resourceId

* Fix StopAzHpcCache to include input obj and resourceId

* Fix UpgradeAzHpcCache to include input obj and resourceId

* test changes

* fix help message for cmdlets

* Add Alias and resource name completer for get cache & get storage target. (Azure#46)

* Add CacheName as an alias & use ResourceNameCompleter.

* Add StorageTargetName as an alias and use ResourceNameCompleter.

* Alias initialization

* Get storage target support pipeline cache input.

* New and Set cmdlets (Azure#47)

* update tests

* update NewAzHpcCache to have should process

* update Set cmdlet to use obj/resource Id and shouldProcess

* remove resourceId from Set

* update resouce designer

* Update help files (Azure#48)

* Fix reference

* Update help files

* Use CheckIn type for tests. (Azure#49)

* Add CacheName and StorageTargetName alias. (Azure#50)

* Update Alias in help

* Add CacheName alias and help text for parameters.

* Add StorageTargetName alias.

* Formatting changes.

* Add description to psd

* Remove whitespaces.

* rename files for linux (Azure#51)

* Add shouldProcess to required cmdlets and update junction parameter. (Azure#52)

* Add shouldProcess parameter

* Modify tests to honor force parameter

* Update help text

* Update usage model cmdlet name.

* Update help for all cmdlets to include whatIf

Co-authored-by: Rebecca Makar <rebeccalmakar@gmail.com>
Co-authored-by: Rebecca Makar <remakar@microsoft.com>
romahamu added a commit to romahamu/azure-powershell that referenced this pull request May 4, 2020
…zure#527)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets. (Azure#1)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets.

* Adding empty folder layout.

* Update project reference for Test project of HPC Cache (Azure#2)

* Initial commit of clients / first mock cmdlet (Azure#3)

* Initial commit of clients / first mock cmdlet

* Initial commit of clients / first mock cmdlet

* Rename Client, Remove unnecessary files, return skulist in azure cmdlet

* Remove utilities

* Add classes to wrap .NET SDK type object. (Azure#4)

* Create wrapper for SDK management client (Azure#5)

* Fix GetAzSku wrt client changes.

* Restructure base cmdlet and mangement client class.

* Test Framework, Additional Cmdlets, Sku Object, Formatting Fixes (Azure#6)

* More commands and start of test framework

Move all logic out of hpc cache client to the commandlets

More commands and start of test framework

Updated commands using new client

fix rebase

fix spacing

fix comments

remove vars

* Test Framework working, add comments to code

* Help text files

* Updates to cmdlet New-AzHpcCache

* Update cmdlet Get-AzHpcCache

* Update cmdlet Get-AzHpcCacheUsageModels

* Update cmdlet Get-AzHpcCacheSku

* Update cmdlet Remove-AzHpcCache

* Cmdlet Update-AzHpcCache and help file

* Changes made for code review

* Start-AzHpcCache Cmdlet (Azure#8)

* Add support for Start-AzHpcCache.

* Adds resource designer for the project.

* Adds assembly info for the project.

* Remove unused imports

* Remove .keep files as they are no longer required.

* Use resource designer to handle strings in remove hpc cache cmdlet.

* Fix namespace and add project reference to test project.

* Prefix with this for local references for better code readability.

* Fix argument validation.

* Add synopsis for start hpc cache cmdlet help file.

* Update Sku Test

* Fix formatting based on StyleCop

* Change output type of start cmdlet (Azure#12)

* Flush-AzHpcCache cmdlet (Azure#11)

Add FlushAzHpcCache.cs and Flush-AzHpcCache.md
Update Resources files.
Update AzHpcCache.md to include flush markdown file.
Update psd1 file to include new command.

* Add support for stop HPC cache cmdlet. (Azure#13)

* Add support for stop HPC cache cmdlet.

* Fix typos

* Cmdlet: Remove Storage Target

* Cmdlet: Upgrade-AzHpcCache

* Add AsJob parameter option for action commands (Azure#14)

* UpgradeCache and RemoveStorageTarget edits

* Add support for storage target create. (Azure#17)

* Add PS wrapper classes required for storage targets.

* Add help for create storage target.

* Add new storage target cmdlet.

* Update resource designer for storage target.

* Get-AzHpcCacheStorageTarget cmdlet

* Fix help.md files to have correct messages

* PSHpcCache (Azure#16)

* Update how cache is returned

* Update what is sent into PSHpcCache.cs

* Add enumberate Collection

* Update help text and comments (Azure#19)

* Adds support for Set-AzHpcStorageTarget. (Azure#20)

* Add support for storage target update.

* Add help for Set-AzHpcStorageTarget.

* Add hook for update storage target in PSD file.

* Fix typos in help and comments.

* Change UpdateHpcCache to SetHpcCache. (Azure#21)

* Fix UpdateHpcCache to SetHpcCache

* update help

* Use Patch for Update, not Post - createOrUpdate

* Change getST cmdlet to also get individual ST

* Update test framework to use custom context and fixtures. (Azure#24)

* Modify HpcCacheController to use RMTestBase base class and use HpcCacheTestContext.

* Update test class to use HpcCacheCollection and HpcCacheTestFixture.

* Update PS file to test Get-AzHpcCache by resource group and name.

* Add HpcCacheTestContext.

* Add HpcCacheCollection.

* Add HpcCacheTestFixture.

* Add cache helper.

* Add constants.

* Add support to handle ENV vars from constants.

* Add utilities required for fixture and custom context.

* Adds storage account and storage target fixture. (Azure#25)

* Add CLFS storage target and get storage target support.

* Add StorageTargetName constant.

* Add StorageTargetName ENV var.

* Add Retry method and Aggregate exception handler.

* Add storage account fixture.

* Add storage account helper.

* Add example storage target cmdlet test.

* Update help text in SetAzHpcStorageTarget.cs (Azure#26)

Update help text for cmdlet SetAzHpcCacheStorageTarget.

* Fix help.md files and help messages

* Fix for storage target update cmdlet. (Azure#28)

* Add Cache, StorageTarget, and Operations tests

* If incorrect value is entered, return inner exception body message

* For Get and Remove - return inner exception body message

* Fix formatting / Fix Descriptions / Fix Typos  (Azure#32)

* Fix formatting using stylecon

* Flush cmdlet updates

* Get-AzHpcCache cmdlet updates

* Get-AzHpcCacheSku cmdlet updates

* Get-AzHpcCacheStorageTarget cmdlet updates

* Get-AzHpcCacheUsageModels cmdlet updates

* New-AzHpcCache cmdlet updates

* Remove-AzHpcCache cmdlet updates

* Remove-AzHpcCacheStorageCache cmdlet updates

* Set-AzHpcCache cmdlet updates

* Start-AzHpcCache cmdlet updates

* Stop-AzHpcCache cmdlet updates

* Upgrade-AzHpcCache cmdlet updates

* New-AzHpcCacheStorageTarget and Set-AzHpcCacheStorageTarget cmdlet updates

* Fix mockContext for fixtures. (Azure#34)

* Add required packages to test project.

* Add assembly info for test project.

* Fix references for resource manager.

* Remove constructor overloading & fix mockContext, also fix references for resource manager

* Dispose the context in StorageAccountFixture and fix the mockContext.

* Add storage account name constant (Azure#35)

* Add StorageAccountName constant.

* Fix Context calling

* Add recorded tests (Azure#33)

* Add recorded tests

* Rename folder

* Revert "Add storage account name constant (Azure#35)" (Azure#36)

This reverts commit 2ac58a8.

* Revert "Fix mockContext for fixtures. (Azure#34)" (Azure#37)

This reverts commit 768ba77.

* Fix Context (Azure#38)

* Add assebly for tests project. (Azure#39)

* Remove completed TODO check. (Azure#40)

* Add fake help urls to make CI task pass (Azure#41)

* Remove completed TODO check.

* Add fake online documentation URL to make CI task pass.

* Update help files to fix fake URLS. it does not like fake servie & cmdlet name. (Azure#42)

* Fix CI task related issues (Azure#43)

* Remove unused imports

* Fix package references

* Update session records to use correct API versions.

* Package Changes / Resource Name Completer / Change Log and Solution (Azure#44)

* Update ChangeLog

* move packages to test

* Fix solution file, add ResourceGroupCompleter to cmdlets

* move all packages

* Update changelog to preview

* Add inputobj and resourceId params to Start/Stop/Flush/Upgrade. Update CacheName to name (Azure#45)

* Update Flush cmdlet to have InputObj and ResourceId, Update cacheName to Name, update test

* fix flush comments

* Fix StartAzHpcCache to include input obj and resourceId

* Fix StopAzHpcCache to include input obj and resourceId

* Fix UpgradeAzHpcCache to include input obj and resourceId

* test changes

* fix help message for cmdlets

* Add Alias and resource name completer for get cache & get storage target. (Azure#46)

* Add CacheName as an alias & use ResourceNameCompleter.

* Add StorageTargetName as an alias and use ResourceNameCompleter.

* Alias initialization

* Get storage target support pipeline cache input.

* New and Set cmdlets (Azure#47)

* update tests

* update NewAzHpcCache to have should process

* update Set cmdlet to use obj/resource Id and shouldProcess

* remove resourceId from Set

* update resouce designer

* Update help files (Azure#48)

* Fix reference

* Update help files

* Use CheckIn type for tests. (Azure#49)

* Add CacheName and StorageTargetName alias. (Azure#50)

* Update Alias in help

* Add CacheName alias and help text for parameters.

* Add StorageTargetName alias.

* Formatting changes.

* Add description to psd

* Remove whitespaces.

* rename files for linux (Azure#51)

* Add shouldProcess to required cmdlets and update junction parameter. (Azure#52)

* Add shouldProcess parameter

* Modify tests to honor force parameter

* Update help text

* Update usage model cmdlet name.

* Update help for all cmdlets to include whatIf

Co-authored-by: Rebecca Makar <rebeccalmakar@gmail.com>
Co-authored-by: Rebecca Makar <remakar@microsoft.com>
isra-fel pushed a commit that referenced this pull request May 7, 2020
…01 (#11790)

* [HPC-Cache] On-boarding of PowerShell Cmdlets for HPC Cache service. (#527)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets. (#1)

* Add initial structure for AZ HPC Cache PowerShell Cmdlets.

* Adding empty folder layout.

* Update project reference for Test project of HPC Cache (#2)

* Initial commit of clients / first mock cmdlet (#3)

* Initial commit of clients / first mock cmdlet

* Initial commit of clients / first mock cmdlet

* Rename Client, Remove unnecessary files, return skulist in azure cmdlet

* Remove utilities

* Add classes to wrap .NET SDK type object. (#4)

* Create wrapper for SDK management client (#5)

* Fix GetAzSku wrt client changes.

* Restructure base cmdlet and mangement client class.

* Test Framework, Additional Cmdlets, Sku Object, Formatting Fixes (#6)

* More commands and start of test framework

Move all logic out of hpc cache client to the commandlets

More commands and start of test framework

Updated commands using new client

fix rebase

fix spacing

fix comments

remove vars

* Test Framework working, add comments to code

* Help text files

* Updates to cmdlet New-AzHpcCache

* Update cmdlet Get-AzHpcCache

* Update cmdlet Get-AzHpcCacheUsageModels

* Update cmdlet Get-AzHpcCacheSku

* Update cmdlet Remove-AzHpcCache

* Cmdlet Update-AzHpcCache and help file

* Changes made for code review

* Start-AzHpcCache Cmdlet (#8)

* Add support for Start-AzHpcCache.

* Adds resource designer for the project.

* Adds assembly info for the project.

* Remove unused imports

* Remove .keep files as they are no longer required.

* Use resource designer to handle strings in remove hpc cache cmdlet.

* Fix namespace and add project reference to test project.

* Prefix with this for local references for better code readability.

* Fix argument validation.

* Add synopsis for start hpc cache cmdlet help file.

* Update Sku Test

* Fix formatting based on StyleCop

* Change output type of start cmdlet (#12)

* Flush-AzHpcCache cmdlet (#11)

Add FlushAzHpcCache.cs and Flush-AzHpcCache.md
Update Resources files.
Update AzHpcCache.md to include flush markdown file.
Update psd1 file to include new command.

* Add support for stop HPC cache cmdlet. (#13)

* Add support for stop HPC cache cmdlet.

* Fix typos

* Cmdlet: Remove Storage Target

* Cmdlet: Upgrade-AzHpcCache

* Add AsJob parameter option for action commands (#14)

* UpgradeCache and RemoveStorageTarget edits

* Add support for storage target create. (#17)

* Add PS wrapper classes required for storage targets.

* Add help for create storage target.

* Add new storage target cmdlet.

* Update resource designer for storage target.

* Get-AzHpcCacheStorageTarget cmdlet

* Fix help.md files to have correct messages

* PSHpcCache (#16)

* Update how cache is returned

* Update what is sent into PSHpcCache.cs

* Add enumberate Collection

* Update help text and comments (#19)

* Adds support for Set-AzHpcStorageTarget. (#20)

* Add support for storage target update.

* Add help for Set-AzHpcStorageTarget.

* Add hook for update storage target in PSD file.

* Fix typos in help and comments.

* Change UpdateHpcCache to SetHpcCache. (#21)

* Fix UpdateHpcCache to SetHpcCache

* update help

* Use Patch for Update, not Post - createOrUpdate

* Change getST cmdlet to also get individual ST

* Update test framework to use custom context and fixtures. (#24)

* Modify HpcCacheController to use RMTestBase base class and use HpcCacheTestContext.

* Update test class to use HpcCacheCollection and HpcCacheTestFixture.

* Update PS file to test Get-AzHpcCache by resource group and name.

* Add HpcCacheTestContext.

* Add HpcCacheCollection.

* Add HpcCacheTestFixture.

* Add cache helper.

* Add constants.

* Add support to handle ENV vars from constants.

* Add utilities required for fixture and custom context.

* Adds storage account and storage target fixture. (#25)

* Add CLFS storage target and get storage target support.

* Add StorageTargetName constant.

* Add StorageTargetName ENV var.

* Add Retry method and Aggregate exception handler.

* Add storage account fixture.

* Add storage account helper.

* Add example storage target cmdlet test.

* Update help text in SetAzHpcStorageTarget.cs (#26)

Update help text for cmdlet SetAzHpcCacheStorageTarget.

* Fix help.md files and help messages

* Fix for storage target update cmdlet. (#28)

* Add Cache, StorageTarget, and Operations tests

* If incorrect value is entered, return inner exception body message

* For Get and Remove - return inner exception body message

* Fix formatting / Fix Descriptions / Fix Typos  (#32)

* Fix formatting using stylecon

* Flush cmdlet updates

* Get-AzHpcCache cmdlet updates

* Get-AzHpcCacheSku cmdlet updates

* Get-AzHpcCacheStorageTarget cmdlet updates

* Get-AzHpcCacheUsageModels cmdlet updates

* New-AzHpcCache cmdlet updates

* Remove-AzHpcCache cmdlet updates

* Remove-AzHpcCacheStorageCache cmdlet updates

* Set-AzHpcCache cmdlet updates

* Start-AzHpcCache cmdlet updates

* Stop-AzHpcCache cmdlet updates

* Upgrade-AzHpcCache cmdlet updates

* New-AzHpcCacheStorageTarget and Set-AzHpcCacheStorageTarget cmdlet updates

* Fix mockContext for fixtures. (#34)

* Add required packages to test project.

* Add assembly info for test project.

* Fix references for resource manager.

* Remove constructor overloading & fix mockContext, also fix references for resource manager

* Dispose the context in StorageAccountFixture and fix the mockContext.

* Add storage account name constant (#35)

* Add StorageAccountName constant.

* Fix Context calling

* Add recorded tests (#33)

* Add recorded tests

* Rename folder

* Revert "Add storage account name constant (#35)" (#36)

This reverts commit 2ac58a8.

* Revert "Fix mockContext for fixtures. (#34)" (#37)

This reverts commit 768ba77.

* Fix Context (#38)

* Add assebly for tests project. (#39)

* Remove completed TODO check. (#40)

* Add fake help urls to make CI task pass (#41)

* Remove completed TODO check.

* Add fake online documentation URL to make CI task pass.

* Update help files to fix fake URLS. it does not like fake servie & cmdlet name. (#42)

* Fix CI task related issues (#43)

* Remove unused imports

* Fix package references

* Update session records to use correct API versions.

* Package Changes / Resource Name Completer / Change Log and Solution (#44)

* Update ChangeLog

* move packages to test

* Fix solution file, add ResourceGroupCompleter to cmdlets

* move all packages

* Update changelog to preview

* Add inputobj and resourceId params to Start/Stop/Flush/Upgrade. Update CacheName to name (#45)

* Update Flush cmdlet to have InputObj and ResourceId, Update cacheName to Name, update test

* fix flush comments

* Fix StartAzHpcCache to include input obj and resourceId

* Fix StopAzHpcCache to include input obj and resourceId

* Fix UpgradeAzHpcCache to include input obj and resourceId

* test changes

* fix help message for cmdlets

* Add Alias and resource name completer for get cache & get storage target. (#46)

* Add CacheName as an alias & use ResourceNameCompleter.

* Add StorageTargetName as an alias and use ResourceNameCompleter.

* Alias initialization

* Get storage target support pipeline cache input.

* New and Set cmdlets (#47)

* update tests

* update NewAzHpcCache to have should process

* update Set cmdlet to use obj/resource Id and shouldProcess

* remove resourceId from Set

* update resouce designer

* Update help files (#48)

* Fix reference

* Update help files

* Use CheckIn type for tests. (#49)

* Add CacheName and StorageTargetName alias. (#50)

* Update Alias in help

* Add CacheName alias and help text for parameters.

* Add StorageTargetName alias.

* Formatting changes.

* Add description to psd

* Remove whitespaces.

* rename files for linux (#51)

* Add shouldProcess to required cmdlets and update junction parameter. (#52)

* Add shouldProcess parameter

* Modify tests to honor force parameter

* Update help text

* Update usage model cmdlet name.

* Update help for all cmdlets to include whatIf

Co-authored-by: Rebecca Makar <rebeccalmakar@gmail.com>
Co-authored-by: Rebecca Makar <remakar@microsoft.com>

* Change StorageCache folder name to HPCCache and modify Upgrade cache cmdlet … (#539)

* Change StorageCache folder name to HPCCache and modify Upgrade cache cmdlet.

* Update Az.HPCCache.psd1

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

* Release-2020-04-28-HPCCache

* Add mapping rule for HPCCache

* Remove Flush-AzHpcCache as Flush is not approved PS verb.

* Add default parameter set for storage target cmdlets and output type for get usage model cmdlet.

* Use parameter sets for Update-AzHpcCache

* Remove prerelease string from .psd file.

Co-authored-by: Rebecca Makar <rebeccalmakar@gmail.com>
Co-authored-by: Rebecca Makar <remakar@microsoft.com>
Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
Co-authored-by: msJinLei <lei.jin@microsoft.com>
wyunchi-ms added a commit that referenced this pull request Dec 10, 2020
* [Storage] Upgrade Azure.Storage.Queues to 12.5.0

* Fix the issue that StaticAnalysis fails to check dependence on .Net framework. (#12)

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

Co-authored-by: Yunchi Wang <54880216+wyunchi-ms@users.noreply.github.com>
Co-authored-by: wyunchi-ms <yunwang@microsoft.com>
isra-fel added a commit that referenced this pull request Jan 12, 2021
* release Az.Accounts 2.2.1 (#13537)

* Update New-AzFrontDoorWafManagedRuleObject.md (#13528)

* Merge internal/Az.Tools.Predictor (#13546)

* psd1 & psm1 of Az.Installer with a demo cmdlet (#12698)

* Internal/az.installer (#12817)

* add util functions

* add install-azmodule

* add log to cmdlets

* move verbose messages to debug

* move under tools\

* polish warning message

* move install-azmodule to exports

* export install-azmodule

* rename to az.tools.installer

* Internal/az.installer (#12860)

* add util functions

* add install-azmodule

* add log to cmdlets

* move verbose messages to debug

* move under tools\

* polish warning message

* move install-azmodule to exports

* export install-azmodule

* rename to az.tools.installer

* add uninstall-AzModule

* Cmdlet Update-AzModule (#12832)

* Update-AzModule

* Address to PM requirements

1. Remove prefix Az. when input module name
2. update calculate from most recently installed respositories of
different modules
3. reorder the sequence of module udpate and uninstall
4. other bug fix

* Add telemetry

* Support telemetry

* Move Get-AzModuleUpdateList to internal (#12865)

* add telemetry to Uninstall-AzModule cmdlet

* bugfix: module name was not handled properly

* Add environment variable to disable telemetry

* parallel executing Install/Uninstall module

* update code after review

* improve performance

* Fix Update-AzModule issues

* bug fix

* remove unused util

* remove az.accounts when allow preview

* Fix issue when no module to udpate

* Add sign pipeline

* skip confirmation when remove-job

* remove debug info

* fix parameter reference

* Initial checking in AzPredictor (#12847)

- It contains an implementation of ICommandPredictor that provides
  predictions to PSReadLine.
- It also talks to the service endpoints to get the predictions.
- It reads from the profile settings about the service endpoint.
- There are some tests cases.

* filter installedmodules before uninstall

* bugfix for uninstall

* Add synopsis and example to exported cmdlets

* add default parameter set for uninstall-azmodule

* add input validatin

* remove unnecessary warning message

* Build and package module under artifacts folder

* Improve Az.Tool.Predictor (#12922)

* Set up the dependencies on the PSReadline 2.1.0

* Initialize the env when the module is imported.

- Add a script AzPredictor.ps1 to set the psreadline prediction view and
  source.
- The script is run when the module is imported.

* Fix a bug when loading settings from user profile.

- The settings from user profile may not exist. In this case we should
  just ignore it and use the default one.

* Fix issues in getting settings and send requests.

- Fix the way to get the Azure PowerShell settings regarding collecting
  telemetry.
- Avoid sending multiple requests while there is one running.

* Use the NuGet pacakges from nuget.org.

- Remove the local feed for those NuGet packages.

* Rename namespace/assemblies/module name

* Collect telemetry where we get the prediction.

* Make some classes internal.

* Add dependencies on Az module

- This avoid the issue that our module loads
  Microsoft.Azure.PowerShell.Common dlls and Az tries to load it too.

* Remove ps1 file that sets psreadline options.

- We should instruct the users to set the options by themselves.

* Remove psreadline module since it's not released.

* Fix the merge issue

* Add Az as external dependency

* Add pipeline 'sign-tool-predictor'

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* net.webclient.downloadfile

* refine command

* clean build

* Update sign-tool-predictor.yml for Azure Pipelines

* Improve the build of Az.Tools.Predictor (#12974)

* Change the build for Az.Tools.Predictor

 - Do a 'dotnet publish' instead of 'dotnet build' when the
   configuration is release.
- When the configuration is release, replace the output folder with the
  ones from publish folder. The output folder is where the package
  retrieve the contents from. This will have the module and all the
  dependencies in the package.
- The package target only runs when the configuration is release.
- Add a target Test to run the unit tests.
- Update the build command in azure pipeline to build with configuration
  release.

* Specify the sub-folder artifact for each tool.

- The build process involves deleting the artifact folders. And each
  tool shares the same artifact folder. This may be an issue if we build
  them in parralel because the build process of a tool will delete the
  folder while another tool is being built.
- We'll use sub-folder for each tool in the artifact folder.

Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Override powershellcorecommandPrefix

* join_path

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Install Az

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Sign dll

* Remove dll sign

* Predict parameter values in the suggestion (#12984)

* Get the parameter value from the history.

* Add a mock ps console for testing purpose.

- The mock ps console will echo back most of the commands. So that we
  don't need to really execute the Az command on Azure to test the
  prediction.

* improve telemetry (#13025)

* Correlate the telemetry event we send.

- We have these telemetry entry points when we provide suggestion, when
  a suggestion is accepted, and when the user executes some command. We
  add a SuggestionId to the telemetry events so that we can correlate
  those three events. Doing that we know what suggestions are provided,
  accepted, and executed.

* Collect and correlate our telemetry event.

- With this change, we have these telemetry events;
  * RequestPrediction
  * GetSuggestion
  * AcceptSuggestion
  * CommandHistory
- The events can be correlated by the session id and correlate id that
  are associate with the events.

* Fix the request body.

* Rename the prediction source.

* Collect telemetry when an error occurs.

* Remove some PII field

* Collect user input in GetSuggestion event.

* Use a common telemetry event prefix.

* Remove the .gitignore that shouldn't be added.

* Clean up the code.

* return multiple suggestion (#13098)

* Return multiple suggestions.

- Add a setting to configure at most how many suggestions to return.
- We'll go through the command/parameters one by one and to construct
  the suggestion. We may return multiple suggestions for the same
  command but with different parameter sets;

* Use camel casing in the setting fields.

- Looks like other json file in $HOME/.azure use camel case or
  PascalCase. None use snake case.

* Fix a logic error.

- We'll use the command list for suggestion while the prediction list
  isn't available.

* Stop finding suggestion when the count is met.

* Improve the MockPSConsole.

* Cache the last two commands from the history.

* Reduce the dependencies on Azure powershell common. (#13113)

- That assembly and its dependencies causes a conflict if we load this module
  and Az.Accounts module. Though we can work around by sepcifying Az as a
  dependencies on this module, that'll cause long loading time.
- The reason of loading that assembly is to get the setting about Azure
  PowerShell data collection. We can copy part of the code to load that
  file, so that we don't need that assembly as the dependency.

* Add a missing file. (#13234)

* Fix duplicate text (#13326)

* Improve the debugging experience.

- GetSuggestion gets cancelled during debugging because it times out. So
  we use an environment variable to control whether to allow
cancellation from psreadline.
- Use another macro to control if print message for telemetry.

* Fix a bug that the command line is repeated in the suggestion.

- When we parse the command line and there is an incomplete parameter
  list, we repeat the command line in the suggestion.
- The cause is that we parse the command line and get the wrong
  parameter set from the user input

* Update how we send request and collect telemetry (#13327)

* Fix the query

* Reduce the number of requests to the service.

- We request the prediction for the command history. When the command
  history isn't changed, we don't need to request the prediction again.

* Not to collect the parameter value in the telemetry.

* Bug fixes and performance improvement (#13410)

* Reduce extra cost to the perf issue.

* Remove the aggregation on the parameter set.

* Fix an issue

* Fix some comments.

* Improve the telemetry and http request (#13354)

* Collect user id and mac address.

- We hash the user account id and the mac address, and collect those in
  the telemetry. These are used to find how many users are using this
  mdoule.
- We also send the hashed user account id in the http request header.
  This is used to enable throttling by user account.

* Rename

* Collect more data for diagnostic purpose.

* Fix typo

* Remove getting Az modules versions.

* Update module infomation (#13328)

* Set the description and dependencies for the module.

* Update the project file and module manifest.

* Update manifest and csproj

* Fix typo

* Move PSReadLine to ExternalModuleDependencies.

- PSReadLine is in beta and there are issues in setting RequiredModules
  with a beta one. So move it as an ExternalModuleDependencies.

* Update package script to support requiredmodule (#13424)

* Add variety to Az.Predictor result list (#13420)

* add variety to predictions list

* add variety to predictions list

* Update description for release

* Add PublishLocation to build.proj of Az.Tools.Installer

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: msJinLei <leijin@microsoft.com>
Co-authored-by: msJinLei <lei.jin@microsoft.com>
Co-authored-by: kceiw <mahuang@microsoft.com>
Co-authored-by: Beisi Zhou <zazbs@qq.com>
Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>
Co-authored-by: yemohyle <73853907+yemohyle@users.noreply.github.com>

* [Pipeline] dailyBuild: bump version and sign (#13439)

* [dailybuild] bump version and sign

* Polish codes

* cancel commit intermediate result to 'internal/dailybuild'

Co-authored-by: azuresdkci <azuresdkci@microsoft.com>

* Add Variety to Az.Predictor (#13480)

* psd1 & psm1 of Az.Installer with a demo cmdlet (#12698)

* Internal/az.installer (#12817)

* add util functions

* add install-azmodule

* add log to cmdlets

* move verbose messages to debug

* move under tools\

* polish warning message

* move install-azmodule to exports

* export install-azmodule

* rename to az.tools.installer

* Internal/az.installer (#12860)

* add util functions

* add install-azmodule

* add log to cmdlets

* move verbose messages to debug

* move under tools\

* polish warning message

* move install-azmodule to exports

* export install-azmodule

* rename to az.tools.installer

* add uninstall-AzModule

* Cmdlet Update-AzModule (#12832)

* Update-AzModule

* Address to PM requirements

1. Remove prefix Az. when input module name
2. update calculate from most recently installed respositories of
different modules
3. reorder the sequence of module udpate and uninstall
4. other bug fix

* Add telemetry

* Support telemetry

* Move Get-AzModuleUpdateList to internal (#12865)

* add telemetry to Uninstall-AzModule cmdlet

* bugfix: module name was not handled properly

* Add environment variable to disable telemetry

* parallel executing Install/Uninstall module

* update code after review

* improve performance

* Fix Update-AzModule issues

* bug fix

* remove unused util

* remove az.accounts when allow preview

* Fix issue when no module to udpate

* Add sign pipeline

* skip confirmation when remove-job

* remove debug info

* fix parameter reference

* Initial checking in AzPredictor (#12847)

- It contains an implementation of ICommandPredictor that provides
  predictions to PSReadLine.
- It also talks to the service endpoints to get the predictions.
- It reads from the profile settings about the service endpoint.
- There are some tests cases.

* filter installedmodules before uninstall

* bugfix for uninstall

* Add synopsis and example to exported cmdlets

* add default parameter set for uninstall-azmodule

* add input validatin

* remove unnecessary warning message

* Build and package module under artifacts folder

* Improve Az.Tool.Predictor (#12922)

* Set up the dependencies on the PSReadline 2.1.0

* Initialize the env when the module is imported.

- Add a script AzPredictor.ps1 to set the psreadline prediction view and
  source.
- The script is run when the module is imported.

* Fix a bug when loading settings from user profile.

- The settings from user profile may not exist. In this case we should
  just ignore it and use the default one.

* Fix issues in getting settings and send requests.

- Fix the way to get the Azure PowerShell settings regarding collecting
  telemetry.
- Avoid sending multiple requests while there is one running.

* Use the NuGet pacakges from nuget.org.

- Remove the local feed for those NuGet packages.

* Rename namespace/assemblies/module name

* Collect telemetry where we get the prediction.

* Make some classes internal.

* Add dependencies on Az module

- This avoid the issue that our module loads
  Microsoft.Azure.PowerShell.Common dlls and Az tries to load it too.

* Remove ps1 file that sets psreadline options.

- We should instruct the users to set the options by themselves.

* Remove psreadline module since it's not released.

* Fix the merge issue

* Add Az as external dependency

* Add pipeline 'sign-tool-predictor'

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* net.webclient.downloadfile

* refine command

* clean build

* Update sign-tool-predictor.yml for Azure Pipelines

* Improve the build of Az.Tools.Predictor (#12974)

* Change the build for Az.Tools.Predictor

 - Do a 'dotnet publish' instead of 'dotnet build' when the
   configuration is release.
- When the configuration is release, replace the output folder with the
  ones from publish folder. The output folder is where the package
  retrieve the contents from. This will have the module and all the
  dependencies in the package.
- The package target only runs when the configuration is release.
- Add a target Test to run the unit tests.
- Update the build command in azure pipeline to build with configuration
  release.

* Specify the sub-folder artifact for each tool.

- The build process involves deleting the artifact folders. And each
  tool shares the same artifact folder. This may be an issue if we build
  them in parralel because the build process of a tool will delete the
  folder while another tool is being built.
- We'll use sub-folder for each tool in the artifact folder.

Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Override powershellcorecommandPrefix

* join_path

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Install Az

* Update sign-tool-predictor.yml for Azure Pipelines

* Update sign-tool-predictor.yml for Azure Pipelines

* Sign dll

* Remove dll sign

* Predict parameter values in the suggestion (#12984)

* Get the parameter value from the history.

* Add a mock ps console for testing purpose.

- The mock ps console will echo back most of the commands. So that we
  don't need to really execute the Az command on Azure to test the
  prediction.

* improve telemetry (#13025)

* Correlate the telemetry event we send.

- We have these telemetry entry points when we provide suggestion, when
  a suggestion is accepted, and when the user executes some command. We
  add a SuggestionId to the telemetry events so that we can correlate
  those three events. Doing that we know what suggestions are provided,
  accepted, and executed.

* Collect and correlate our telemetry event.

- With this change, we have these telemetry events;
  * RequestPrediction
  * GetSuggestion
  * AcceptSuggestion
  * CommandHistory
- The events can be correlated by the session id and correlate id that
  are associate with the events.

* Fix the request body.

* Rename the prediction source.

* Collect telemetry when an error occurs.

* Remove some PII field

* Collect user input in GetSuggestion event.

* Use a common telemetry event prefix.

* Remove the .gitignore that shouldn't be added.

* Clean up the code.

* return multiple suggestion (#13098)

* Return multiple suggestions.

- Add a setting to configure at most how many suggestions to return.
- We'll go through the command/parameters one by one and to construct
  the suggestion. We may return multiple suggestions for the same
  command but with different parameter sets;

* Use camel casing in the setting fields.

- Looks like other json file in $HOME/.azure use camel case or
  PascalCase. None use snake case.

* Fix a logic error.

- We'll use the command list for suggestion while the prediction list
  isn't available.

* Stop finding suggestion when the count is met.

* Improve the MockPSConsole.

* Cache the last two commands from the history.

* Reduce the dependencies on Azure powershell common. (#13113)

- That assembly and its dependencies causes a conflict if we load this module
  and Az.Accounts module. Though we can work around by sepcifying Az as a
  dependencies on this module, that'll cause long loading time.
- The reason of loading that assembly is to get the setting about Azure
  PowerShell data collection. We can copy part of the code to load that
  file, so that we don't need that assembly as the dependency.

* Add a missing file. (#13234)

* Fix duplicate text (#13326)

* Improve the debugging experience.

- GetSuggestion gets cancelled during debugging because it times out. So
  we use an environment variable to control whether to allow
cancellation from psreadline.
- Use another macro to control if print message for telemetry.

* Fix a bug that the command line is repeated in the suggestion.

- When we parse the command line and there is an incomplete parameter
  list, we repeat the command line in the suggestion.
- The cause is that we parse the command line and get the wrong
  parameter set from the user input

* Update how we send request and collect telemetry (#13327)

* Fix the query

* Reduce the number of requests to the service.

- We request the prediction for the command history. When the command
  history isn't changed, we don't need to request the prediction again.

* Not to collect the parameter value in the telemetry.

* add variety to predictions list

* add variety to predictions list

* Bug fixes and performance improvement (#13410)

* Reduce extra cost to the perf issue.

* Remove the aggregation on the parameter set.

* Fix an issue

* Fix some comments.

* Improve the telemetry and http request (#13354)

* Collect user id and mac address.

- We hash the user account id and the mac address, and collect those in
  the telemetry. These are used to find how many users are using this
  mdoule.
- We also send the hashed user account id in the http request header.
  This is used to enable throttling by user account.

* Rename

* Collect more data for diagnostic purpose.

* Fix typo

* Remove getting Az modules versions.

* Fixed issue of duplicate threshold consistency caused by two Query function calls as well as duplicate tolerance when list of novel commands is insufficiently small

* Fixed issue of duplicate threshold consistency caused by two Query function calls as well as duplicate tolerance when list of novel commands is insufficiently small

* remove commented lines, change Dictionary to IDictionary

Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: dingmeng-xue <dixue@microsoft.com>
Co-authored-by: msJinLei <leijin@microsoft.com>
Co-authored-by: msJinLei <lei.jin@microsoft.com>
Co-authored-by: kceiw <mahuang@microsoft.com>
Co-authored-by: Beisi Zhou <zazbs@qq.com>
Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>

* Disable test related to fileproperties (#13547)

* [Storage] Support upload 4TB Azure file (#13495)

* [Storage] Support upload 4TB Azure file

* change Azure.Core version to 1.6 (#10)

* Upgrade System.Buffers to 4.5 (#11)

* change Azure.Core version to 1.6

* Upgrade System.Buffers to 4.5.0

* Add missing assemblity to exception for CI fail

Co-authored-by: erich-wang <erich.wang@outlook.com>

* Healthcare APIs Powershell BYOK Updates (#13518)

* Implementing changes for BYOK healthcareapis

* Fixing build error in healthcareapis set azure method

* Regenerating documentation

* Fixing bugs and updating recording file

* Healthcareapis
* Updating help files
* Updating test recording
* Removing unused code in test script

* Addressing PR comments

* Removing trailing " from help file

* Fixing build errors and updating test record file

* Update ChangeLog.md

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

* {IotHub} Added new examples for hashtable type parameter (#13532)

* Added new examples for hashtable type parameter

* Update ChangeLog.md

* Update changelog.md

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

* Get-AzVm filter by Name prior to checking for throttling (#13437)

* practice

* practice

* practice

* practicing

* more practice

* attempting NextLink

* successful RG iteration

* attempt to list multiple VMs with same name in multiple RGs.

* attempts at using Get

* now attempting moving filtering earlier

* mapping works? paging unsure

* compile errors for list trying to access power state data.

* fewest errors version

* save old changes and new functional

* new functional, existing tests pass

* dev and testing completed

* cleaning and test

* cleanup

* [Az.Resources] change version commparator from double to version (#13559)

* change version commparator from double to version

* Add missing files

* {AppService} Prevent duplicate rules from being created. (#13540)

* Prevent duplicate rules from being created.

* Update ChangeLog

* Secret Management Extension for AKV (#13506)

* secret management

* update changelog.md

* remove -AsHashtable from ConvertFrom-Json to compatible with windows powershell

* try to set subscription to vault subscription

* Vimundad appgwt: Adding Rule Priority for Application Gateway RequestRoutingRule (#13542)

* Adding priority field to AppGw RequestRoutingRules

* Updated changeLog and help md files

* Adding priority field to AppGw RequestRoutingRules

* Updated changeLog and help md files

* Suppressing existing creds in md files

* Recreating help md files

* Suppressing the creds in json files

* Replacing plaintext password with variables

* Removing the plaintext password from the docs

Co-authored-by: Vinay Mundada <vimundad@microsoft.com>

* Update Get-AzKeyVaultCertificate.md - Get cert and save it as pfx section to work with PowerShell Core (#13557)

* Update Get-AzKeyVaultCertificate.md

The existing syntax does not seem to work in PowerShell Core.  Using the proposed syntax works with both PowerShell Desktop and Core.  When Calling the 'import' in this line:
$x509Cert.Import($secretByte, "", "Exportable,PersistKeySet") in PowerShell core, an error is received "Import" with "3" argument(s): "X509Certificate is immutable on this platform. Use the equivalent constructor instead."  
Declaring the cert object like this works fine:
$x509Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($secretByte, "", "Exportable,PersistKeySet")

The recommended change is a combination of the existing MS Documentation and the above which was pulled from: https://gist.github.com/holgerjay/0db1f759f93cba268d671341b787472a

* Remove duplicated line in example

Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>

* [Synapse] Update spark version to 1.0.0-beta.1 (#13565)

* update spark version

* update ChangeLog.md

Co-authored-by: Wan Yang <t-wayang@microsoft.com>

* [DataFactory]Upgrade sdk version to 4.13.0 (#13570)

* New Start-AzVmssRollingExtensionUpgrade cmdlet (#13479)

* start initial setup

* initial file

* begin dev, cmdlet framework

* dev, no compile errors

* completed dev

* completed dev  final

* weird test failure when calling API

* this manual setup test works fine after 50mins runtime

* help doc

* default parameter set

* removing unneeded usings

* cleaning up test

* test cleanup and re-record

* re-recorded test file

* test cleanup

* checkin test

test seems to pass in Playback when resource is deleted, can be run at checkin?

* Revert "test cleanup and re-record"

This reverts commit 8a42a5c95f304966be737a7f154f2920e8387888.

* defaultparameterset string

* recorded test file

* removed incorrectly located test file

* deprecate cluster cert cmdlets, update help (#13581)

Co-authored-by: Alfredo Santamaria Gomez <alsantam@microsoft.com>

* Add byDict parameter set for New-AzSapMonitorProviderInstance and re-record tests (#13563)

* Add byDict parameter set for New-AzSapMonitorProviderInstance and re-record tests

* Remove the incorrect link

* Fixed the help link issue

* Fix the link issue in the proxy file

* revert hana psd1

* [NetAppFiles] Anf 7405 update for api version 2020 07 01 (#13576)

* bump to API version 2020-07-01

* Update link to ANF docs site

* Update ChangeLog.md

Co-authored-by: Audunn Baldvinsson <audunn.baldvinsson@netapp.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* Az.StackHCI v0.4.1 OOB release (#13568)

* version bump up

* Update Az.StackHCI.psd1

* New-AzApiManagementProduct: Change SubscriptionsLimit parameter default value to None (#13457)

* Change SubscriptionsLimit default value to None

* Update changelog

* Fix

* update changelog.md

Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>

* Supported "all" as an option when setting key vault access policies (#13524)

* Supported "all" as an option when setting key vault access policies

* minor fix in docs

* fix test

* Fix Typo for WorkspaceResourceId parameter in example (#13589)

Fix a typo for the WorkspaceResourceId parameter in the PowerShell example.

* [Synapse] Add new cmdlets for Synapse SQL Pool and Synapse Workspace (#13489)

* add support for restore point and sql admin

* add support for audit in sql pool and workspace

* add support for security center in workspace

* add help docs

* add support for transparent data encryption protector

* update help docs

* add -Force for remove cmdlet

* update changelog

* update management client

* fix for design review

* fix for design review

* fix for design review

* fix for CI

* fix for CI security

* delete TDE related cmdlets because of not supported

* fix null exception of storage account access key

* Update ChangeLog.md

* Use the latest SDK

* fix for update threat protection

* switch to official SDK

* Update changelog and Synapse.csproj

* Update ChangeLog.md

Fix ChangeLog.md merging error

* Update ChangeLog.md

Co-authored-by: Wan Yang <t-wayang@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>

* Add database readscale related properties support (#13549)

* rename db property and update tests

* add secondaryType property

* Update help files

* update change log

* Add back ReadReplicaCount

* Add back ReadReplicaCount to the model

* Make ReadReplicaCount an alias

* Add ReadReplicaCount back to model

* Remove-AzSynapseSqlPoolRestorePoint (#13412)

* Remove-AzSynapseSqlPoolRestorePoint

* add wsname sqlpoolname

* refine restorepoint and deleteoperation

* refine restore point and resource id

* add help and test

* refine restorepointcreatationdate

* refine and simpify codes

* refine test

* update session records for testsynapsesqlpool

* Move RemoveAzureSynapseSqlPoolRestorePoint.cs and update changelog entry

* Use local resource id

Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>

* Fix the issue of generating generate-info.json (#13473)

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

* {IotHub} Fix sas-token decoding issue (#13601)

* fix sas-token issue

* Update ChangeLog.md

Polish changelog

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

* Az.Accounts Improvement (#13592)

* 1. Improve warning message when Interactive is unavailable; 2. Update doc for MSI customized endpoint

* Register CommonUtilities if not present

* Parse ExpiresOn time from access token if possible (#13594)

* [Resources] Fix issue preventing deployment of Template Specs located outside of the current subscription context (#13483)

* Template Specs: Fixing issue where template specs from subscriptions not in context could not be deployed

* Adding mock test for covering recent cross-sub template spec deployment bug involving dynamic parameters.

* Template Specs: Fixing issue with test on Unix based systems

* Fix for test failure

* Merge branch 'master' into dixue/Az.Tools.Predictor (#13613)

* fix parameter for get-azcontainerregistryusage and exception for connect-azcontainerregistry (#13608)

* fix bugs in Az.Containerregistry

* Update ChangeLog.md

* [KeyVault] Redesign HSM cmdlets (#13599)

* merge key cmdlets

* rename management cmdlets

* rename rbac cmdlets

* rename backup restore cmdlets

* rename security domain cmdlets

* misc changes

* resource string

* add SAW scenario to keyvault example (#13620)

* Template Specs: Adding tag assignment/viewing support (#13619)

* polish docs (#13615)

* add detail for set-azapplicationinsightspricingplan help markdown (#13628)

* Refactoring code to enable Authentication related tests (#13616)

* Refactoring code to enable Authentication related tests

* update changelog

* fix test

* Resolve object when it is wrapped by PSObject (#13631)

* StorageSync ChangeLog.md (#13635)

* Update ChangeLog.md

* Update ChangeLog.md

Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* refactor diagnostic setting (#13535)

Force merge due to AuthenticationFactoryTests

* refactor diagnostic setting

* Update ChangeLog.md

Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* update new-azautoscaleprofile to accept rule as empty list (#13586)

Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* [WindowsIotServices]First preview release. (#13609)

Time out due to SQL module. Force merge it.

* [WindowsIotServices]First preview release.

* [WindowsIotServices] Updated documentation/azure-powershell-modules.md.

Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* Ignore cmdlet check when it doesn't come from assembly file (#13642)

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

* Fix MSI test case (#13640)

* Polish changelog for upcoming release (#13645)

* Ignore cmdlet check when it doesn't come from assembly file

* Polish changelog for upcoming release

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

* Update Get-AzBillingInvoice.md (#13634)

fixed a copy/paste typo :)

* [CloudService] Init for CloudService (#13638)

* Init for CloudService

* Fix the help issue and credscan issue

* Fix the issue of PoliCheck.

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>
Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* Add release notes for cloud service. (#13650)

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

* Fix scenario test hanging issue (#13644)

* Fix scenario test hanging issue

* Update ChangeLog.md

* First version of MySql flexible server cmdlets (#13622)

* First version of MySql flexible server cmdlets

* Remove plain text password

* [CostManagement] Init for CostManagement (#13646)

* Init for CostManagement

* Init for CostManagement

* Fix the issue of document

* Add release notes for Costmanagement.

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>
Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* Edit New-AzSnapshot so it checks for already existing duplicate resource before creation (#13580)

* dev, test, and changelog work.

* test cleanup

* test synopsis

* testing test failures
NetworkPOlicy test passes when run individually...

* cleaned up tests, fixed failures.

* Updated security alerts tests + added Secure score types tests (#13604)

* * Updated security alerts tests
* Added Seucre Score tests

* fixed help files headers

* Add attributes for deprecating properties

* Import references

* Add new return type for output object

* Change return type in get alerts

* Fix set input type

* Update session records

* Fixed DeviceSecurityGroups tests

* exclude non passing tests

* Re-add missing files

* update external security solutions tests

* Update ChangeLog.md

Polish change log

Co-authored-by: giromm2ms <giromm@microsoft.com>
Co-authored-by: Yifat Birnbaum <yibirnba@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>

* [ServiceFabric] Fix Add-AzServiceFabricNodeType. Add node type Before creating vmss (#13648)

* Add node type before vmss

* fix typo

Co-authored-by: Alfredo Santamaria Gomez <alsantam@microsoft.com>

* release-2020-12-08 (#13661)

* bugfix for remove cmdlet to delete config (#13655)

Co-authored-by: Abhinav Prakash <abprakas@microsoft.com>

* Removed link syntax. (#13658)

* Fix typo (#13629)

* Fixed location completer for NewAutomationUpdateManagementAzureQuery (#13664)

* Update NewAutomationUpdateManagementAzureQuery .cs

* Update ChangeLog.md

* Update ChangeLog.md

* Fix SetAlert Cmdlet - add new parameter to be able to use the new alerts type (#13675)

* Update PSMetricNoDetails.cs (#13676)

I assume the duplication of the word "properties" was a mistake. If it's talking about the properties belonging to a property, then it should be "property's properties".

* Update Set-AzSqlDatabase.md (#13674)

Added an example for Hyperscale and updated the edition for Hyperscale

* removed marketing language, better example filter (#13671)

* Fix swap between title and code in documentation (#13666)

* [Synapse] Add new cmdlets related to SQL security on Synapse SQL pool and workspce (#13641)

* add support for threat detection

* add support for vulnerability assessment

* add support for enable data security

* add support for TDE and data security

* update help docs and test

* update ChangeLog.md

* add suppressions for session record

Co-authored-by: Wan Yang <t-wayang@microsoft.com>

* Fixed spelling mistake (#13677)

Wrapps should be wraps.

* Support "Move-Generation2Master" script for full path input (#13660)

* Support "Move-Generation2Master" script for full path input

* Unified path

* fix missing return object (#13688)

* initial commit (#13680)

* Fix the handling of long-running operation statuses for New-AzManagedApplication and Set-AzManagedApplication (#13679)

* AzureManagedApplications

Fix the handling of long-runing operation statuses for New-AzureManagedApplication and Set-AzureManagedApplication

* Update ChangeLog.md

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

* [Synapse] Fix deserialization issue for creating Pipeline/Dataset/Trigger (#13643)

* fix deserialization error for artifacts

* change return type for artifacts

* solve null reference

* solve null reference

* add internal properties

* fix for CI

Co-authored-by: Wan Yang <t-wayang@microsoft.com>

* [Storage] Support Encryption Scope (#13610)

* Remove extra brackets (#13689)

* Support "Move-Generation2Master" script for full path input

* Unified path

* Remove extra brackets

* Remove extra brackets

* [Synapse] - Support polling for artifacts cmdlets (#13701)

* [Synapse] - Add polling for artifacts operations

* Update changelog

* Clean code

Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>

* [Storage] Upgrade Azure.Storage.Queues to 12.5.0 (#13614)

* [Storage] Upgrade Azure.Storage.Queues to 12.5.0

* Fix the issue that StaticAnalysis fails to check dependence on .Net framework. (#12)

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

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

* Update Set-AzContext.md (#13702)

Example uses old parameter name

* [Tool] Fix some issues in tools and pipeline (#13706)

* Fix the issue that forget to copy the utils from generation to master.

* Fix the issue of GenerateHelp.ps1

* Fix the issue of BinSkim 1.7.1

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

* [Az.PolicyInsights] Returning paginated results from Get-AzPolicyState. (#13712)

* Allowed paginated results to be returned

* Allowed paginated results to be returned.

Returning results more than 1000 is now possible.

* Modified ChangeLog.md

* Removed Subscription ID (#13715)

* selective restore key for a managed hsm backup (#13627)

* Improve long running operation debug log (#13612)

* listen to polling event and print req/res

* try catch to be compatible with old gen modules

* Update ChangeLog.md

* Update Start-AzJitNetworkAccessPolicy.md - Fix the Example to display the proper cmdlet being demonstrated (#13713)

* Update Start-AzJitNetworkAccessPolicy.md

The example for how to use Start-AzJitNetworkAccessPolicy showed how to use Set instead of Start.  This version includes how to use Start instead.

* Update Start-AzJitNetworkAccessPolicy.md

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

* Fixed parameter description for InstanceFailoverGroup command (#13722)

* Update Set-AzSqlDatabaseInstanceFailoverGroup.md

Removed "feature not supported" for -AllowReadOnlyFailoverToPrimary parameter.

* Update New-AzSqlDatabaseInstanceFailoverGroup.md

Fixed description for -AllowReadOnlyFailoverToPrimary as it is supported

* Fixed parameter description for InstanceFailoverGroup command.

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

* Add saved query cmdlets (#13422)

* Draft hybrid version of resource graph

* Fix some issues during the building of hybrid module

* Remove readme.md not needed

* Check in the autogen part of ResourceGraph

* Update change log for resourcegraph

* Skip psm1 in GetModuleMetadata

* Remove etag support for resourcegraph

* Remove unused generated psd1

* Remove modules folder that is not required

* change the suffix to txt

* Fixed some issues found in code review

* Fixed some other issues found in code review

* Update MoveFromGeneration2Master.ps1 (#13728)

Fix a path related issue

* New module for Security insights (Azure Sentinel) Resource Provider (#13607)

* v1

* Actions, AlertRules

* Bookmarks... start incident comments

* more updates

* Incident Comments

* major updates

* fixes

* more fixes

* GetAlertRuleTemplates updates

* Update Az.SecurityInsights.psd1

* v1 tests

* tests.....

* Revert "tests....."

This reverts commit 4dddc6cf04639fad458b03068e61561903508b5b.

* Revert "Revert "tests.....""

This reverts commit 7904f596cbcfcaf726f110e8b9ff71988735f9e4.

* test v2

* tests complete... starting bug fixes

* bugs

* Update NewBookmarks.cs

Removed redundant "}"

* bugs

* Update NewBookmarks.cs

Fixed curly bracket

* updates

* updates after testing

* bugs....

* fix input object

* Added tests for input objects

* Generate Help

* added examples to help files based on build failure

* add online link to help files

* Bug Fixes

fixes for help and static analysis

* Moved Set- Commands to Update-

* bug fix to help docs

* Updates per feedback

https://github.com/Azure/azure-powershell/pull/13607#issuecomment-741597638

* Update Dns.sln

* Update Media.sln

* Update Media.sln

* Update Media.sln

* Fixes per comments

* remove dependacy on logic app module

* Add exceptions for static  analysis

* Update SignatureIssues.csv

* Update SignatureIssues.csv

* Update SignatureIssues.csv

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

* Update Set-AzFirewall.md (#13727)

* updated release notes for Az.ResourceGraph (#13734)

* Az.Tools.Predictor refactor and performance improvement. (#13669)

* Prefix the environment variable "AzPredictor"

* Refactor the code

- Improve the comment and its format.
- Create a concret class type to replace Tuple and ValueTuple.
- Verify method parameter values.

* Fix a bug that throws NullReferenceException.

* Improve the telemetry.

- Combine the error telemetry event with the non-error one.
- Collect if the http request is canceled when we send http request.

* Fix a bug that out of range is thrown.

* Transform and send telemetry in a thread pool.

- Refactor the telemetry and use a class for the collected data in each
  telemetry event.
- Now we only get basic information and push them to the data flow.
- A thread from thread pool handles the data, transform them, and send
  it.

* Fix the SuggestionSource and test.

- Updated the test after the refactor.
- Add more test cases.
- We don't set SuggestionSource on the suggestion in some cases. This is
  revealed in the unit tests. They're fixed.

* Avoid duplicate extraction of user input.

- We have two CommandLinePredictor in AzurePredictorService. The
  CommandLinePredictor needs to extract from the user input the command
  name, parameter set etc. It's duplicate if we do that in both
  CommandLinePredictor. Move that extraction to AzurePredictorService
  and the CommandLinePredictor will not need to do it.

* Fix a bug that a duplicate key is in the dictionary.

* Replace Newtonsoft with the built-in Json serializer.

* Fix an issue that the parameter name is repeated in source text.

* Ensure the http response is successful.

* Collect the event in requesting to /commands.

* Improve the perf in GetSuggestion.

- Remove the string manipulation.
- Pre-allocate the collections for the result.
- Remove invariant check in "readonly" properties.

* Seperate the inner class in seperate files.

* [Synapse] -  Fixed deserialization error when create Pipeline/Dataset/Trigger through DefinitionFile (#13721)

* Remove using Newtonsoft.Json and JsonObject

* update client and cmdlets

* Remove more Newtonsoft annotation

* remove ToSdkObject and SetProperties

* update artifacts client

* Remove JsonProperty

* remove unused sub-classes

* remove internal properties

* Update artifacts dependency version

* Fix the default literal issue

Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>

* Get-AzKeyVaultSecret can -AsPlainText (#13730)

Co-authored-by: Yeming Liu <yeliu@microsoft.com>

* Update Get-AzRecoveryServicesBackupItem.md (#13719)

Get-AzRecoveryServicesBackupContainer examples used "name" instead of "friendlyname". Name is not a valid parameter for Get-AzRecoveryServicesBackupContainer.

https://docs.microsoft.com/en-us/powershell/module/az.recoveryservices/get-azrecoveryservicesbackupcontainer?view=azps-5.2.0

* Merge VVD update to master (#13718)

* Merge VVD update to master

* Update ChangeLog.md

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

* Move Communication and RedisEnterpriseCache to master branch (#13729)

* Move Communication and RedisEnterpriseCache to master branch

* Suppress two json files for cred scan

* Update module docs for redisenterprisecache and communication

* [Tool]Add PoliCheck policy for CloudService (#13707)

* Add PoliCheck policy

* Add PoliCheck policy

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

* comments smoke test for DesktopVirtualization (#13752)

* Deployment Scripts GA - update api-version (#13737)

* Update deploymentScripts apiVersion to latest GA version

* update changelog

* Update ChangeLog.md

* Fix template spec error type

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

* Fixing SQL AG restore, removing the container name check (#13744)

* Fix secure string issue (#13741) (#13754)

* [DataFactory]Fix the command `Invoke-AzDataFactoryV2Pipeline` for SupportsShouldProcess issue (#13755)

* [DataFactory]Fix the command `Invoke-AzDataFactoryV2Pipeline` for SupportsShouldProcess issue

* Update Changelog.md

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

* Enable support for multi auth for p2sVpnGateway (#13749)

* enable multi Auth for p2sVpnGateway

* allow multi auth for update-vpnServerConfig

* fix update

* Update ChangeLog.md

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

* Revert "Enable support for multi auth for p2sVpnGateway (#13749)" (#13764)

This reverts commit 42b62195e848030217d939ca1a7ca0f5d2957b0f.

* Textual modifications to SecurityJitNetworkAccessPolicy help file (#13761)

* Introducing SecurityTopologies cmdlets

* Update ChangeLog.md

* Update ChangeLog.md

* Change cmdlet name to Get-AzSecurityTopology

* remove AllowedConnections

* change name

* fix conflicy

* fix conflict

* Update ChangeLog.md

* Introducing Az.Security AllowedConnections cmdlets

* update change.log

* remove SecurityTopology

* fix version

* Fix comments

* fix location

* fix comment

* fix comment

* fix version number

* Create Adaptive Application Control API cmdlets

* Create Adaptive Application Control API cmdlets

* fix1

* fix2

* Add back comment end token

* Introducing ScurityAdaptiveNetworkHardening  cmdlets

* Update Security.csproj

* Update ChangeLog.md

* 1

* Introducing Az.Security AdaptiveNetworkHardening cmdlets

* Introducing Az.Security AdaptiveNetworkHardening cmdlets

* change to a singular noun for the parameter name

* change to a singular noun for the parameter name

* change to a singular noun for the parameter name2

* implement ShouldProcess

* fix1

* Update JIT help

* remove files

* revert ChangeLog.md

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

* Update Reset-AzP2sVpnGateway.md (#13765)

* [Synapse] Add new cmdlets related to SQL rule baseline and sensitivity on Synapse SQL pool (#13759)

* Add 9 DW related cmdlets

* Save current status

* Revert ValueFromPipelineByPropertyName

* Add workspaceName and resourceGroupName to PSSqlPool

* Fix naming

* Update help doc

* update psd1

* Add SqlPoolName alias to basic SQL pool related commands

* Add test cases for new cmdlets

* Remove default parameter for Set-AzSynapseSqlPoolVulnerabilityAssessmentRuleBaseline

* Remove default parameter set

* Update CredScan Suppressions and test case names

* Update TestVulnerabilityAssessmentBaseline.json

Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>

* [HDInsight]Add properties: `Fqdn` and `EffectiveDiskEncryptionKeyUrl` in AzureHDInsightHostInfo (#13771)

* Add properties: `Fqdn` and `EffectiveDiskEncryptionKeyUrl` in AzureHDInsightHostInfo.\n Update related session records.\n Update other cmdlets's help doc.

* Update changelog

Co-authored-by: Zhenyu Zhou <zhezhou@microsoft.com>

* Fix Status and StatusMessage fields in Get-AzSqlDatabaseImportExportStatus to conform to documentation (#13751)

* Put the correct value into the StatusMessage field

* Add parsing of the http return value to determine the operation status

* Add ChangeLog.md entry

* Re-add as much testing as possible and add commenting for why the rest is broken

* Update ChangeLog.md

Co-authored-by: Simon Redman <siredman@microsoft.com>
Co-authored-by: Dingmeng Xue <dixue@microsoft.com>

* Add local parameter value map to Az.Predictor (#13739)

* add local parameter value map

* add local parameter value map

* add local parameter value map

* add local parameter value map

* SQL Data Classification - Update id split logic (#13746)

* Update DataClassificationAdapter.cs

* Update DataClassificationAdapter.cs

* Update ChangeLog.md

* Update DataClassificationAdapter.cs

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

* Prediction/Commands Service API v2 updates (#13767)

* Initial updates for updated v2 service endpoints

* Updating tests to work with the new model updates

* Fixing service uri, cleaning up using statements

* PR feedback

* Additional code cleanup:
- Removed unnecessary usings
- Added copyright
- Misc. code clean up

Co-authored-by: Juan Aguirre <juaguir@microsoft.com>

* Kusto update with API version 2020-09-18 (#13776)

* Kusto update with API version 2020-09-18

* Update ChangeLog.md

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

* Get-AzVMDSCExtension and Get-AzVMDSCExtensionStatus new parameter set VMParameterSet for new parameter VM (#13657)

* practice

* practice2

* success

* testing attempts

* testing

* changelog

* help doc for Status cmdlet

* help text on status

* 2nd cmdlet

* 2nd cmdlet help doc

* Fix the path issue (#13783)

* Changed container name format for Azure Files backup item (#13781)

* fix 13687 (#13778)

* Stop when test fails (#13780)

* [KeyVault] Fix minor bugs (#13779)

* fix 13583 13584

* suppress breaking change

* Remove Newtonsoft dependency  (#13787)

* Removing newtonsoft

* Fixing null reference issue in parameter predictor

Co-authored-by: Juan Aguirre <juaguir@microsoft.com>

* Add Code and tests for Bot Service (#13782)

* Revert "Stop when test fails (#13780)" (#13789)

This reverts commit 9dae391a765e98cf1a3dd4999ff6346b54795f08.

* Update the Azure-powershell-modules (#13793)

* Update the Azure-powershell-modules

* Update documentation/azure-powershell-modules.md

Co-authored-by: Yeming Liu <felix_liu@outlook.com>

* Update the doc

Co-authored-by: Yeming Liu <felix_liu@outlook.com>

* Regenerated DedicatedHSM and Databricks (#13792)

* dedicated HSM

* databricks

* SQL Server DevOps auditing support (#13788)

* Implement GetAzSqlServerMSSupportAudit

* use DotNet SDK from local feed

* fix tests - in progress

* expose SetAzSqlServerMSSupportAudit

* fix tests - in progress

* fix tests - in progress

* added base cmdlet class for server and DevOps audit cmdlets

* full refactoring

* full refactoring

* full refactoring

* full refactoring

* make base class for RemoveServerAudit cmdlets

* consume new DevOps API

* adjust to latest SDK

* adding MSSupport tests

* more DevOps tests

* DevOps tests

* DevOps tests

* DevOps tests

* revert files changed by mistake

* revert changed by mistake files

* use proper Sql SDK version 1.48.0

* update ChangeLog.md

* remove local NuGet package

* add missing help file

* update md file

* fix help files

* fix help files

* * update CredScanSuppressions.json
* move recorded tests to the correct folder

* re-record failed test

* restore removed comment

Co-authored-by: Oleg Sternberg <olsternb@microsoft.com>

* Load assemblies from PreloadAssemblies (#13799)

* Lengthen name suffix to reduce conflict (#13800)

* Lengthen name suffix to reduce conflict

* Update changelog for upcoming release (#13798)

* Update changelog for release

* revert CmdletLoader.cs

* Fix the test of CloudService (#13807)

Co-authored-by: wyunchi-ms <yunwang@microsoft.com>

* OOB has been done for WVD, these are related changes need to be merged into master. (#13806)

* Merge VVD update to master

* Update ChangeLog.md

* Update changelog for WVD

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

* Pipeline should stop when test fails (#13804)

* Pipeline should stop when test fails

* Skip some failed test cases for the time being to make CI pass

* upgrade Azure.Core to 1.7 (#13805)

* Delete the useless case for costmanagement (#13810)

* delete useless test

* delete useless file

* add liveonly test case for secret management extension (#13809)

* Update the Warning message (#13821)

* Update New-AzHostGroup.md (#13814)

* Fix the test framework for test. (#13803)

* Fix cases and utils script for 'BotService' (#13813)

* Fix cases and utils script for 'BotService'

* update env file

* Add SubscriptionId in cmdlet ’New-AzBotService‘

* update the cmdlet 'New-AzBotservice'

* Update custome file

* Change Get-AzAlertHistory title and description (#13816)

* change alert history title and description

* add release note to change log

* remove changelog

as only doc was changed

Co-authored-by: Yeming Liu <felix_liu@outlook.com>

* [Az.RecoveryServices.Backup] Customer Managed Key Encryption for recovery services vault (#13593)

* Customer Managed Key Encryption

fixing static analysis

fixing casing

skipping tests for upcoming release

resolving review comments

* fixing azp

* [KubernetesConfiguration] Upgrade API version from 2019-11-01-preview to 2020-10-01-preview. (#13829)

* [KubernetesConfiguration] Upgrade API version from 2019-11-01-preview to 2020-10-01-preview.

* [KubernetesConfiguration] Updated ChangeLog.md

* [KubernetesConfiguration] update help doc.

* Update example (#13837)

Updated the example to match the correct cmdlet and removed duplicated parameter.

* release-2020-12-29 (#13839)

* Allow Get-AzLogicAppTriggerHistory and Get-AzLogicAppRunAction to return more than 30 results (#13846)

* Allow Get-AzLogicAppTriggerHistory to return more than 30 results.

* Allow Get-AzLogicAppRunAction to return more than 30 results

* Update change log

* Fixed issue where description was not populated for update management schedules (#13854)

* Update AutomationPSClientSoftwareUpdateConfiguration.cs

Start populating description field for Update Management Schedules

* Update ChangeLog.md

* [Az.RecoveryServices.Backup] Workload Recovery config, disallowing target item to be an availability group (#13851)

* Recovery Config target item, blocking SQL availability group

* working review comments

* Update Set-AzVirtualNetwork.md (#13857)

* Update Set-AzVirtualNetwork.md

Updated comment for Example 1

* Update Set-AzVirtualNetwork.md

- specify language of code block
- indentation

Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>

* Updated changelog and added missing feature (#13867)

* Update New-AzStorageTableStoredAccessPolicy.md (#13871)

As of at least Az.Storage 3.2.0 (perhaps earlier), -Permission parameter will not accept write/w as a string component, the write permission has been split into add/a and update /u

* Update Set-AzSecurityWorkspaceSetting.md (#13877)

Fixed description of a command output

* #10518-webapp: Support the new appservice Managed certificates (#13441)

* #10518-webapp: Support the new appservice Managed certificates

* updated online version for help files

* fixed static analysis SignatureIssues.

* Review comments

* Review comments addressed

* Addressed Review comments

* Modified tests are rerecorded

* Fixed build issue

* addressed Code review comments

* updated conflicts

* Updated code to support 202 status

* Updated ParametreSet positions

* Update src/Websites/Websites/ChangeLog.md

Co-authored-by: Yeming Liu <felix_liu@outlook.com>

* [CosmosDB] GA of Az.CosmosDB module (#13875)

* disallowing updates using New-AzCosmosDBAccount cmdlet

* updating changeLog and Test session records

* re-ran tests for add region + addressed comment on ChangeLog

Co-authored-by: Meha Kaushik <mekaushi@microsoft.com>

* {IoT Hub} Fixed issue in SAS token generation (#13881)

* Fixed issue in SAS token generation

* Added SAS token validation test and updated test recording

* Fixed status code for device message result

* Fix bug causing Docker Password to be removed from appsettings in Set-AzWebApp(Slot) (#13866)

* Fix removal of docker password setting #13865

* minor adjustment to changelog

to make sure the versioning script will handle it correctly

Co-authored-by: Noort <xx07uq@INSIM.BIZ>
Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>

* [Storage] Fix ContinuationToken never null in list blob include version (#13873)

* [MONITOR] Data Collection Rules 2019-11-01-preview - New Cmdlets (#13595)

* Add upport for Azure Monitor Data Collection Rule

* [Monitor] Add support for Azure Monitor DCRA (Data Collection Rule Association); Add DCR/DCRA Session Record tests; Add DCRA help

* Fix -Name documentation in Get-AzDataCollectionRule.md

* AMCS DCR/DCRA change parameter names

* [Azure Monitor Control Service] support DCR Update cmdlet; Suggestive name parameters; Improve cmdlet description

* Azure Monitor Control Service: Update docs; Fix test records;

* Azure Monitor Control Service: Fix ChangeLog.md

* Azure Monitor: Fix Release description & version

* Fix Maml model erros caused by a yaml block

* AMCS Fix help docs & Update Sql.Test project reference

* AMCS  - Add ParameterSet ByResourceID to DCR Get/Set cmdlets

* Remove links from help docs in notes & examples

* Fix Help docs, notes section

* fix help generation

* Renaming parameters -Tags to -Tag, in [New/Set/Update]DataColletionRule cmdlets

Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>

* [Az.RecoveryServices.Backup] Adding Cross Region Restore feature (#13884)

* IaasVM Cross Region Restore

* working review comments

* minor doc change

* Merge MySql enhancement from generation to master (#13796)

* Merge MySql enhancement from generation to master

change list
https://github.com/Azure/azure-powershell/pull/13717
https://github.com/Azure/azure-powershell/pull/13838

* Address review comments

* Added support for -QueryString parameter in New-Az*Deployments cmdlets (#13775)

* Update SDK version and add support for -QueryString parameter in New-Az*Deployment cmdlets

* updated changelog and help files

* Fix broken help files

* Credscan test fix

* Fix SDK version issues

* Fixed failing DeploymentManager test

* Fixed build issues

* Review fixes

* [Synapse] - refine restore sqlpool (#13888)

* Save current status

* Redesign restore-azsynapsesqlpool

* Update help doc

* Update changelog

* Remove unused comments

* Add Restore-AzSynapseSqlPool to BreakingChangeIssues.csv

Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>

* Az.CosmosDB GA (#13907)

* Rename some help files (#13900)

* fix cmdlet help issue

* Delete Disable-AzAksAddon.md

* Delete Enable-AzAksAddon.md

* Delete Invoke-AzVmPatchAssessment.md

* Delete Get-AzExpressRouteCrossConnectionARPTable.md

* Delete Disconnect-AzP2sVpnGatewayVpnConnection.md

* Delete DIsable-AzSecurityAdvancedThreatProtection.md

* Delete Set-AzDataLakeGen2ItemACLObject.md

* Delete comdlet

* Revert "Delete comdlet"

This reverts commit 5e1df941543ab21f52bc8de335d9eedf34909ab1.

* Pass principal type during role assignment put operations (#13590)

* Added principal type to New-AzRoleDefinition calls

* add principal type check for update role assignment

* re-record tests

* fix tests

* update test

* skip non deterministic tests

* delete credentials

* use ressource string

* Flexible server of PostgreSql (#13890)

* First version flexible server of PostgreSql

* Add change log for postgresql

* [CosmosDB] Bugfix: Added missing property in Sql Container Resource (#13895)

* disallowing updates using New-AzCosmosDBAccount cmdlet

* updating changeLog and Test session records

* re-ran tests for add region + addressed comment on ChangeLog

* Adding analytical storage ttl in Sql Container

* updating help

* update changelog

* improving help msg

Co-authored-by: Meha Kaushik <mekaushi@microsoft.com>

* Remove PowerShell Core myget feed (#13923)

* [SQL] [LogReplay] Make Start-AzSqlInstanceDatabaseLogReplay synchronous command  (#13903)

* initial

* remove model

* Add AsJob Switch parameter so user can execute as background process as this is a long-running op

* change log updated

* regenerated help files

Co-authored-by: Milan Brkic <mibrkic@microsoft.com>

* polish changelog for upcoming release (#13918)

* Codegen for addomainservices (#13914)

* Move ADDomainServices to master

* Add ADDomainServices

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

Co-authored-by: erich-wang <eriwan@microsoft.com>
Co-authored-by: t-bzhan <61817681+t-bzhan@users.noreply.github.com>
Co-authored-by: Dingmeng Xue <dixue@microsoft.com>
Co-authored-by: Jin Lei <54836179+msJinLei@users.noreply.github.com>
Co-authored-by: Yabo Hu <yabhu@microsoft.com>
Co-authored-by: msJinLei <leijin@microsoft.com>
Co-authored-by: msJinLei <lei.jin@microsoft.com>
Co-authored-by: kceiw <mahuang@microsoft.com>
Co-authored-by: Beisi Zhou <zazbs@qq.com>
Co-authored-by: Beisi Zhou <zhoubeisi@gmail.com>
Co-authored-by: yemohyle <73853907+yemohyle@users.noreply.github.com>
Co-authored-by: azuresdkci <azuresdkci@microsoft.com>
Co-authored-by: Rahul Dutta <rahuldutta90@users.noreply.github.com>
Co-authored-by: Wei Wei <weiwei@microsoft.com>
Co-authored-by: erich-wang <erich.wang@outlook.com>
Co-authored-by: iviark <33299013+iviark@users.noreply.github.com>
Co-authored-by: Mark Baker <marbaker@microsoft.com>
Co-authored-by: Sapan Saxena <31940305+anusapan@users.noreply.github.com>
Co-authored-by: Adam Sandor <adsandor@microsoft.com>
Co-authored-by: Daniel Orozco <64658732+dagoroz@users.noreply.github.com>
Co-authored-by: Mads Damgård <madsd@microsoft.com>
Co-authored-by: Vinay Jayant Mundada <vinaymundada27@gmail.com>
Co-authored-by: Vinay Mundada <vimundad@microsoft.com>
Co-authored-by: Andrew Dawson <62777308+dawsonar802@users.noreply.github.com>
Co-authored-by: Yeming Liu <Yeming.Liu@microsoft.com>
Co-authored-by: Wan Yang <yw1997yw@126.com>
Co-authored-by: Wan Yang <t-wayang@microsoft.com>
Co-authored-by: Jingshu923 <52914166+Jingshu923@users.noreply.github.com>
Co-authored-by: Alfredo Santamaria <chino.sebastian@gmail.com>
Co-authored-by: Alfredo Santamaria Gomez <alsantam@microsoft.com>
Co-authored-by: Xiaogang <xidi@microsoft.com>
Co-authored-by: Auðunn <audunnb@gmail.com>
Co-authored-by: Audunn Baldvinsson <audunn.baldvinsson@netapp.com>
Co-authored-by: SteppingRazor <luksil91@gmail.com>
Co-authored-by: Steve Burkett <SteveBurkettNZ@users.noreply.github.com>
Co-authored-by: Dongwei Wang <dongwwa@microsoft.com>
Co-authored-by: bradrich-msft <53872276+bradrich-msft@us…
YanaXu pushed a commit that referenced this pull request May 6, 2024
* add argument completers

* add quotes to argument completers

* remove repeated time zone
BethanyZhou pushed a commit that referenced this pull request May 8, 2024
* 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>
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
* 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 (Azure#9)

* Add custom error handler

* Add default filter to retrieve tickets from the past week for Get-AzSupportTickets and Get-AzSupportTicketsNoSubscription (Azure#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 (Azure#11)

* Add argument completer (Azure#12)

* add argument completers

* add quotes to argument completers

* remove repeated time zone

* Regenerate powershell module with GA swagger (Azure#13)

* Rerecord tests using GA version (Azure#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>
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.

None yet

5 participants