Skip to content

Instantly share code, notes, and snippets.

@byt3n33dl3
Created February 6, 2025 14:16
Show Gist options
  • Save byt3n33dl3/3f51779927335db27133a265cb81bae2 to your computer and use it in GitHub Desktop.
Save byt3n33dl3/3f51779927335db27133a265cb81bae2 to your computer and use it in GitHub Desktop.
Azure powershell bug

Environment data

Name                           Value
----                           -----
PSVersion                      5.1.26100.2161
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.26100.2161
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Issue script & Debug output

DEBUG: 00:00:23.9829869 Calling 'NuGetRequest'::'GetPackageById', 'Az.Sql'.
DEBUG: 00:00:23.9871023 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Sql'.
DEBUG: 00:00:23.9896775 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Sql'.
DEBUG: 00:00:23.9909949 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:23.9943271 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=0&$top=40'.
DEBUG: 00:00:24.1561818 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=0&$top=40'.
DEBUG: 00:00:24.1606633 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=0&$top=40'.
DEBUG: 00:00:24.3110144 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=0&$top=40'.
DEBUG: 00:00:24.3180357 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=80&$top=40'.
DEBUG: 00:00:24.3181657 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=120&$top=40'.
DEBUG: 00:00:24.3185716 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=40&$top=40'.
DEBUG: 00:00:24.3185934 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=160&$top=40'.
DEBUG: 00:00:24.4193202 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=120&$top=40'.
DEBUG: 00:00:24.4217120 '0' packages received in the last request.
DEBUG: 00:00:24.4437347 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=80&$top=40'.
DEBUG: 00:00:24.4471864 '13' packages received in the last request.
DEBUG: 00:00:24.5463101 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=160&$top=40'.
DEBUG: 00:00:24.5488780 '0' packages received in the last request.
DEBUG: 00:00:24.5797219 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Sql'&$skip=40&$top=40'.
DEBUG: 00:00:24.5936760 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:24.5944880 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:24.5953855 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:24.5965486 Calling 'NuGetRequest'::'GetPackageById', 'Az.SqlVirtualMachine'.
DEBUG: 00:00:24.5971706 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.SqlVirtualMachine'.
DEBUG: 00:00:24.5978066 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.SqlVirtualMachine'.
DEBUG: 00:00:24.5983889 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:24.6000404 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'&$skip=0&$top=40'.
DEBUG: 00:00:24.7733258 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'&$skip=0&$top=40'.
DEBUG: 00:00:24.7763390 '13' packages received in the last request.
DEBUG: 00:00:24.7778808 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'&$skip=0&$top=40'.
DEBUG: 00:00:24.9781526 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.SqlVirtualMachine'&$skip=0&$top=40'.
DEBUG: 00:00:24.9820310 '13' packages received in the last request.
DEBUG: 00:00:24.9856583 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:24.9864033 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:24.9874172 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:24.9884038 Calling 'NuGetRequest'::'GetPackageById', 'Az.StackHCI'.
DEBUG: 00:00:24.9890996 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.StackHCI'.
DEBUG: 00:00:24.9897550 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.StackHCI'.
DEBUG: 00:00:24.9903356 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:24.9912649 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCI'&$skip=0&$top=40'.
DEBUG: 00:00:25.2006895 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCI'&$skip=0&$top=40'.
DEBUG: 00:00:25.2046885 '39' packages received in the last request.
DEBUG: 00:00:25.2059835 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCI'&$skip=0&$top=40'.
DEBUG: 00:00:25.3188099 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCI'&$skip=0&$top=40'.
DEBUG: 00:00:25.3222718 '39' packages received in the last request.
DEBUG: 00:00:25.3269487 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:25.3301404 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:25.3320543 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:25.3353696 Calling 'NuGetRequest'::'GetPackageById', 'Az.StackHCIVM'.
DEBUG: 00:00:25.3384134 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.StackHCIVM'.
DEBUG: 00:00:25.3399235 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.StackHCIVM'.
DEBUG: 00:00:25.3411700 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:25.3429257 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCIVM'&$skip=0&$top=40'.
DEBUG: 00:00:25.4696534 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCIVM'&$skip=0&$top=40'.
DEBUG: 00:00:25.4712248 '8' packages received in the last request.
DEBUG: 00:00:25.4720973 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCIVM'&$skip=0&$top=40'.
DEBUG: 00:00:25.6318009 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StackHCIVM'&$skip=0&$top=40'.
DEBUG: 00:00:25.6337903 '8' packages received in the last request.
DEBUG: 00:00:25.6379001 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:25.6386886 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:25.6396336 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:25.6405958 Calling 'NuGetRequest'::'GetPackageById', 'Az.Storage'.
DEBUG: 00:00:25.6413507 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Storage'.
DEBUG: 00:00:25.6426644 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Storage'.
DEBUG: 00:00:25.6433453 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:25.6442069 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=0&$top=40'.
DEBUG: 00:00:25.8011483 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=0&$top=40'.
DEBUG: 00:00:25.8038801 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=0&$top=40'.
DEBUG: 00:00:25.9106706 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=0&$top=40'.
DEBUG: 00:00:25.9179963 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=40&$top=40'.
DEBUG: 00:00:25.9180814 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=160&$top=40'.
DEBUG: 00:00:25.9183469 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=120&$top=40'.
DEBUG: 00:00:25.9182902 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=80&$top=40'.
DEBUG: 00:00:26.0340214 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=160&$top=40'.
DEBUG: 00:00:26.0365623 '0' packages received in the last request.
DEBUG: 00:00:26.0725145 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=40&$top=40'.
DEBUG: 00:00:26.1713211 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=120&$top=40'.
DEBUG: 00:00:26.1746962 '12' packages received in the last request.
DEBUG: 00:00:26.1791130 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Storage'&$skip=80&$top=40'.
DEBUG: 00:00:26.1875345 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:26.1893081 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:26.1903039 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:26.1915343 Calling 'NuGetRequest'::'GetPackageById', 'Az.StorageMover'.
DEBUG: 00:00:26.1922587 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.StorageMover'.
DEBUG: 00:00:26.1929284 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.StorageMover'.
DEBUG: 00:00:26.1936158 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:26.1945360 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageMover'&$skip=0&$top=40'.
DEBUG: 00:00:26.3212321 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageMover'&$skip=0&$top=40'.
DEBUG: 00:00:26.3238920 '9' packages received in the last request.
DEBUG: 00:00:26.3252426 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageMover'&$skip=0&$top=40'.
DEBUG: 00:00:26.4151416 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageMover'&$skip=0&$top=40'.
DEBUG: 00:00:26.4171997 '9' packages received in the last request.
DEBUG: 00:00:26.4219962 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:26.4231743 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:26.4242681 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:26.4253935 Calling 'NuGetRequest'::'GetPackageById', 'Az.StorageSync'.
DEBUG: 00:00:26.4260229 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.StorageSync'.
DEBUG: 00:00:26.4271119 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.StorageSync'.
DEBUG: 00:00:26.4280745 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:26.4288467 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'&$skip=0&$top=40'.
DEBUG: 00:00:26.5357637 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'&$skip=0&$top=40'.
DEBUG: 00:00:26.5386535 '25' packages received in the last request.
DEBUG: 00:00:26.5400767 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'&$skip=0&$top=40'.
DEBUG: 00:00:26.6516700 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StorageSync'&$skip=0&$top=40'.
DEBUG: 00:00:26.6547614 '25' packages received in the last request.
DEBUG: 00:00:26.6588179 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:26.6594498 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:26.6601261 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:26.6619404 Calling 'NuGetRequest'::'GetPackageById', 'Az.StreamAnalytics'.
DEBUG: 00:00:26.6628325 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.StreamAnalytics'.
DEBUG: 00:00:26.6636605 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.StreamAnalytics'.
DEBUG: 00:00:26.6642799 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:26.6668567 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'&$skip=0&$top=40'.
DEBUG: 00:00:26.7726146 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'&$skip=0&$top=40'.
DEBUG: 00:00:26.7747960 '13' packages received in the last request.
DEBUG: 00:00:26.7766963 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'&$skip=0&$top=40'.
DEBUG: 00:00:26.8662445 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.StreamAnalytics'&$skip=0&$top=40'.
DEBUG: 00:00:26.8682131 '13' packages received in the last request.
DEBUG: 00:00:26.8721612 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:26.8731665 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:26.8751321 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:26.8761675 Calling 'NuGetRequest'::'GetPackageById', 'Az.Support'.
DEBUG: 00:00:26.8769079 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Support'.
DEBUG: 00:00:26.8777492 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Support'.
DEBUG: 00:00:26.8786137 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:26.8794165 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'&$skip=0&$top=40'.
DEBUG: 00:00:26.9931282 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'&$skip=0&$top=40'.
DEBUG: 00:00:26.9959776 '5' packages received in the last request.
DEBUG: 00:00:26.9971601 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'&$skip=0&$top=40'.
DEBUG: 00:00:27.1040680 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Support'&$skip=0&$top=40'.
DEBUG: 00:00:27.1059578 '5' packages received in the last request.
DEBUG: 00:00:27.1102884 There are '1' registered sources in 'NuGet' provider.
DEBUG: 00:00:27.1116025 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.
DEBUG: 00:00:27.1125764 Source 'https://www.powershellgallery.com/api/v2' is validated.
DEBUG: 00:00:27.1142376 Calling 'NuGetRequest'::'GetPackageById', 'Az.Synapse'.
DEBUG: 00:00:27.1147649 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Synapse'.
DEBUG: 00:00:27.1156605 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Synapse'.
DEBUG: 00:00:27.1165669 Calling 'NuGetClient'::'FindPackage'.
DEBUG: 00:00:27.1175394 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=0&$top=40'.
DEBUG: 00:00:27.2588669 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=0&$top=40'.
DEBUG: 00:00:27.2638984 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=0&$top=40'.
DEBUG: 00:00:27.3685314 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=0&$top=40'.
DEBUG: 00:00:27.3757617 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=80&$top=40'.
DEBUG: 00:00:27.3759655 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=40&$top=40'.                                                                              DEBUG: 00:00:27.3763634 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=120&$top=40'.                                                                             DEBUG: 00:00:27.3766596 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=160&$top=40'.                                                                             DEBUG: 00:00:27.4711411 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=80&$top=40'.                                                                    DEBUG: 00:00:27.4744695 '0' packages received in the last request.                                                                                                                                               DEBUG: 00:00:27.4877895 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=40&$top=40'.                                                                    DEBUG: 00:00:27.4895872 '6' packages received in the last request.                                                                                                                                               DEBUG: 00:00:27.5564807 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=120&$top=40'.                                                                   DEBUG: 00:00:27.5575205 '0' packages received in the last request.                                                                                                                                               DEBUG: 00:00:27.5916885 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Synapse'&$skip=160&$top=40'.                                                                   DEBUG: 00:00:27.5930450 '0' packages received in the last request.                                                                                                                                               DEBUG: 00:00:27.5970369 There are '1' registered sources in 'NuGet' provider.                                                                                                                                    DEBUG: 00:00:27.5976735 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.                                                                              DEBUG: 00:00:27.5989745 Source 'https://www.powershellgallery.com/api/v2' is validated.                                                                                                                          DEBUG: 00:00:27.6001118 Calling 'NuGetRequest'::'GetPackageById', 'Az.TrafficManager'.                                                                                                                           DEBUG: 00:00:27.6012897 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.TrafficManager'.                                                                                                               DEBUG: 00:00:27.6026918 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.TrafficManager'.                                                                                                                         DEBUG: 00:00:27.6036370 Calling 'NuGetClient'::'FindPackage'.                                                                                                                                                    DEBUG: 00:00:27.6045628 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'&$skip=0&$top=40'.                                                                        DEBUG: 00:00:27.7146038 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'&$skip=0&$top=40'.                                                              DEBUG: 00:00:27.7161131 '17' packages received in the last request.                                                                                                                                              DEBUG: 00:00:27.7170913 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'&$skip=0&$top=40'.                                                                        DEBUG: 00:00:27.8095697 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.TrafficManager'&$skip=0&$top=40'.                                                              DEBUG: 00:00:27.8118208 '17' packages received in the last request.                                                                                                                                              DEBUG: 00:00:27.8159780 There are '1' registered sources in 'NuGet' provider.                                                                                                                                    DEBUG: 00:00:27.8244941 Source 'https://www.powershellgallery.com/api/v2' is not one of the registered sources in 'NuGet' provider.                                                                              DEBUG: 00:00:27.8265999 Source 'https://www.powershellgallery.com/api/v2' is validated.                                                                                                                          DEBUG: 00:00:27.8295552 Calling 'NuGetRequest'::'GetPackageById', 'Az.Websites'.                                                                                                                                 DEBUG: 00:00:27.8313954 Calling 'NuGetPackageRepository'::'FindPackagesById', 'Az.Websites'.                                                                                                                     DEBUG: 00:00:27.8330653 Calling 'NuGetPackageFeed2'::'FindPackage', 'Az.Websites'.                                                                                                                               DEBUG: 00:00:27.8346931 Calling 'NuGetClient'::'FindPackage'.                                                                                                                                                    DEBUG: 00:00:27.8359355 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=0&$top=40'.                                                                              DEBUG: 00:00:28.1256446 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=0&$top=40'.                                                                    DEBUG: 00:00:28.1288200 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=0&$top=40'.                                                                              DEBUG: 00:00:28.2263741 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=0&$top=40'.                                                                    DEBUG: 00:00:28.2309150 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=40&$top=40'.                                                                             DEBUG: 00:00:28.2311264 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=120&$top=40'.                                                                            DEBUG: 00:00:28.2313798 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=160&$top=40'.                                                                            DEBUG: 00:00:28.2314033 Downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=80&$top=40'.                                                                             DEBUG: 00:00:28.3286296 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=120&$top=40'.                                                                  DEBUG: 00:00:28.3311252 '0' packages received in the last request.                                                                                                                                               DEBUG: 00:00:28.3451710 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=40&$top=40'.                                                                   DEBUG: 00:00:28.3474715 '25' packages received in the last request.                                                                                                                                              DEBUG: 00:00:28.4344083 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=80&$top=40'.                                                                   DEBUG: 00:00:28.4367607 '0' packages received in the last request.                                                                                                                                               DEBUG: 00:00:28.5532759 Completed downloading 'https://www.powershellgallery.com/api/v2/FindPackagesById()?id='Az.Websites'&$skip=160&$top=40'.                                                                  DEBUG: 00:00:28.5549394 '0' packages received in the last request.                                                                                                                                               DEBUG: 00:00:28.5598008 Returning the call 'NuGetClient'::'GetPackageDependencies'.                                                                                                                              DEBUG: 00:00:28.5916314 Calling 'NuGetClient'::'InstallPackage'.                                                                                                                                                 DEBUG: 00:00:29.3762622 Calling 'NuGetClient'::'InstallPackageLocal'.                                                                                                                                            DEBUG: 00:00:29.3790465 C:\Users\venkataya\AppData\Local\Temp\736105648\Az.Accounts.4.0.2\Az.Accounts.4.0.2.nupkg                                                                                                DEBUG: 00:00:29.7425697 Returning the call 'NuGetClient'::'InstallPackageLocal'.                                                                                                                                 DEBUG: 00:00:29.7896046 Returning the call 'NuGetClient'::'InstallSinglePackage'.                                                                                                                                DEBUG: 00:00:29.8443041 Calling 'NuGetClient'::'InstallPackage'.                                                                                                                                                 DEBUG: 00:00:30.1618953 Calling 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:30.1640935 C:\Users\venkataya\AppData\Local\Temp\736105648\Az.Advisor.2.1.0\Az.Advisor.2.1.0.nupkg
DEBUG: 00:00:30.2587336 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:30.3071535 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:30.3448191 Calling 'NuGetClient'::'InstallPackage'.
DEBUG: 00:00:30.4482577 Catalog file 'Az.Accounts.cat' is not found in the contents of the previously-installed module 'Az.Accounts' with the same name.
DEBUG: 00:00:30.4505089 Using the previously-installed module 'Az.Accounts' with version '4.0.2' under 'C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\4.0.2' for getting the publisher details.
DEBUG: 00:00:30.4526940 Using the 'C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\4.0.2\Az.Accounts.psd1' file for getting the authenticode signature.
DEBUG: 00:00:30.5355430 For publisher validation, using the previously-installed module 'Az.Accounts' with version '4.0.2' under 'C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\4.0.2' with publisher
name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond,
S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
DEBUG: 00:00:30.5525504 Using the 'Az.Accounts.psd1' file for getting the authenticode signature.
DEBUG: 00:00:30.6256754 For publisher validation, current module 'Az.Accounts' with version '4.0.2' with publisher name 'CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US' from
root certificate authority 'CN=Microsoft Root Certificate Authority 2011, O=Microsoft Corporation, L=Redmond, S=Washington, C=US'. Is this module signed by Microsoft: 'True'.
DEBUG: 00:00:30.6569981 Previously-installed module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:30.6584457 Current module publisher: CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
DEBUG: 00:00:30.6598545 Is previously-installed module signed by Microsoft: True
DEBUG: 00:00:30.6613492 Is current module signed by Microsoft: True
DEBUG: 00:00:30.6733415 Calling 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:30.6751907 C:\Users\venkataya\AppData\Local\Temp\736105648\Az.Aks.6.1.0\Az.Aks.6.1.0.nupkg
DEBUG: 00:00:30.8173699 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:30.8469194 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:30.8839743 Calling 'NuGetClient'::'InstallPackage'.
DEBUG: 00:00:31.2009369 Calling 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:31.2024698 C:\Users\venkataya\AppData\Local\Temp\736105648\Az.AnalysisServices.1.2.0\Az.AnalysisServices.1.2.0.nupkg
DEBUG: 00:00:31.2838580 Returning the call 'NuGetClient'::'InstallPackageLocal'.
DEBUG: 00:00:31.3308704 Returning the call 'NuGetClient'::'InstallSinglePackage'.
DEBUG: 00:00:31.3741710 Calling 'NuGetClient'::'InstallPackage'.
DEBUG: 00:00:31.4269828 In Test-FileInUse function, unable to open the C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\4.0.2\FuzzySharp.dll file in ReadWrite access. Exception calling "Open" with "3"
argument(s): "The process cannot access the file 'C:\Program Files\WindowsPowerShell\Modules\Az.Accounts\4.0.2\FuzzySharp.dll' because it is being used by another process."
WARNING: The version '4.0.2' of module 'Az.Accounts' is currently in use. Retry the operation after closing the applications.
DEBUG: 00:00:31.5211292 Using the 'Az.Advisor.psd1' file for getting the authenticode signature.
DEBUG: 00:00:31.5996420 PowerShell Script 'PSModule' Function 'Install-Package' returns null.
PackageManagement\Install-Package : The module 'Az.Advisor' cannot be installed or updated because the authenticode signature of the file 'Az.Advisor.psd1' is not valid.
At C:\Program Files\WindowsPowerShell\Modules\PowerShellGet\2.2.5\PSModule.psm1:9711 char:34
+ ... talledPackages = PackageManagement\Install-Package @PSBoundParameters
+                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (Microsoft.Power....InstallPackage:InstallPackage) [Install-Package], Exception
    + FullyQualifiedErrorId : InvalidAuthenticodeSignature,ValidateAndGet-AuthenticodeSignature,Microsoft.PowerShell.PackageManagement.Cmdlets.InstallPackage

Unable to Install Azure PowerShell on my windows Machine. Please help me with the necessary steps

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