Cache Access Policy
Manages a Redis Cache Access Policy
Example Usage
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: East US
exampleCache:
type: azure:redis:Cache
name: example
properties:
name: example
location: ${example.location}
resourceGroupName: ${example.name}
capacity: 1
family: P
skuName: Premium
enableNonSslPort: false
redisConfiguration:
maxmemoryReserved: 2
maxmemoryDelta: 2
maxmemoryPolicy: allkeys-lru
exampleCacheAccessPolicy:
type: azure:redis:CacheAccessPolicy
name: example
properties:
name: example
redisCacheId: ${exampleCache.id}
permissions: +@read +@connection +cluster|info
Content copied to clipboard
Import
Redis Cache Access Policy can be imported using the resource id
, e.g.
$ pulumi import azure:redis/cacheAccessPolicy:CacheAccessPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Cache/redis/cache1/accessPolicies/policy1
Content copied to clipboard