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

Publish-PerTenentExtensionApps: Installing multiple Apps is slow #3581

Open
Daniamstutz opened this issue Jun 24, 2024 · 1 comment
Open

Comments

@Daniamstutz
Copy link

We install 20 PTE apps via DevOps Release Pipelines, this takes between 30 minutes and 1.5 hours using the Publish-PerTenentExtensionApps command.

We are confused because the time varies so much.
What could be the reason for this?

Most of the time is spent on querying the /extensionDeploymentStatus.

Is there a faster way to install these apps?

Many thanks for your support

Scripts used to create container and cause the issue

Publish-PerTenantExtensionApps -tenantId $bc_tenant -clientId $bc_clientid -clientSecret $bc_clientsecret -environment $bc_environment -appFiles $Apps -schemaSyncMode $bc_schemaSyncMode

Full output of scripts

2024-06-24T05:11:05.9751503Z Downloading https://bccontainerhelper.blob.core.windows.net/public/6.0.18.zip
2024-06-24T05:11:08.2262832Z BcContainerHelper version 6.0.18
2024-06-24T05:11:11.9781546Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-06-24T05:11:12.1180679Z Running on Windows, PowerShell 5.1.20348.2400

2024-06-24T05:16:31.9228501Z App_1_24.0.0.71321.app - publishing and installing..........completed
2024-06-24T05:18:35.6120116Z App_2_24.0.0.71321.app - publishing and installing.........completed
2024-06-24T05:20:25.8881004Z App_3_24.0.0.71321.app - publishing and installing.........completed
2024-06-24T05:21:40.6308626Z App_4_24.0.0.71321.app - publishing and installing......completed
2024-06-24T05:23:06.3513087Z App_5_24.0.0.71321.app - publishing and installing.......completed
2024-06-24T05:24:30.4473659Z App_6_24.0.0.71321.app - publishing and installing.......completed
2024-06-24T05:25:52.7665078Z App_7_24.0.0.71321.app - publishing and installing.......completed
2024-06-24T05:27:32.5953855Z App_8_24.0.0.71321.app - publishing and installing........completed
2024-06-24T05:29:27.1603773Z App_9_24.0.0.71321.app - publishing and installing.........completed
2024-06-24T05:31:37.2748680Z App_10_24.0.0.71321.app - publishing and installing..........completed
2024-06-24T05:33:30.1118507Z App_11_24.0.0.71321.app - publishing and installing.........completed
2024-06-24T05:35:08.2204444Z App_12_24.0.0.71321.app - publishing and installing........completed
2024-06-24T05:37:44.2666335Z App_13_24.0.0.71321.app - publishing and installing............completed

2024-06-20T11:29:54.3170296Z App_1_24.0.0.71177.app - publishing and installing.....................completed
2024-06-20T11:34:46.4792897Z App_2_24.0.0.71177.app - publishing and installing...........................completed
2024-06-20T11:38:09.7990822Z App_3_24.0.0.71177.app - publishing and installing...................completed
2024-06-20T11:41:12.5748828Z App_4_24.0.0.71177.app - publishing and installing.................completed
2024-06-20T11:45:56.6001826Z App_5_24.0.0.71177.app - publishing and installing..........................completed
2024-06-20T11:49:01.2502425Z App_6_24.0.0.71177.app - publishing and installing.................completed
2024-06-20T11:51:11.0517013Z App_7_24.0.0.71177.app - publishing and installing............completed
2024-06-20T11:52:46.7484342Z App_8_24.0.0.71177.app - publishing and installing.........completed
2024-06-20T11:55:18.0723678Z App_9_24.0.0.71177.app - publishing and installing..............completed
2024-06-20T12:02:03.2252827Z App_10_24.0.0.71177.app - publishing and installing....................................completed
2024-06-20T12:03:37.9382833Z App_11_24.0.0.71177.app - publishing and installing..........completed
2024-06-20T12:06:24.2220256Z App_12_24.0.0.71177.app - publishing and installing..............completed
2024-06-20T12:14:47.8590298Z App_13_24.0.0.71177.app - publishing and installing..............................................completed

@freddydk
Copy link
Contributor

I don't know of a faster way - this uses the automation API.
You can also use the dev endpoint (Publish-BcContainerApp with Bcauthcontext and environment and -useDevEndpoint) - but I doubt that is faster

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

No branches or pull requests

2 participants