`az keyvault secret set` fails with `(Forbidden) ... Caller is not authorized ... ForbiddenByRbac` for the engineer who just created the vault with Terraform.
BeginnerTroubleshootingStorage, Key Vault, Monitoring and Pipeline Errors
Answer
Likely causes → Creating the vault (control plane) gives no data-plane rights on an RBAC vault; the engineer needs a Key Vault data role.
Diagnose → az role assignment list --assignee $(az ad signed-in-user show --query id -o tsv) --scope <kvId>
Fix →
az role assignment create --role "Key Vault Secrets Officer" \
--assignee $(az ad signed-in-user show --query id -o tsv) --scope <kvId>
Wait a few minutes, then retry.
Prevent → Terraform grants Key Vault Secrets Officer to data.azurerm_client_config.current.object_id when it creates the vault.
More on Storage, Key Vault, Monitoring and Pipeline Errors
`AuthorizationPermissionMismatch: This request is not authorized to perform this operation using this permission.` reading blobs with `--auth-mode login`.BeginnerA SAS URL returns `AuthenticationFailed: Server failed to authenticate the request ... Signature not valid in the specified time frame`.Beginner`PublicAccessNotPermitted: Public access is not permitted on this storage account.` when setting a container to public.Beginner`KeyBasedAuthenticationNotPermitted: Key based authentication is not permitted on this storage account.` in an older tool.IntermediateApplication Insights shows no telemetry after deploying an app.BeginnerA log search alert didn't fire during an incident even though the errors are visible in logs now.Intermediate