From the course: Azure for DevOps: Application Infrastructure

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Demo for security

Demo for security

- [Instructor] We're going to create a secret for our template. So let's head over to our key vault instance. We can select from the homepage or just search for it. Now I'm going to go into the instance. As we had said, I wanted to create a secret. Under settings, I'm going to select secrets. Let's generate a new one. Okay, I'm going to call it "Sample Password". And the value's going to be demo password. Content type is just a string, so it's useful to understand the type of secret that you're creating. I'm going to set it to password. Now we have the option to set activation and expiration dates, but for this example, we don't need those. So, I'm going to leave those out. Let's hit create, and there you go. We have it. Now that that's complete, let's head over to VS code. We're using ARM templates to get the password from our key vault and output its value as you can see. Now, the primary item that we want to focus on…

Contents