Skip to content
This repository has been archived by the owner on Oct 17, 2024. It is now read-only.

ARM Template apiVersion for Microsoft.web/sites/sourcecontrol #5

Open
richross opened this issue Mar 7, 2021 · 6 comments
Open

ARM Template apiVersion for Microsoft.web/sites/sourcecontrol #5

richross opened this issue Mar 7, 2021 · 6 comments

Comments

@richross
Copy link

richross commented Mar 7, 2021

Source code for this repo was cloned into our GitHub Enterprise (GHE) environment. Deploying the ARM template repeatedly failed on the step where it deployed the source code to the Azure Functions and WebSites and mentioned the Microsoft.Web/Sites/SourceControl resource provider. Looking at this RP there is a newer version of this api. I updated the apiVersion property for this part of the ARM template to use apiVersion 2018-11-01. I was able to successfully deploy code to all of the functions and the web site following this change.

@richross
Copy link
Author

richross commented Mar 9, 2021

Just wanted to see if there are any comments to the issue posted here. We have a customer attempting to deploy this into their test environment and they have not had a successful deployment with the deploy failing on the Microsoft.Web/Sites/SourceControl step. They have tried to redeploy this application multiple times with no success.

@abbodh
Copy link
Contributor

abbodh commented Mar 10, 2021

Hi @richross , can you try to troubleshoot the issue by checking steps here - https://github.com/OfficeDev/microsoft-teams-apps-diversityandinclusion-preview-/wiki/Troubleshooting#delete-node-modules

Recently few deployments are reported failed due to npm errors, and we got 100% success when node_modules are cleared from app service.

@adamgernon
Copy link

Hi
I keep getting a conflict error on the /web deployment
Deployment failed message DivIncl
. Tried to fix it using the steps here but to no avail. Logs are attached.

Please advise.
Thanks for your guidance.

error_logs.txt

@Mikhail2k15
Copy link
Contributor

@adamgernon try to use my way #17

@adamgernon
Copy link

@Mikhail2k15 - will do once merged. Thanks

@cristianoag
Copy link

Use those steps to fix the issue with the sync process.

• Open portal.azure.com and use an admin credential to authenticate.
• Navigate to the resource group where all GC resources are installed.
• Click the App Service resource.
• On the left rail, scroll down to Development Tools and click Advanced Tools.
• Click Go
• Now on the menu located on the top of the page, select Debug console, and then click CMD
• Navigate to site\repository\Source\DiConnect\ClientApp. You can do that clicking on the folders on the box located on the top of the page or using the CD command on the MS-DOS command console
• Delete the node_modules folder by running the commands below on the command console

DEL /S /Q node_modules
RD /S /Q node_modules

• Delete the package-lock.json file
• Now clear the cache, you need to run the npm cache clean --force command in terminal.
• Run the npm install command in the terminal. (This will take some time).
• When finished, retry the sync process, and let me know the results.

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

No branches or pull requests

5 participants