Azure / azure-cli-extensions

Public Repository for Extensions of Azure CLI.
https://docs.microsoft.com/en-us/cli/azure
MIT License
383 stars 1.24k forks source link

Unable to deploy Azure logic app (ZIP deploy) #4063

Closed Sahithi-Modak closed 2 years ago

Sahithi-Modak commented 3 years ago

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name az logicapp deployment source config-zip Extension Name: logicapp. Version: 0.1.2.

Errors:

The command failed with an unexpected error. Here is the traceback:
Expecting value: line 1 column 1 (char 0)
Traceback (most recent call last):
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 691, in _run_job
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler
  File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1561, in enable_zip_deploy_functionapp
    remove_remote_build_app_settings(cmd, resource_group_name, name, slot)
  File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1467, in remove_remote_build_app_settings
    scm_is_up_to_date = validate_app_settings_in_scm(
  File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1426, in validate_app_settings_in_scm
    scm_settings = _get_app_settings_from_scm(cmd, resource_group_name, name, slot)
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/utils.py", line 75, in call
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/utils.py", line 71, in call
  File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1416, in _get_app_settings_from_scm
    return response.json() or {}
  File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/models.py", line 900, in json
  File "json\__init__.py", line 357, in loads
  File "json\decoder.py", line 337, in decode
  File "json\decoder.py", line 355, in raw_decode
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

Expected Behavior

Environment Summary

Windows-10-10.0.19041-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.27.2 *

Extensions:
logicapp 0.1.2

Additional Context

ghost commented 3 years ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/azure-logicapps-team.

Issue Details
### **This is autogenerated. Please review and update as needed.** ## Describe the bug **Command Name** `az logicapp deployment source config-zip Extension Name: logicapp. Version: 0.1.2.` **Errors:** ``` The command failed with an unexpected error. Here is the traceback: Expecting value: line 1 column 1 (char 0) Traceback (most recent call last): File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 231, in invoke File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 657, in execute File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 691, in _run_job File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 328, in __call__ File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 121, in handler File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1561, in enable_zip_deploy_functionapp remove_remote_build_app_settings(cmd, resource_group_name, name, slot) File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1467, in remove_remote_build_app_settings scm_is_up_to_date = validate_app_settings_in_scm( File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1426, in validate_app_settings_in_scm scm_settings = _get_app_settings_from_scm(cmd, resource_group_name, name, slot) File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/utils.py", line 75, in call File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/appservice/utils.py", line 71, in call File "C:\Users\kd2204\.azure\cliextensions\logicapp\azext_logicapp\custom.py", line 1416, in _get_app_settings_from_scm return response.json() or {} File "D:\a\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\requests/models.py", line 900, in json File "json\__init__.py", line 357, in loads File "json\decoder.py", line 337, in decode File "json\decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) ``` ## To Reproduce: Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information. - _Put any pre-requisite steps here..._ - `az logicapp deployment source config-zip --name {} --resource-group {} --subscription {} --src {}` ## Expected Behavior ## Environment Summary ``` Windows-10-10.0.19041-SP0 Python 3.8.9 Installer: MSI azure-cli 2.27.2 * Extensions: logicapp 0.1.2 ``` ## Additional Context
Author: Sahithi-Modak
Assignees: -
Labels: `customer-reported`, `Logic App`, `Service Attention`
Milestone: -
yonzhan commented 3 years ago

route to service team

DevArjun23 commented 2 years ago

@Sahithi-Modak can you share output of your deploy command with "--debug" parameter? Something like- az logicapp deployment source config-zip --name {} --resource-group {} --subscription {} --src {} --debug

Sahithi-Modak commented 2 years ago

Hi @archidda

I'm able to execute above command successfully but observed no workflow is deployed even though status is success.

cmd:

az logicapp deployment source config-zip --name testappworkflow --resource-group *--subscription "" --src LogicAppDemo.zip Output:

Getting scm site credentials for zip deployment Starting zip deployment. This operation can take a while to complete ... Deployment endpoint responded with status code 202 { "active": true, "author": "N/A", "author_email": "N/A", "complete": true, "deployer": "ZipDeploy", "end_time": "2021-11-10T06:12:36.9441551Z", "id": "777c1eb0bdfa4500a80cb891b74864c0", "is_readonly": true, "is_temp": false, "last_success_end_time": "2021-11-10T06:12:36.9441551Z", "log_url": "https://testappworkflow.scm.azurewebsites.net/api/deployments/latest/log", "message": "Created via a push deployment", "progress": "", "provisioningState": "Succeeded", "received_time": "2021-11-10T06:11:18.1325508Z", "site_name": "testappworkflow", "start_time": "2021-11-10T06:11:19.0522415Z", "status": 4, "status_text": "", "url": "https://testappworkflow.scm.azurewebsites.net/api/deployments/latest" }

Sahithi-Modak commented 2 years ago

Please find attached zip file,

Please let me know if i need to change anything.

DevArjun23 commented 2 years ago

Can you confirm if you zip file directly contains the workflow folders and root level artifacts like connections.json.

Take a look at the importat note highlighted in blue here- https://docs.microsoft.com/en-us/azure/logic-apps/azure-arc-enabled-logic-apps-create-deploy-workflows?tabs=azure-cli#deploy-logic-app

Can you share your zip file for me to take a look? (Please sanitize if it has any secrets)

Sahithi-Modak commented 2 years ago

Hello,

Please find attached zip file,

Thanks


From: archidda @.> Sent: Wednesday, November 10, 2021 10:49 PM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Can you confirm if you zip file directly contains the workflow folders and root level artifacts like connections.json.

Take a look at the importat note highlighted in blue here- https://docs.microsoft.com/en-us/azure/logic-apps/azure-arc-enabled-logic-apps-create-deploy-workflows?tabs=azure-cli#deploy-logic-app

Can you share your zip file for me to take a look? (Please sanitize if it has any secrets)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-965564127, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREBAA4RSVVEJSTM7WFTULKSSLANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Sahithi-Modak commented 2 years ago

@archidda

i have attached the zip file, it is not showing here, i hope you have received the zip file.

please let me know if you need anything.

DevArjun23 commented 2 years ago

I do not see the zip file attachment. Can you email it to me at archidda@microsoft.com

DevArjun23 commented 2 years ago

@Sahithi-Modak I reviewed your zip file and it is not organized correctly. The zip file needs to contain the root level folders and files directly.

Currently, you have sampleLogicApp.zip ....-> SampleLogicApp ........-> Stateful ........-> host.json ........-> local.settings.json

Instead, it should be sampleLogicApp.zip ....-> Stateful ....-> host.json ....-> local.settings.json

Note- uploading local.settings.json won't upload your app settings, that file is meant for local use only.

Sahithi-Modak commented 2 years ago

Hi,

I have removed the extra folder and followed the folder structure and tried to deploy.

The command ran successfully but I cannot see the workflow in the azure portal.

Could please provide me a sample working zip file with simple workflow?

Thanks


From: archidda @.***> Sent: Thursday, November 11, 2021 11:40 PM To: Azure/azure-cli-extensions Cc: Sahithi Tekumalla; Mention Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

@Sahithi-Modakhttps://github.com/Sahithi-Modak I reviewed your zip file and it is not organized correctly. The zip file needs to contain the root level folders and files directly.

Currently, you have sampleLogicApp.zip -> SampleLogicApp -> Stateful -> host.json -> local.settings.json

Instead, it should be sampleLogicApp.zip -> Stateful -> host.json -> local.settings.json

Note- uploading local.settings.json won't upload your app settings, that file is meant for local use only.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-966515593, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREHKVKCJCG3I4DU2V4LULQBHZANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DevArjun23 commented 2 years ago

Sharing this file(v22.zip) that I sometimes use for testing and works for me. I noticed you are missing a connections.json file in your zip as well. Not 100% sure if that makes the difference, but I would add and test.

From: Sahithi-Modak @.> Sent: Thursday, November 11, 2021 10:19 AM To: Azure/azure-cli-extensions @.> Cc: Arjun Chiddarwar @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Hi,

I have removed the extra folder and followed the folder structure and tried to deploy.

The command ran successfully but I cannot see the workflow in the azure portal.

Could please provide me a sample working zip file with simple workflow?

Thanks


From: archidda @.***> Sent: Thursday, November 11, 2021 11:40 PM To: Azure/azure-cli-extensions Cc: Sahithi Tekumalla; Mention Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

@Sahithi-Modakhttps://github.com/Sahithi-Modak I reviewed your zip file and it is not organized correctly. The zip file needs to contain the root level folders and files directly.

Currently, you have sampleLogicApp.zip -> SampleLogicApp -> Stateful -> host.json -> local.settings.json

Instead, it should be sampleLogicApp.zip -> Stateful -> host.json -> local.settings.json

Note- uploading local.settings.json won't upload your app settings, that file is meant for local use only.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-966515593, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREHKVKCJCG3I4DU2V4LULQBHZANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli-extensions%2Fissues%2F4063%23issuecomment-966521940&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287642699%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bNdZ5ZH2an4iLKWqiv9DdPsahXkXkwQ4ytsLcd7ay1k%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANPP7UHGNAXURQJ7LP6EGBTULQCIHANCNFSM5HIOLBMQ&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287652667%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LOyiveFSvHlJGlTQRDezxcJ6BJFhkFtd8V5Gw9NavqI%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287652667%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2F%2ByDqksURddHl00l6MgkvahO%2FHpt5mdX9xDpCXu2xTc%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287662630%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=b3%2FDsmxtAlb9aawcqafNbulUPOCO%2Fiw0KB8DkcMcWE8%3D&reserved=0.

Sahithi-Modak commented 2 years ago

Archidda,

I haven’t received any zip file and I guess the file was not attached.

It would be helpful if you resend v22.zip file?

Thanks


From: archidda @.> Sent: Thursday, November 11, 2021 11:54:44 PM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Sharing this file(v22.zip) that I sometimes use for testing and works for me. I noticed you are missing a connections.json file in your zip as well. Not 100% sure if that makes the difference, but I would add and test.

From: Sahithi-Modak @.> Sent: Thursday, November 11, 2021 10:19 AM To: Azure/azure-cli-extensions @.> Cc: Arjun Chiddarwar @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Hi,

I have removed the extra folder and followed the folder structure and tried to deploy.

The command ran successfully but I cannot see the workflow in the azure portal.

Could please provide me a sample working zip file with simple workflow?

Thanks


From: archidda @.***> Sent: Thursday, November 11, 2021 11:40 PM To: Azure/azure-cli-extensions Cc: Sahithi Tekumalla; Mention Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

@Sahithi-Modakhttps://github.com/Sahithi-Modak I reviewed your zip file and it is not organized correctly. The zip file needs to contain the root level folders and files directly.

Currently, you have sampleLogicApp.zip -> SampleLogicApp -> Stateful -> host.json -> local.settings.json

Instead, it should be sampleLogicApp.zip -> Stateful -> host.json -> local.settings.json

Note- uploading local.settings.json won't upload your app settings, that file is meant for local use only.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-966515593, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREHKVKCJCG3I4DU2V4LULQBHZANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

- You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli-extensions%2Fissues%2F4063%23issuecomment-966521940&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287642699%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=bNdZ5ZH2an4iLKWqiv9DdPsahXkXkwQ4ytsLcd7ay1k%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FANPP7UHGNAXURQJ7LP6EGBTULQCIHANCNFSM5HIOLBMQ&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287652667%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=LOyiveFSvHlJGlTQRDezxcJ6BJFhkFtd8V5Gw9NavqI%3D&reserved=0. Triage notifications on the go with GitHub Mobile for iOShttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fapps.apple.com%2Fapp%2Fapple-store%2Fid1477376905%3Fct%3Dnotification-email%26mt%3D8%26pt%3D524675&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287652667%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2F%2ByDqksURddHl00l6MgkvahO%2FHpt5mdX9xDpCXu2xTc%3D&reserved=0 or Androidhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fplay.google.com%2Fstore%2Fapps%2Fdetails%3Fid%3Dcom.github.android%26referrer%3Dutm_campaign%253Dnotification-email%2526utm_medium%253Demail%2526utm_source%253Dgithub&data=04%7C01%7CArjun.Chiddarwar%40microsoft.com%7Ca0da9c6b006449d7535508d9a53fb220%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637722515287662630%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=b3%2FDsmxtAlb9aawcqafNbulUPOCO%2Fiw0KB8DkcMcWE8%3D&reserved=0.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-966526176, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREFUHNXXLMWVAEXV3NTULQC6ZANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DevArjun23 commented 2 years ago

I sent it again over email thread where you shared your Zip file.

Sahithi-Modak commented 2 years ago

Thanks Arjun,

You can mark this issue as resolved. It is working as expected.

Once again thankyou so much for such quick response!!!


From: archidda @.> Sent: Friday, November 12, 2021 10:42:40 PM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

I sent it again over email thread where you shared your Zip file.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-967278445, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREBKVNBAWQDK5WXVFCLULVDIRANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DevArjun23 commented 2 years ago

Cool, happy to help

DevArjun23 commented 2 years ago

@yonzhan can you help close this issue?

Sahithi-Modak commented 2 years ago

Hello @archidda

I tried to re-deploy the logic app with the following command; the deployment was successful, but I couldn't see any workflows in the Azure portal.

Command Used:

az logicapp deployment source config-zip --name test-logicapp-23 --resource-group **** --subscription "**" --src v22.zip

Output:

C:\workarea\Azure\logicapps\test> az logicapp deployment source config-zip --name test-logicapp-23 --resource-group --subscription "" --src v22.zip

Getting scm site credentials for zip deployment Starting zip deployment. This operation can take a while to complete ... Deployment endpoint responded with status code 202 { "active": true, "author": "N/A", "author_email": "N/A", "complete": true, "deployer": "ZipDeploy", "end_time": "2022-01-11T17:07:46.4694597Z", "id": "ae7ff5ae37ff4b1b828c3e918777b719", "is_readonly": true, "is_temp": false, "last_success_end_time": "2022-01-11T17:07:46.4694597Z", "log_url": "https://test-logicapp-23.scm.azurewebsites.net/api/deployments/latest/log", "message": "Created via a push deployment", "progress": "", "provisioningState": "Succeeded", "received_time": "2022-01-11T17:07:40.8435137Z", "site_name": "test-logicapp-23", "start_time": "2022-01-11T17:07:41.7809888Z", "status": 4, "status_text": "", "url": "https://test-logicapp-23.scm.azurewebsites.net/api/deployments/latest" }

Please find attachment,

Could you please help us to resolve this?

Thanks,

Sahithi


From: yonzhan @.> Sent: Saturday, November 13, 2021 5:03 AM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Closed #4063https://github.com/Azure/azure-cli-extensions/issues/4063.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#event-5612396368, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREGQ7AGXEHYCKIMML5TULWP3FANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

DevArjun23 commented 2 years ago

Hey @Sahithi-Modak, can you tell me what changed since you last confirmed that issue was resolved on Nov 12, 2021 and now? Also can you go to kudu and confirm if the files are present on the file system, here's how you check it- Portal-> logicapp -> Advanced Tools(under Development Tools) blade -> Click on "Go ->" -> Debug Console tab -> CMD -> Navigate to site/wwwroot. Can you see the workflows uploaded from the zip file?

Sahithi-Modak commented 2 years ago

Hello Arjun,

I've only added one more workflow this time, and that's all I've changed this time. You previously given me a zip file with two workflows, so I just copied and pasted one of them with a different name.

Thanks,

Sahithi.


From: archidda @.> Sent: Wednesday, January 12, 2022 8:46 AM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

Hey @Sahithi-Modakhttps://github.com/Sahithi-Modak, can you tell me what changed since you last confirmed that issue was resolved on Nov 12, 2021 and now? Also can you go to kudu and confirm if the files are present on the file system, here's how you check it- Portal-> logicapp -> Advanced Tools(under Development Tools) blade -> Click on "Go ->" -> Debug Console tab -> CMD -> Navigate to site/wwwroot. Can you see the workflows uploaded from the zip file?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-1010590062, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREGOOVWF66L76EL7PDTUVTW7PANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

Sahithi-Modak commented 2 years ago

Hello Arjun,

In Portal-> logicapp -> Advanced Tools(under Development Tools) blade -> Click on "Go ->" -> Debug Console tab -> CMD -> Navigate to site/wwwroot. I'm able to see all workflow related files.

[cid:6897b5e6-78ff-4913-8579-783a1c975a54]

Output:

C:\home\site\wwwroot>pwd

/c/home/site/wwwroot

C:\home\site\wwwroot>ls -ltr total 3 -rw-r--r-- 1 Unknown+User Unknown+Group 2 Jan 11 17:41 parameters.json -rw-r--r-- 1 Unknown+User Unknown+Group 151 Jan 11 22:51 host.json -rw-r--r-- 1 Unknown+User Unknown+Group 28 Jan 11 22:51 connections.json drwxr-xr-x 1 Unknown+User Unknown+Group 0 Jan 12 05:05 s1 drwxr-xr-x 1 Unknown+User Unknown+Group 0 Jan 12 05:05 s23 drwxr-xr-x 1 Unknown+User Unknown+Group 0 Jan 12 05:31 s32

Thanks, Sahithi


From: Sahithi Tekumalla @.> Sent: Wednesday, January 12, 2022 10:27 AM To: Azure/azure-cli-extensions @.>; Azure/azure-cli-extensions @.> Cc: Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Hello Arjun,

I've only added one more workflow this time, and that's all I've changed this time. You previously given me a zip file with two workflows, so I just copied and pasted one of them with a different name.

Thanks,

Sahithi.


From: archidda @.> Sent: Wednesday, January 12, 2022 8:46 AM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

Hey @Sahithi-Modakhttps://github.com/Sahithi-Modak, can you tell me what changed since you last confirmed that issue was resolved on Nov 12, 2021 and now? Also can you go to kudu and confirm if the files are present on the file system, here's how you check it- Portal-> logicapp -> Advanced Tools(under Development Tools) blade -> Click on "Go ->" -> Debug Console tab -> CMD -> Navigate to site/wwwroot. Can you see the workflows uploaded from the zip file?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-1010590062, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREGOOVWF66L76EL7PDTUVTW7PANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

DevArjun23 commented 2 years ago

okay that confirms the zip was deployed and unzipped successfully. It is not a CLI issue.

DevArjun23 commented 2 years ago

Also can you share how you created the zip file?

Sahithi-Modak commented 2 years ago

Hey Arjun,

I have used zip command i.e,

zip -r *

Example: consider a folder abc is having all workflows and host.json and connections.json

Working directory: abc

Then I have executed following command

zip -r abc.zip *

Thanks, Sahithi


From: archidda @.***> Sent: Thursday, January 13, 2022 2:32 AM To: Azure/azure-cli-extensions Cc: Sahithi Tekumalla; Mention Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

Also can you share how you created the zip file?

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-1011448072, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREFMXQDCMO6G4F5ZGBDUVXT4XANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

DevArjun23 commented 2 years ago

Can you try creating the zip using windows feature? Select files an folders -> Right click -> Send to -> Compressed(zipped) folder

And the upload that zip using CLI. Let's see if that works.

I have seen a case in the past where there was an issue with the zip created using command. Lets see if that is the issue here, then we can debug and fix it.

Sahithi-Modak commented 2 years ago

Hello Arjun,

I have tried creating zip using windows feature, But still I'm facing same issue.

Thanks, Sahithi.


From: archidda @.> Sent: Thursday, January 13, 2022 9:47 AM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

Can you try creating the zip using windows feature? Select files an folders -> Right click -> Send to -> Compressed(zipped) folder

I have seen a case in the past where there was an issue with the zip created using command. Lets see if that is the issue here, then we can debug and fix it.

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-1011781613, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREFSZAHHLKOSSCRH6XDUVZG55ANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

DevArjun23 commented 2 years ago

Okay, thanks for trying that. Please share the zip file with me over email, I will take a look and try to reproduce the issue

Sahithi-Modak commented 2 years ago

Hi Arjun,

I have sent the zip file to your mailing address.

Thanks


From: archidda @.***> Sent: Thursday, January 13, 2022 11:28 PM To: Azure/azure-cli-extensions Cc: Sahithi Tekumalla; Mention Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

Okay, thanks for trying that. Please share the zip file with me over email, I will take a look and try to reproduce the issue

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-1012374943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREBXMKMR25QVMAAKUPLUV4HCJANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

DevArjun23 commented 2 years ago

You zip is not correctly built. Pasting my previous comment for reference-


archidda commented on Nov 11, 2021 • @Sahithi-Modak I reviewed your zip file and it is not organized correctly. The zip file needs to contain the root level folders and files directly.

Currently, you have sampleLogicApp.zip ....-> SampleLogicApp ........-> Stateful ........-> host.json ........-> local.settings.json

Instead, it should be sampleLogicApp.zip ....-> Stateful ....-> host.json ....-> local.settings.json

Note- uploading local.settings.json won't upload your app settings, that file is meant for local use only.

DevArjun23 commented 2 years ago

After correcting the zip, I was able to load the workflows in my logicapp.

Sahithi-Modak commented 2 years ago

Hi Arjun,

I have sent you the wrong zip file, please find the correct zip file.

Thanks,

From: archidda @.> Sent: Friday, January 14, 2022 4:39:22 AM To: Azure/azure-cli-extensions @.> Cc: Sahithi Tekumalla @.>; Mention @.> Subject: Re: [Azure/azure-cli-extensions] Unable to deploy Azure logic app (ZIP deploy) (Issue #4063)

Caution: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe

After correcting the zip, I was able to load the workflows in my logicapp.

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-cli-extensions/issues/4063#issuecomment-1012601219, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ATGJREHJFHMTNEFFW4I3JOTUV5LSFANCNFSM5HIOLBMQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

DevArjun23 commented 2 years ago

@Sahithi-Modak If you are still facing the issue with correct zip file, then this might be runtime issue and not CLI issue. Please create a support request from azure portal on logicapps team. That way we can help you better.

riteshnus commented 1 year ago

Hello @archidda @Sahithi-Modak I am also facing same issue. Getting success in cli but no workflow created. So can you share the correct zip file or test zip file to use it. Thank you. My email is ritesh.nus@gmail.com