This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A cloud engineer needs to manage the long-lived state of Azure Virtual Networks, subnets, and NSGs across multiple environments, ensuring that resources are created if missing and updated when configuration drifts. Which Infrastructure as Code approach is best suited for this scenario?
Declarative IaC using Azure Bicep templates.
Imperative IaC using Azure CLI bash scripts.
A combination of both approaches written in a single file.
A cloud engineer uses GitHub Copilot to generate a Bicep template for an Azure Key Vault. The generated template has public network access enabled and includes a hardcoded subscription ID. Which prompt element was most likely missing from the original prompt?
Context: the engineer didn't specify the target environment or region.
Output format: the engineer didn't specify whether to use a full file or a snippet.
Constraints: the engineer didn't specify what Copilot should avoid.
A cloud engineer builds a Bicep template for a hub-spoke virtual network topology using GitHub Copilot. After reviewing the output, the engineer wants to add NSG rules, diagnostic settings, and parameterization with decorators. What is the recommended approach?
Write one large prompt that includes all three additions simultaneously.
Start a new Copilot Chat session for each addition.
Use iterative refinement by submitting separate follow-up prompts for each addition and validating the output at each step.
A DevOps team has Azure CLI bash scripts that need to run on Windows Server hosts managed by an IT operations team that uses PowerShell. What is the most effective way to use GitHub Copilot for this conversion?
Run the bash scripts through Windows Subsystem for Linux on the Windows hosts.
Use the translation pattern prompt and ask Copilot to translate the CLI script to PowerShell, preserving all logic and not adding extra features.
Manually rewrite each script using PowerShell cmdlet documentation, then ask Copilot to review the result.
A cloud engineer wants GitHub Copilot to review a completed Bicep template and identify security risks, missing properties, and deprecated API versions, while adopting the perspective of a senior security engineer. Which prompting technique should the engineer use?
Zero-shot prompting: ask Copilot to generate a new secure version of the template.
Few-shot prompting: provide an example of a correctly reviewed template before asking Copilot to review the new one.
Role-based prompting: instruct Copilot to act as a senior Azure security engineer before reviewing the template.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?