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

Really slow loading in Azure FunctionApp #81

Open
magnusjak opened this issue Jan 23, 2024 · 0 comments
Open

Really slow loading in Azure FunctionApp #81

magnusjak opened this issue Jan 23, 2024 · 0 comments
Assignees

Comments

@magnusjak
Copy link

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'

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.

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

No branches or pull requests

4 participants