Turbot Guardrails Hub 
Hub
  • Mods
  • Policy Packs
  • Docs
  • Home
ModsPolicy PacksDocsHome
Mods
Azure
Loading policies...

Policy: Azure > Synapse Analytics > SQL Pool > Tags > Template

The template is used to generate the keys and values for Azure Synapse Analytics sql pool.

Tags not defined in SQL Pool Tags Template will not be modified or deleted. Setting a tag value to undefined will result in the tag being deleted.

See Tags for more information.

Targets

This policy targets the following resource types:

  • Azure > Synapse Analytics > SQL Pool

Primary Policy

This policy is used with the following primary policy:

  • Azure > Synapse Analytics > SQL Pool > Tags

Controls

Setting this policy configures this control:

  • Azure > Synapse Analytics > SQL Pool > Tags

Policy Specification

Default template
{%- if $.defaultTags.value | length == 0 %} [] {%- elif $.defaultTags.value != undefined %}{{ $.defaultTags.value | dump | safe }}{%- else %}{% for item in $.defaultTags.value %}- {{ item }}{% endfor %}{% endif %}
Default template input
- |
{
subscription {
turbot {
id
}
}
}
- |
{
defaultTags: policyValue(uri:"tmod:@turbot/azure-synapseanalytics#/policy/types/synapseAnalyticsTagsTemplate" resourceId: "{{ $.subscription.turbot.id }}") {
value
}
}
Examples [YAML]
  • foo: bar
    environment: prod
    
  • - foo123: bar
    - environment: dev
    
  • - cost-center: zz123
    - delete-me: undefined
    

Category

  • Resource > Tags

In Your Workspace

  • Policy Settings by Type report

Developers

    Category URI
    • tmod:@turbot/turbot#/control/categories/resourceTags
  • Policy Type URI
    • tmod:@turbot/azure-synapseanalytics#/policy/types/sqlPoolTagsTemplate
  • GraphQL
    • query policyType(id: "tmod:@turbot/azure-synapseanalytics#/policy/types/sqlPoolTagsTemplate") { … }
    • query policySettings(filter: "policyTypeId:'tmod:@turbot/azure-synapseanalytics#/policy/types/sqlPoolTagsTemplate'") { … }
    • query policyValues(filter: "policyTypeId:'tmod:@turbot/azure-synapseanalytics#/policy/types/sqlPoolTagsTemplate'") { … }
  • CLI
    • Get Policy Type
    • turbot graphql policy-type --id "tmod:@turbot/azure-synapseanalytics#/policy/types/sqlPoolTagsTemplate"
    • Get Policy Settings
    • turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/azure-synapseanalytics#/policy/types/sqlPoolTagsTemplate"
Guardrails
Guardrails Hub
  • Hub
  • Docs
  • Blog
  • Changelog
Products
  • GuardrailsGuardrails
  • PipesPipes
  • SteampipeSteampipe
  • PowerpipePowerpipe
  • FlowpipeFlowpipe
  • TailpipeTailpipe
Turbot
  • Home
  • About us
  • We're hiring!
  • Contact us
Community

Our community of practitioners love to discuss cloud governance & security.

Slack logoJoin us on Slack →

System StatusLegalSecurity
Terms of UseSecurityPrivacy
50
Mods
204
Resource Types
3,575
Policies
1,941
Controls
103
Quick Actions
111
IAM