Transcription
Hey guys, in today's session, we're going to see a small demo on how to set up Dynamics 365 with DevOps. Basically, we're going to configure a DevOps project so that we can use it for our build automation, for continuous integration and continuous delivery. We will connect this DevOps project with our LCS project. Okay, so let's continue. But it's going to be a small thing today.
Head over to dev.azure.com. This is your DevOps URL where we're going to create a new organization, or a new account, or new project. If you don't have an account, it will pop up so that you can create your new account. You can use your Microsoft account, or Microsoft work or personal account. So just enter the URL. I already have an organization and everything set up, so I'm going to work on this Cursor Run. You can create multiple organizations; that's not an issue.
So, if you are new to DevOps, just to give you an idea: an organization is like your higher level, or superior level, container which contains multiple projects. I'm going to work in Cursor Run, and under Cursor Run, we're going to create a new project. This is a blank organization as of now, so that's why we don't see any projects here. If I click on any other organization, we already have a project here that shows like I did some earlier demos where we showed how to create this project. So today, we're going to work on this blank organization.
Come here and give your project a name. We're going to just give a short name called D365FO. You can give some description if you like. So we're going to say Microsoft Dynamics 365 Finance and Operations implementation. Guys, like if you remember, if you know, now the Finance and Operations, license-wise, the product is divided in three pieces: like you have to buy a separate license, one license for Finance, another one for supply chain management, and then another one for Commerce. But the technology and everything is still the same. I'm going to keep it private so that only the people I invite or I give access can access it.
The main, the main important thing is version control. This DevOps supports Git or Team Foundation Server. D365 only works with Team Foundation version control, so we'll select this. For work item process, you can select whatever volume you are using, CMMI or anything. I usually work on CMMI and we create CMMI custom so that we can add our new fields and whatever customizations we need. After filling out your project name and version control, just hit okay. This will, so this will create a new blank project for us where, if you see, we don't have any, any trunk or any branching or anything. We'll discuss about branching maybe in a later video or in a later blog post.
So now we are all set on the D3, on the DevOps side. We have created a project. The next step is to key link this project with the LCS project. Before we do it, we need to do a quick thing: we need to get a personal access token. Click on personal access token. I have a bunch here, so I'm going to create a new one. Name it LCS project so that this token will be used in the LCS project to link, to link this organization or this account with the LCS. Organization, if you just want to give access to this organization, or all the, or all the organizations where I have access, so I'll keep it to this. You can choose whatever expiration you want. The maximum you can choose is one year. If you want to choose a one-year, select custom defined, click on the calendar, and so we are in July 2020. So if we move forward, I can go till June 17th. So it's a one-year thing. There are a bunch of things you can select whatever is required, but for our thing, because we're going to manage builds, releases, test management and everything, so I'll just give full access here. Create. The main thing is like you don't forget to copy, don't forget to copy the access token here because this is a unique token and you only see it once. Once I close this window, I won't be able to copy this thing again. And if I need another token, I would have to create a new token and go from there. So I'll just close it.
So now, um, we have created a new DevOps project on Team Foundation Server. We have, we have got our personal access token. Now let's go, let's go to our LCS project. In the LCS project, to get to the LCS project, just type lcs.dynamics.com. I already have that thing open on my system. So once you are in the LCS project, LCS, and in your LCS project, go to the project settings. Under project settings, go to Visual Studio Team Services, and it will take you to this, what do you say, wizard. This is my, this, this is our URL, the organization or account we created in DevOps. So if you see the, if you go back to the account here, if you see this URL, this is a new URL that, because if you, if you know like VSTS is now called DevOps, and Microsoft has moved to a new URL for DevOps versus a purpose so that it's easier to remember. Any desire to go though the URL is this, but we have to use a legacy URL when we are setting it up with the LCS. So I just use my organization name and the rest of the URL is .visualstudio.com. This is, once this is pasted, next in the next text box we can paste our personal access token. Once this is done, click Continue. Sorry, it was an older one, so let me [Music] paste the new one, click Continue. So once you click Continue and if the access token and everything is good, your organization URL or your DevOps URL will be displayed here. And if you click on the drop-down, you will see your D36, the DevOps project that we created in there. Okay, so select this and it will pop up with the process template and all the mappings. So this is LCS work item type versus VSTS work item type. So you can change any of these if you, if you would like. For example, the topmost or maybe the second level, we don't want to connect with Epic, or we want to connect with features. So you can change those mappings here. Click Continue. On the last page, it will show you whatever changes we have done. Once this is done, we just need to click Save, and our task, to connect the DevOps project with the LCS project system. At this time, we will end this session, and in the next session, we will see how to create a build server and how to configure build pipelines with, for continuous delivery and continuous integrations. Till then, good bye guys, take care. Bye.