ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 339 - AZ-400 discussion

Report
Export

You have an Azure subscription that contains 50 virtual machines

You plan to manage the configuration of the virtual machines by using Azure Automation State Configuration. You need to create the Desired State Configuration (DSO configuration files.

How should structure the code blocks?

A.
Node>Configuration>Resource
Answers
A.
Node>Configuration>Resource
B.
Configuration>Node> Resource
Answers
B.
Configuration>Node> Resource
C.
Configuration>ReSource>Node
Answers
C.
Configuration>ReSource>Node
D.
Resource>Configuration>Node
Answers
D.
Resource>Configuration>Node
Suggested answer: B

Explanation:

In Azure Automation State Configuration, the Desired State Configuration (DSC) configuration files are used to define the desired state of resources on a system. The structure of the code blocks in a DSC configuration file should be organized in a logical and meaningful way.One way to structure the code blocks is as follows: Configuration: This block defines the overall configuration, including any parameters that are used in the configuration.Node: This block defines the target node(s) for the configuration, typically specified by the hostname or IP address of the target system.Resource: This block defines the resources that are managed by the configuration, including the resource type, module, and properties. "A configuration script consists of the following parts: The Configuration block. This is the outermost script block. You define it by using the Configuration keyword and providing a name. In this case, the name of the configuration is MyDscConfiguration.One or more Node blocks. These define the nodes (computers or VMs) that you are configuring. In the above configuration, there is one Node block that targets a computer named TEST-PC1. The Node block can accept multiple computer names.One or more resource blocks. This is where the configuration sets the properties for the resources that it is configuring. In this case, there are two resource blocks, each of which call the WindowsFeature resource."https://docs.microsoft.com/en-us/powershell/dsc/configurations/configurations?view=dsc- 1.1#configuration-syntax

asked 02/10/2024
Muzammil Mirza
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first