logo

NJP

How To - Create a catalog item from an Azure ARM template in 5 less than minutes

Import · Apr 01, 2021 · video

this morning i've been given something like two minutes to show you how to go from uh your azure portal and any of these service offerings that you might want to throw in here to a servicenow catalog offering so i'm going to try to get through this very quickly uh you can pick any of these things you'll see the pro in the process it doesn't matter a whole lot uh what we pick we call this quick demo and i'm gonna pick a site that i already have in network and we're gonna pick a thing a bit hands okay okay okay okay now when we get to this review stage uh the the key piece here is i'm gonna download a template so i click this downloaded template it's gonna give me this nice arm json blob ctrl c that and go over to sublime and throw it in here now normally to simplify a catalog item what i would do is anything that you can see here asked in parameters is a question that we ask the end user and there's a lot of questions and so pretty often i would clean this up by moving some of this stuff down into variables and you know maybe statically assigning the networks or some of the storage accounts or whatever whatever it is and then making those changes into resources as well today all i'm going to do is cut out this location parameter so when we make the api call we actually do designate the you know where this is going to go so i don't need that particular piece so i'm going to ctrl c this and then i'm going to go into my servicenow instance so here in the cloud admin portal you can see that we have these cloud catalog items i already have a few you know azure redis cache wordpress types of items so i'm just going to create a new one we're going to call this one quick demo and it's going to be an oops an arm template type and we'll save that and here you'll see that we now have this you know where i could come down to cloud templates and add a new one we're going to paste the body of that in here and i'm going to save this as well now you're filling out descriptions just for the sake of showing you how fast this is this is our servicenow speed run this is the slowest part right here this activating item is going to go through and scan this parameter section so another thing that i would normally do in in this is i would have policies so our policies that we already have in place in this instance are going to take hold so what's happening here is we're applying things like our naming convention and our lease policy and other types of things that we may already have set up to pre-fill some of the fields and simplify customer checkout that can be tagging policy it can be you know anything that you can think of that's gonna help simplify this okay so now we have down here we have our cloud templates and the state is active and validation is success i'm going to go ahead and activate this as a catalog item and we will save it one last time and then i'm going to go over to the user portal so here as i log in as a user and then go to launch a stack we're going to see that i have this quick demo catalog item i pull this up and as promised it already has a name for the stack it already has a lease end date these are things that it's already filled in i can pick a user group this will control things like my quotas what data centers i can provision it to and then over on provision you'll see that these are all the blanks all of the parameters that came out of that template now unfortunately i'm not going to fill in all of these uh to get going but you get the idea here so that's just a couple of minutes to go from a concept of something you need in the portal to a template to a catalog item a fairly painless way so hopefully you found this to be a useful quick demo of azure and servicenow

View original source

https://www.youtube.com/watch?v=7tl51KxYA6s