Describe the bug
When loading the module in an Azure FunctionApp it takes a long time and loads a lot of other modules as well:
2024-01-23T13:05:00Z [Information] INFORMATION: Loaded Module 'Az.Accounts'
2024-01-23T13:05:02Z [Information] INFORMATION: Loaded Module 'Az.Storage'
2024-01-23T13:05:05Z [Information] INFORMATION: Loaded Module 'Az.Accounts'
2024-01-23T13:05:06Z [Information] INFORMATION: Loaded Module 'Az.Authorization'
2024-01-23T13:05:06Z [Information] INFORMATION: Loaded Module 'Az.Accounts'
2024-01-23T13:05:20Z [Information] INFORMATION: Loaded Module 'Az.MSGraph'
Are all these required for running the AzureRmStorageTable module? If so, why is the az.Accounts loaded several times? They even load again if I pre-load them earlier in the script. Any help would be greatly appreciated.
Error Message
No error message
PowerShell Version
Include here the full output of the following command line:
PSVersion 7.2.13
PSEdition Core
GitCommitId 7.2.13
OS Microsoft Windows 10.0.14393
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
Complete list of Azure related Powershell modules
requirements.psd1 content:
'Az' = '11.2'
'AzureRmStorageTable' = '2.1'
Describe the bug When loading the module in an Azure FunctionApp it takes a long time and loads a lot of other modules as well: 2024-01-23T13:05:00Z [Information] INFORMATION: Loaded Module 'Az.Accounts' 2024-01-23T13:05:02Z [Information] INFORMATION: Loaded Module 'Az.Storage' 2024-01-23T13:05:05Z [Information] INFORMATION: Loaded Module 'Az.Accounts' 2024-01-23T13:05:06Z [Information] INFORMATION: Loaded Module 'Az.Authorization' 2024-01-23T13:05:06Z [Information] INFORMATION: Loaded Module 'Az.Accounts' 2024-01-23T13:05:20Z [Information] INFORMATION: Loaded Module 'Az.MSGraph' Are all these required for running the AzureRmStorageTable module? If so, why is the az.Accounts loaded several times? They even load again if I pre-load them earlier in the script. Any help would be greatly appreciated.
Error Message No error message
PowerShell Version Include here the full output of the following command line:
Complete list of Azure related Powershell modules requirements.psd1 content: 'Az' = '11.2' 'AzureRmStorageTable' = '2.1'
Code Snippet Profile.ps1 content: Connect-AzAccount -Identity Import-Module AzureRmStorageTable
More information Azure function-app with runtime version: ~4.
Additional context Add any other context about the problem here.