BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Microsoft AZ-400 Exam - Topic 3 Question 117 Discussion

Posted by Amos on Mar 08, 2025 at 05:09 PM

SIMULATION

Task 7

Initialize the default main branch, if it does not exist already

In the User 1-42147509 organization, you need to install the Microsoft Security DevOps extension.

Next, create a new starter pipeline named starter1 that will use the following starter code.

Ensure that starter! includes a task that executes the extension and uses the following input*:

* Command: run

* Policy aruredevops

* Publish: true

Save the pipeline to a new branch named starter

Suggested Answer: A

Step 1: Initialize the Default Main Branch

Navigate to Azure DevOps:

Go toAzure DevOpsand sign in with your credentials.

Select Your Project:

ChooseProject1from your list of projects.

Initialize the Main Branch:

Go toRepos>Files.

If the main branch does not exist, you will see an option to initialize it.Click onInitializeand follow the prompts to create the main branch1.

Step 2: Install the Microsoft Security DevOps Extension

Navigate to Extensions:

In Azure DevOps, click on theShopping Bagicon in the top right corner and selectBrowse Marketplace.

Search for the Extension:

Search forMicrosoft Security DevOps.

Install the Extension:

Click onGet it free.

Select your organization (User1-42147509) and clickInstall.

Follow the prompts to complete the installation2.

Step 3: Create a New Starter Pipeline

Navigate to Pipelines:

Go toPipelines>New pipeline.

Select the Repository:

ChooseAzure Repos Gitand select the relevant repository.

Configure the Pipeline:

SelectStarter pipelineand replace the default YAML with the following starter code:

trigger:

- starter

pool:

vmImage: 'windows-latest'

steps:

- task: MicrosoftSecurityDevOps@1

inputs:

command: 'run'

policy: 'azuredevops'

publish: true

Save the Pipeline:

Click onSaveand enterstarteras the branch name.

Click onSave and runto save the pipeline to the new branch namedstarter3.

By following these steps, you will have successfully initialized the main branch, installed the Microsoft Security DevOps extension, and created a new starter pipeline namedstarter1that includes the specified task


Get Premium AZ-400 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
29 comments · newest first
WI
Willard 12 months ago
I thought the branch name had to be different, not just "starter".
SH
Shawnta 12 months ago
Yup, the command should be set to "run" for the task.
EM
Emilio 1 year ago
Wait, does the extension really need to be installed first? Seems odd.
LI
Lizbeth 1 year ago
Totally agree, that's a crucial step!
TE
Teri 1 year ago
Just a heads up, make sure the main branch is initialized first!
FA
Fatima 1 year ago
I think I recall something about the Microsoft Security DevOps extension, but I’m not clear on how to execute it within the pipeline.
MI
Ming 1 year ago
I feel a bit confused about the exact syntax for the starter pipeline. Did we cover how to save it to a new branch?
LE
Leonida 1 year ago
This question seems similar to one we did in class about setting up pipelines. I think I need to focus on the command and policy inputs.
DA
Dahlia 1 year ago
I remember we practiced initializing branches, but I'm not entirely sure how to check if the main branch exists first.
RO
Roslyn 1 year ago
Wait, I'm a bit confused about the starter code provided in the image. I'll need to carefully review that and make sure I'm implementing it properly in the pipeline.
FL
Florinda 1 year ago
Alright, I think I've got a handle on this. I'll save the pipeline to a new branch named 'starter' once I've got everything set up correctly.
DU
Dusti 1 year ago
Hmm, this looks like a tricky one. I'll need to create a new starter pipeline named 'starter1' and make sure it includes the required task to execute the extension with the specified inputs.
AL
Aleta 1 year ago
Okay, let's break this down step-by-step. First, I need to check if the default main branch exists, and if not, initialize it. Then I'll install the Microsoft Security DevOps extension in the User 1-42147509 organization.
RI
Rickie 2 years ago
Hold up, 'starter!' with an exclamation mark? Bet that's a typo, better double-check that.
AN
Annice 2 years ago
↳ replying to Rickie
User 4: Good catch, thanks for pointing it out.
HI
Hillary 2 years ago
↳ replying to Rickie
User 3: Let's correct that before saving the pipeline.
RU
Ruby 2 years ago
↳ replying to Rickie
User 2: Yeah, I saw that too. It should be 'starter1' without the exclamation mark.
FA
Fatima 2 years ago
↳ replying to Rickie
User 1: Hey, did you notice the typo in the task name 'starter!'?
CO
Colton 2 years ago
Haha, 'starter1' - they really want to keep us on our toes with these naming conventions!
TA
Tawna 2 years ago
That's a good point, let's make sure we understand it before proceeding.
LE
Lezlie 2 years ago
Hmm, the image in the question is important. Gotta make sure I set that up correctly in the pipeline.
EU
Eun 2 years ago
We can refer to the example code given to understand the input parameters.
HY
Hyman 2 years ago
Looks straightforward, just need to create the starter pipeline with the specified input. Shouldn't be too hard.
GI
Giuseppe 2 years ago
↳ replying to Hyman
User 3: Don't forget to include the task that executes the extension with the specified input.
LE
Leontine 2 years ago
↳ replying to Hyman
User 2: Then we can create the starter pipeline named starter1 with the given starter code.
MA
Madelyn 2 years ago
↳ replying to Hyman
User 1: I will install the Microsoft Security DevOps extension first.
BE
Becky 2 years ago
I'm not sure about the input parameters for the task though.
TA
Tawna 2 years ago
I agree, it seems like we just need to follow the steps provided.
EU
Eun 2 years ago
I think this task is straightforward.
0/2000 characters

Save Cancel