Skip to content

Commit ec7af47

Browse files
authored
Adjust - add Copilot instructions
1 parent ad4a72d commit ec7af47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+26
-462
lines changed

.devcontainer/devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
// Defines VS Code settings to be applied within the dev container.
3838
"settings": {
3939
"editor.formatOnSaveMode": "file", // Configures format on save to be applied to the entire file.
40-
"bicep.experimental.deployPane": "true" // Enables the experimental deploy pane for Bicep.
40+
"bicep.experimental.deployPane": "true", // Enables the experimental deploy pane for Bicep.
41+
"github.copilot.chat.codeGeneration.useInstructionFiles": "true"
4142
},
4243
// Lists VS Code extensions to be installed in the dev container environment.
4344
"extensions": [

.dockerignore

-25
This file was deleted.

.github/copilot-instructions.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
Provide comprehensive guidance and best practices for developing reusable and reliable Infrastructure as Code using Bicep, Terraform, and PowerShell, prioritizing the Azure Well-Architected Framework pillars in this order: Security, Operational Excellence, Performance Efficiency, Reliability, and Cost Optimization. The code must be executable in both CI/CD pipelines (GitHub Actions or Azure DevOps Pipelines) and as standalone solutions for local testing. Emphasize reusability through modularization and ensure that the code supports multiple environment setups (dev, staging, production) with minimal added complexity.
2+
3+
Incorporate preferred safe deployment practices, including effective management of feature flags, and provide recommendations for when and how to use them effectively. Feature flags should be removable without impacting already deployed resources if the feature is later integrated into the main system, with clear warnings if any changes will affect the solution. Advocate for ring-based deployments and consistency in coding standards, prioritizing quality over quantity and making smaller changes instead of larger ones where practical.
4+
5+
Follow DRY principles, include thorough comments, and structure variables in snake_case at the top of each file, while parameters should be in camelCase with validation and error messages as necessary. Avoid third-party dependencies where possible, especially when using feature flags and other core deployment features.
6+
7+
Include recommendations for key performance indicators (KPIs) to measure the effectiveness of deployments, focusing on metrics like deployment frequency, change failure rate, mean time to recovery, and customer satisfaction. Ensure that the code is clear and understandable for reviewers unfamiliar with the project, aligning recommendations with Microsoft guidance on secure and reliable DevOps integration.
8+
9+
Highlight how Janus (GitHub Copilot) can assist by providing real-time suggestions and best-practice enforcement while also identifying and proposing native solutions within Bicep, Terraform, or PowerShell to replace third-party dependencies.
10+
11+
Additionally, provide guidance on:
12+
13+
Infrastructure testing and validation techniques.
14+
Documentation best practices.
15+
Error handling and logging mechanisms.
16+
Version control strategies.
17+
Configuration management approaches.
18+
Security best practices tailored for Azure.
19+
Cost management strategies for Azure resources.
20+
Establishing a change management process for IaC updates.
21+
Integrating monitoring and alerting for deployed resources.
22+
Engaging with the Azure community for ongoing learning and best practices.
23+
24+
Review the response from the perspectives of a Site Reliability Engineer, Operations Manager, Microsoft Technical Specialist, Security Consultant, and Business Analyst, confirming factual accuracy and seeking clarification where needed.

AZ2003App/AZ2003App.csproj

-9
This file was deleted.

AZ2003App/Dockerfile

-24
This file was deleted.

AZ2003App/Program.cs

-6
This file was deleted.

AZ2003App/Properties/launchSettings.json

-38
This file was deleted.

AZ2003App/appsettings.Development.json

-8
This file was deleted.

AZ2003App/appsettings.json

-9
This file was deleted.

AZ2003App/bin/Debug/net8.0/AZ2003App

-70.8 KB
Binary file not shown.

AZ2003App/bin/Debug/net8.0/AZ2003App.deps.json

-23
This file was deleted.
-5 KB
Binary file not shown.
-20.1 KB
Binary file not shown.

AZ2003App/bin/Debug/net8.0/AZ2003App.runtimeconfig.json

-19
This file was deleted.

AZ2003App/bin/Debug/net8.0/appsettings.Development.json

-8
This file was deleted.

AZ2003App/bin/Debug/net8.0/appsettings.json

-9
This file was deleted.

AZ2003App/obj/AZ2003App.csproj.nuget.dgspec.json

-69
This file was deleted.

AZ2003App/obj/AZ2003App.csproj.nuget.g.props

-15
This file was deleted.

AZ2003App/obj/AZ2003App.csproj.nuget.g.targets

-2
This file was deleted.

AZ2003App/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs

-4
This file was deleted.

AZ2003App/obj/Debug/net8.0/AZ2003App.AssemblyInfo.cs

-22
This file was deleted.

AZ2003App/obj/Debug/net8.0/AZ2003App.AssemblyInfoInputs.cache

-1
This file was deleted.

AZ2003App/obj/Debug/net8.0/AZ2003App.GeneratedMSBuildEditorConfig.editorconfig

-19
This file was deleted.

AZ2003App/obj/Debug/net8.0/AZ2003App.GlobalUsings.g.cs

-17
This file was deleted.

AZ2003App/obj/Debug/net8.0/AZ2003App.MvcApplicationPartsAssemblyInfo.cache

Whitespace-only changes.
-153 Bytes
Binary file not shown.

AZ2003App/obj/Debug/net8.0/AZ2003App.csproj.CoreCompileInputs.cache

-1
This file was deleted.

0 commit comments

Comments
 (0)