Getting data from azure remote repo - node.js

I'm deploying with Visual Studio Team services to Azure (NodeJS) but the problem is when files are changed in the remote repo in azure (through my site) I can't get them to my local repo. How can I get it without manually going in and copy the files? (Git pull doesn't work)

According to your description, I assume that your local repository is link to VSTS repo and VSTS repo push files to Azure Remote Repo. In this scenario, your local repo isn't linked to Azure Remote Repo, when you execute git pull from local repo, it just try to pull the changes from VSTS repo, not Azure Repo. To pull the changes from Azure Repo, trying the steps blow:
Configure "Deployment credentials" from Azure Portal. You'll need to use this credential to authenticate Azure Repo.
Open Kudu service page of your webapp. For example, if your app url is "https://app1.azurewebsites.net/", then the Kudu service page is "https://app1.scm.azurewebsites.net/".
Click "Source control info" link in Kudu service page. You will get the URL of the Azure Remote Repository.
Go to your local repo and add a remote repo with the URL you get from Step 3.
Perform a pull action from the new added remote repo and enter the credential you configured in Step 1 when prompted.

Related

Deploying Django app to Azure successful but shows the default django page, not my app

I checked to see if my files exist in wwwroot and this is what it showed:
I don't know how to get my files here.
Any advice?
If you are using windows plan after deployed to azure you need to git clone your repo after you've initialized your local Git repo on the Azure Web App.
After created the Web app in azure you need to set a continuous deployment.
Clone your deployed web app by using the url
git clone <your_url_convert_to_clone>
Your every change, git add., git commit, and git push them back to the repo in Azure to see your changes there.
Refer here
If you are using linux app service please have a look here

Can Azure pipelines get source from TFS Service Connection?

I have pipelines in Azure DevOps working with Windows Self hosted agent, I currently get source code from external Git but I also need to get source code from internal TFS 2018 server.
I created a service connection, I saw that I can specify it as an Azure subscription name in tasks that deploys but I can't see how to get source code, I have this UI when I create a YAML pipeline but there is not either any TFS option in classic mode:
Should I have a Service or TFS option in there ?
Thanks.
You can create a service connection named other git and use this service connection to get source code from TFS 2018. Here is my sample:
Create a Personal access token in TFS 2018.
Create a service connection named other git. The Git repository URL is the URL when you open the TFS 2018 repository.
If you are using git as source control, the format of the URL is http://{server:port}/tfs/DefaultCollection/_git/{repo name}
If you are using TFVC as source control, the format of the URL is http://{server:port}/tfs/DefaultCollection/{project name}/_versionControl
or http://{server:port}/tfs/DefaultCollection/{project name}
Please enter the Personal access token you created in the Password/Token filed.
3.Create a pipeline and choose other git as source. You can choose an already created service connection or create a new one.
Now you can use the repository in TFS 2018 as the source of this pipeline.
Here is the approach if you are looking at TFVC:
Go to project settings --> Repositories --> Create Repo. Select TFVC
After you create the TFVC repo, from the build you should be able to find the option:

How to manage an azure local web app file via Git VM

I want to manage a file in webapp from a Git repo stored in a VM, I've created a Web App and I need to know if I can relieted it to a git repo stored in a Azure VM.
You can do it in 2 ways:
Deploy from local Git with Kudu builds
Deploy from local Git with Azure DevOps Services builds
The detailed steps are mentioned in this article

Azure deployment source not showing private repository from BitBucket

I have a private repository hosted on BitBucket. On Azure I have created a web app and in the app service I want to set a deployment source to my BitBucket instance.
The authorization was ok, but when I want to select a project, the list shows no results.
What can be the issue here ?
Update: it looks like an authorization issue, because when opening the list of branches using the rest api, i get a forbidden result: https://bitbucket.org/api/1.0/repositories/{org}/{repo}/branches
When the admin of my repo is available I'll ask for admin permission and update this post.
It was a permission issue. To have deployment source attached to a BitBucket instance, you need admin rights on the repository.

GitHub deployment to Azure not working

I'm deploying to Azure sites using GitHub, but for some reason I'm not seeing any files insidre the wwwroot folder. It seems like the deployment is not going thur. I do see the files inside the repository folder.
You don't specify what you have done in setting up the deployment. However, the following is what has worked for me:
Set the Azure Website for Git Deployment via the following instructions:
http://www.windowsazure.com/en-us/develop/net/common-tasks/publishing-with-git/
Create a GitHub repository
Initialize your local working folder in Git. Push to the repo. By the sounds of things, you have done this.
Then you need to make sure you link your Azure Website with your GitHub repo. In the Portal, go to the 'Deployments' section of your Azure Website and click:
If you are logged into GitHub in the same browser it will quickly ask you to specify the correct repository and that'll be it.
This is the step I suspect you either may not have done completely, or perhaps you have selected the wrong repository.
Once it is hooked up, Azure will pull and deploy each time you push a commit to the master branch in the repository.

Resources