azure-batch-sync-autostorage-keys

derived azure emits CanReadSecret

match (effective permission)

{ "action": "Microsoft.Batch/batchAccounts/syncAutoStorageKeys/action", "scope_type": "resource|resourceGroup|subscription" }

emit

source<principal>
target<linked auto-storage account>
permissionsMicrosoft.Batch/batchAccounts/syncAutoStorageKeys/action

Narrative

{principal.name} can sync the auto-storage keys of Batch account (syncAutoStorageKeys/action), reaching the linked storage account.

Raw rule rules/derived/azure/batch.yaml

id: azure-batch-sync-autostorage-keys
emits: CanReadSecret
match_effective_permission:
  action: Microsoft.Batch/batchAccounts/syncAutoStorageKeys/action
  scope_type: resource|resourceGroup|subscription
emit:
  source: <principal>
  target: <linked auto-storage account>
  permissions:
  - Microsoft.Batch/batchAccounts/syncAutoStorageKeys/action
  note: Syncs the linked storage account keys into Batch; gives access to the auto-storage account backing
    resource files / application packages.
  false_positive_note: Only meaningful if the account has an auto-storage account configured; otherwise
    do not emit.
  narrative: '{principal.name} can sync the auto-storage keys of Batch account (syncAutoStorageKeys/action),
    reaching the linked storage account.'
move · open · esc close