Azure-Sentinel icon indicating copy to clipboard operation
Azure-Sentinel copied to clipboard

Unable to view contents of function app's zip files after downloading from SCM_RUN_FROM_PACKAGE link

Open ashwinvenkatesha opened this issue 2 years ago • 13 comments

Description: Unable to view contents of function app's zip files after downloading from SCM_RUN_FROM_PACKAGE link

Steps to reproduce the behavior:

  1. Deploy a function app via vscode, ensure functions load in azure console
  2. Go to https://<function_app_name>.scm.azurewebsites.net/api/settings
  3. Look for the key: SCM_RUN_FROM_PACKAGE
  4. Copy the link and download the zip file
  5. Try to open the zip file and this leads to "Unable to expand scm-latest-functionapp.zip, it is in an unsupported format"

Expected behavior Should be able to view contents and resuse in WEBSITE_RUN_FROM_PACKAGE

Screenshots Image

Desktop (please complete the following information):

  • OS: Mac
  • Browser: Chrome

ashwinvenkatesha avatar Oct 16 '24 05:10 ashwinvenkatesha

Hi @ashwinvenkatesha, Thank you for flagging this issue, we will check on it and update you. Thanks!

v-sudkharat avatar Oct 16 '24 06:10 v-sudkharat

hey @ashwinvenkatesha, Please let us know which solution function app you have deployed and can you please share the zip with us. thanks!

v-sudkharat avatar Oct 16 '24 11:10 v-sudkharat

And is the zip referenced in your raised PR- https://github.com/Azure/Azure-Sentinel/pull/10994/files#diff-95971103b1ceda83854b54c6f329fac170624618ee5faf6c7b8682ec3ab45717

v-sudkharat avatar Oct 16 '24 11:10 v-sudkharat

@ashwinvenkatesha, waiting for response

v-sudkharat avatar Oct 17 '24 08:10 v-sudkharat

No its not the zip referenced in PR Like I said in the description, you need to deploy the function app via vscode. So it doesnt use the website_run_from_package setting. Once deployed, Go to https://<function_app_name>.scm.azurewebsites.net/api/settings Look for the key: SCM_RUN_FROM_PACKAGE Copy the link and download the zip file Try to open the zip file and this leads to "Unable to expand scm-latest-functionapp.zip, it is in an unsupported format"

ashwinvenkatesha avatar Oct 17 '24 16:10 ashwinvenkatesha

Hi @ashwinvenkatesha, Its a same zip link which referenced in a storage account of a function app : - Image

So, to open it actually you need a 7-zip extractor software: -https://www.7-zip.org/download.html Not sure why default win/mac zip extractor is not supporting the that specific .zip format extension.

Thanks!

v-sudkharat avatar Oct 21 '24 11:10 v-sudkharat

Hi @ashwinvenkatesha, I hope above comment help you to unblock from your issue. Please let us know can we close this issue. Thanks!

v-sudkharat avatar Oct 22 '24 12:10 v-sudkharat

Image

Image

Trying with multiple apps, still same issue. I am still blocked.

ashwinvenkatesha avatar Oct 23 '24 00:10 ashwinvenkatesha

@ashwinvenkatesha, Could you please try with this tool - https://www.7-zip.org/download.html and let us know if still facing same issue. And please share that zip file with as well, to check if that specific file if have any issues.

Thanks!

v-sudkharat avatar Oct 23 '24 06:10 v-sudkharat

We dont have permission to install that on our systems, I have shown you output of 2 other tools which do the exact same job. Il post a link https://github.com/illumio-shield/Azure-Sentinel/blob/illumio-sentinel-array-bug/Solutions/IllumioSaaS/Data%20Connectors/scm-latest-testIllumioDataConnector02.zip

ashwinvenkatesha avatar Oct 23 '24 22:10 ashwinvenkatesha

@ashwinvenkatesha , Updated the zip :

https://github.com/Azure/Azure-Sentinel/raw/873fb120c32c53696922c8331cc2ca00d91c8971/Solutions/IllumioSaaS/Data%20Connectors/scm-latest-testIllumioDataConnector02.zip

Please download and let me know if still not able to open. Thanks!

v-sudkharat avatar Oct 24 '24 09:10 v-sudkharat

This worked, thanks. Can you tell me what was the fix pls?

ashwinvenkatesha avatar Oct 24 '24 20:10 ashwinvenkatesha

Hi @ashwinvenkatesha, using this tool to extract the zip : -https://www.7-zip.org/download.html

So, closing this issue. If you still need support for this issue, feel free to re-open it any time. Thank you for your co-operation.

v-sudkharat avatar Oct 30 '24 08:10 v-sudkharat