Skip to content

For maintaining azure resource lock configuration and automation

Notifications You must be signed in to change notification settings

zc-hmcts/azure-resource-locks

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure-Resource-Locks

For maintaining Azure resource lock configuration and automation

These are used to protect from automation gone wrong against resources that have persistent data that we really don't want accidentally deleted.

Resource types

Currently the resource locks are applied to resource groups which have the following resource types:

  • Storage
  • Key Vault
  • SQL Databases
  • APP Insights
  • Static IPs
  • Azure Firewall
  • SaaS Resources
  • Virtual Wan
  • CosmosDB
  • Frontdoor
  • App Gateways
  • Private DNS Zones

The list could be extended by adding || contains(type, '<<resource type>>')) to the JSONPATH in the enable-resource-locking.sh

Pipeline jobs

  • Enable-resource-locks

    Scheduled to run every 3 hours for the environments below

    • CNP-DEV
    • CNP-Prod
    • SDS-STG
    • SDS-PROD
    • HUB-PROD
    • HUB-NONPROD
    • DCD-CFT-PROD
  • Disable-resource-locks

    • Select the subscription and resource group(s) to run against from the job parameters

About

For maintaining azure resource lock configuration and automation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%