Let’s Get Certified
Module 12 / 16 · Configure and manage automation of tasks

Make database deployments repeatable

Choose a deployment interface and use operation-level evidence to troubleshoot failures.

Make database deployments repeatable

Work through the decision

A Bicep deployment creates a logical SQL server and then fails on the database tier because of a regional constraint. A second run starts with a server already present. How should the release handle partial success?

Check your reasoning

Read deployment operations to identify the failed resource and provider message. Confirm the selected region, quota and allowed SKU. Correct the parameter and redeploy the intended state. Check the actual server and database rather than treating a failed deployment as an automatic rollback.

Watch the source lesson at 2:32:03

Compare the choices

ARM or Bicep template
Describe Azure resources, dependencies and parameterized desired state. Review changes and validate deployment scope.
Azure PowerShell
Use the Az modules in an authenticated, scoped context and verify the resulting resource properties.
Azure CLI
Use authorized az commands with explicit target context and checked exit codes. Verify the resulting state.
Deployment operations
Inspect resource-level failures, provider messages and correlation identifiers to distinguish invalid input from policy, permission or quota.

Test the decision

PowerShell and CLI automation need an explicit subscription and identity. Use an end-state check and make procedural steps safe to rerun. Keep credentials outside the template and its output.

Practice the guide skills

  1. Provision consistent SQL servers and databases in two environments. Watch 2:32:03 · Continue at 2:32:46
    Check your answer

    Parameterize ARM or Bicep resources, specify dependencies and validate the planned changes against the target subscription.

  2. An approved runbook needs Azure PowerShell. Watch 2:34:00
    Check your answer

    Use a scoped identity, set the intended context and apply the relevant Az cmdlets with explicit resource names. Verify resource state after completion.

  3. A release uses Azure CLI from an automation runner. Watch 2:34:46
    Check your answer

    Authenticate the workload identity, set the subscription, use explicit parameters and handle nonzero status. Read back the database configuration to check success.

  4. A deployment reports a generic template failure. Watch 2:36:15
    Check your answer

    Open the deployment operations for the failed resource, inspect the nested provider error and correlation ID, and distinguish quota, policy, permissions and invalid parameters.

Official objectives for this lesson

Related lesson · Read and preview a Bicep deployment

Knowledge check

Make database deployments repeatable quiz

Answer 3 questions. Check each answer for an explanation.