https://pulumi.com logo
Title
a

adventurous-camera-87788

05/19/2021, 9:25 PM
Hey guys, we recently started implementing Pulumi as IaC for our organization. I was creating Aure cache for redis using
azure-native
module & couldn't find a way to specify that I want redis version 6.0.3 and by default it creates redis version 4.0.14. Can someone please help?
w

witty-candle-66007

05/19/2021, 9:54 PM
It appears that 6.0 support is in preview (https://docs.microsoft.com/en-us/azure/azure-cache-for-redis/cache-overview#redis-versions) And, the ARM API (as described by the latest version of the ARM Template: https://docs.microsoft.com/en-us/azure/templates/microsoft.cache/redis?tabs=json) ) doesn't support a redis version property yet. So unfortunately, the azure-native provider which is based on the ARM API doesn't support it yet.
a

adventurous-camera-87788

05/19/2021, 9:59 PM
oh ok so for that reason I can't create a 6.0 version redis. Can I create that version for redis preview tho?
w

witty-candle-66007

05/19/2021, 10:37 PM
Not through the provider at this time since it doesn’t appear ARM preview even supports it yet.
That said I’ll check with engineering to see if I’m missing something
t

tall-librarian-49374

05/20/2021, 6:00 AM
I believe it is supported: set the
redisVersion
property to
6
: https://www.pulumi.com/docs/reference/pkg/azure-native/cache/redis/#redisversion_nodejs
Correction: you need to import the version v20201201 explicitly to make use of this property
💯 1
e.g.
import * as cache from '@pulumi/azure-native/cache/v20201201
a

adventurous-camera-87788

05/20/2021, 7:14 PM
thank you so much, I'll try this out & keep you guys updated 🙂
it returns an error:
Error: Cannot find module '@pulumi/azure-native/cache/v20201201'
.
Here's my import statement:
const cache = require("@pulumi/azure-native/cache/v20201201");
and here's my implementation:
@tall-librarian-49374
t

tall-librarian-49374

05/21/2021, 5:55 AM
a

adventurous-camera-87788

05/21/2021, 1:10 PM
my pulumi version is 3.2.1
I even tried with
v20200601
.but no luck 😞
t

tall-librarian-49374

05/21/2021, 2:40 PM
I mean the provider version
a

adventurous-camera-87788

05/24/2021, 4:28 PM
not sure. please let me know if you can provide a sample code for this. we would like to have redis version 6 for our project.
t

tall-librarian-49374

05/24/2021, 5:49 PM
the provider version
you can look this up by looking at which version of
@pulumi/azure-native
is used in your NPM lock file
a

adventurous-camera-87788

05/24/2021, 6:30 PM
looks like its 1.5.0