exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 12 question 3 discussion

Actual exam question from Microsoft's AZ-400
Question #: 3
Topic #: 12
[All AZ-400 Questions]

DRAG DROP -
You need to configure Azure Automation for the computers in Pool7.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Step 1: Create a Desired State Configuration (DSC) configuration file that has an extension of .ps1.
Step 2: Run the Import-AzureRmAutomationDscConfiguration Azure Powershell cmdlet
The Import-AzureRmAutomationDscConfiguration cmdlet imports an APS Desired State Configuration (DSC) configuration into Azure Automation. Specify the path of an APS script that contains a single DSC configuration.
Example:
PS C:\>Import-AzureRmAutomationDscConfiguration -AutomationAccountName "Contoso17"-ResourceGroupName "ResourceGroup01" -SourcePath "C:\DSC
\client.ps1" -Force
This command imports the DSC configuration in the file named client.ps1 into the Automation account named Contoso17. The command specifies the Force parameter. If there is an existing DSC configuration, this command replaces it.
Step 3: Run the Start-AzureRmAutomationDscCompilationJob Azure Powershell cmdlet
The Start-AzureRmAutomationDscCompilationJob cmdlet compiles an APS Desired State Configuration (DSC) configuration in Azure Automation.
Reference:
https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/import-azurermautomationdscconfiguration https://docs.microsoft.com/en-us/powershell/module/azurerm.automation/start-azurermautomationdsccompilationjob

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hikhatri
Highly Voted 3 years, 11 months ago
Given answer is correct
upvoted 18 times
...
zellck
Highly Voted 2 years, 1 month ago
1. Create DSC config file with ext of .ps1 2. Run Import-AzureRmAutomationDscConfiguration Azure PS cmdlet 3. Run Start-AzureRmAutomationDscCompliationJob Azure PS cmdlet https://learn.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state Azure Automation State Configuration allows you to specify configurations for your servers and ensure that those servers are in the specified state over time. - Onboard a VM to be managed by Azure Automation DSC - Upload a configuration to Azure Automation - Compile a configuration into a node configuration - Assign a node configuration to a managed node - Check the compliance status of a managed node
upvoted 8 times
zellck
2 years, 1 month ago
https://learn.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state#compile-a-configuration-into-a-node-configuration A DSC configuration must be compiled into a node configuration before it can be assigned to a node. See DSC configurations. Call the Start-AzAutomationDscCompilationJob cmdlet to compile the TestConfig configuration into a node configuration named TestConfig.WebServer in your Automation account.
upvoted 3 times
...
zellck
2 years, 1 month ago
https://learn.microsoft.com/en-us/azure/automation/tutorial-configure-servers-desired-state#create-and-upload-a-configuration-to-azure-automation - In a text editor, type the following and save it locally as TestConfig.ps1. Call the Import-AzAutomationDscConfiguration cmdlet to upload the configuration into your Automation account.
upvoted 3 times
...
...
Gooldmember
Most Recent 8 months ago
Correct answer
upvoted 1 times
...
vsvaid
1 year, 6 months ago
Correct answer
upvoted 1 times
...
Firdous586
1 year, 8 months ago
Correct answer given
upvoted 1 times
...
syu31svc
2 years, 11 months ago
https://docs.microsoft.com/en-us/azure/automation/automation-dsc-getting-started Given answer is correct
upvoted 5 times
...
Eltooth
3 years, 1 month ago
Create DSC .ps1 Run Import Run Start
upvoted 4 times
...
rdemontis
3 years, 3 months ago
correct answer
upvoted 1 times
...
Sara_Mo
3 years, 5 months ago
Given answer is correct
upvoted 1 times
...
AlMargoi
3 years, 7 months ago
Seems correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...