@@ -104,6 +104,17 @@ public RedisResource()
104
104
/// Default value is false.
105
105
/// </param>
106
106
107
+ /// <param name="zonalAllocationPolicy">Optional: Specifies how availability zones are allocated to the Redis
108
+ /// cache. 'Automatic' enables zone redundancy and Azure will automatically
109
+ /// select zones based on regional availability and capacity. 'UserDefined'
110
+ /// will select availability zones passed in by you using the 'zones'
111
+ /// parameter. 'NoZones' will produce a non-zonal cache. If
112
+ /// 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when
113
+ /// zones are passed in, otherwise, it will be set to 'Automatic' in regions
114
+ /// where zones are supported and 'NoZones' in regions where zones are not
115
+ /// supported.
116
+ /// Possible values include: 'Automatic', 'UserDefined', 'NoZones'</param>
117
+
107
118
/// <param name="subnetId">The full resource ID of a subnet in a virtual network to deploy the Redis
108
119
/// cache in. Example format:
109
120
/// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Microsoft.{Network|ClassicNetwork}/VirtualNetworks/vnet1/subnets/subnet1
@@ -135,7 +146,7 @@ public RedisResource()
135
146
/// <param name="privateEndpointConnections">List of private endpoint connection associated with the specified redis
136
147
/// cache
137
148
/// </param>
138
- public RedisResource ( string location , Sku sku , string id = default ( string ) , string name = default ( string ) , string type = default ( string ) , System . Collections . Generic . IDictionary < string , string > tags = default ( System . Collections . Generic . IDictionary < string , string > ) , System . Collections . Generic . IList < string > zones = default ( System . Collections . Generic . IList < string > ) , ManagedServiceIdentity identity = default ( ManagedServiceIdentity ) , string updateChannel = default ( string ) , string provisioningState = default ( string ) , RedisCommonPropertiesRedisConfiguration redisConfiguration = default ( RedisCommonPropertiesRedisConfiguration ) , string redisVersion = default ( string ) , bool ? enableNonSslPort = default ( bool ? ) , int ? replicasPerMaster = default ( int ? ) , int ? replicasPerPrimary = default ( int ? ) , System . Collections . Generic . IDictionary < string , string > tenantSettings = default ( System . Collections . Generic . IDictionary < string , string > ) , int ? shardCount = default ( int ? ) , string minimumTlsVersion = default ( string ) , string publicNetworkAccess = default ( string ) , bool ? disableAccessKeyAuthentication = default ( bool ? ) , string subnetId = default ( string ) , string staticIP = default ( string ) , string hostName = default ( string ) , int ? port = default ( int ? ) , int ? sslPort = default ( int ? ) , RedisAccessKeys accessKeys = default ( RedisAccessKeys ) , System . Collections . Generic . IList < RedisLinkedServer > linkedServers = default ( System . Collections . Generic . IList < RedisLinkedServer > ) , System . Collections . Generic . IList < RedisInstanceDetails > instances = default ( System . Collections . Generic . IList < RedisInstanceDetails > ) , System . Collections . Generic . IList < PrivateEndpointConnection > privateEndpointConnections = default ( System . Collections . Generic . IList < PrivateEndpointConnection > ) )
149
+ public RedisResource ( string location , Sku sku , string id = default ( string ) , string name = default ( string ) , string type = default ( string ) , System . Collections . Generic . IDictionary < string , string > tags = default ( System . Collections . Generic . IDictionary < string , string > ) , System . Collections . Generic . IList < string > zones = default ( System . Collections . Generic . IList < string > ) , ManagedServiceIdentity identity = default ( ManagedServiceIdentity ) , string updateChannel = default ( string ) , string provisioningState = default ( string ) , RedisCommonPropertiesRedisConfiguration redisConfiguration = default ( RedisCommonPropertiesRedisConfiguration ) , string redisVersion = default ( string ) , bool ? enableNonSslPort = default ( bool ? ) , int ? replicasPerMaster = default ( int ? ) , int ? replicasPerPrimary = default ( int ? ) , System . Collections . Generic . IDictionary < string , string > tenantSettings = default ( System . Collections . Generic . IDictionary < string , string > ) , int ? shardCount = default ( int ? ) , string minimumTlsVersion = default ( string ) , string publicNetworkAccess = default ( string ) , bool ? disableAccessKeyAuthentication = default ( bool ? ) , string zonalAllocationPolicy = default ( string ) , string subnetId = default ( string ) , string staticIP = default ( string ) , string hostName = default ( string ) , int ? port = default ( int ? ) , int ? sslPort = default ( int ? ) , RedisAccessKeys accessKeys = default ( RedisAccessKeys ) , System . Collections . Generic . IList < RedisLinkedServer > linkedServers = default ( System . Collections . Generic . IList < RedisLinkedServer > ) , System . Collections . Generic . IList < RedisInstanceDetails > instances = default ( System . Collections . Generic . IList < RedisInstanceDetails > ) , System . Collections . Generic . IList < PrivateEndpointConnection > privateEndpointConnections = default ( System . Collections . Generic . IList < PrivateEndpointConnection > ) )
139
150
140
151
: base ( location , id , name , type , tags )
141
152
{
@@ -154,6 +165,7 @@ public RedisResource()
154
165
this . MinimumTlsVersion = minimumTlsVersion ;
155
166
this . PublicNetworkAccess = publicNetworkAccess ;
156
167
this . DisableAccessKeyAuthentication = disableAccessKeyAuthentication ;
168
+ this . ZonalAllocationPolicy = zonalAllocationPolicy ;
157
169
this . SubnetId = subnetId ;
158
170
this . StaticIP = staticIP ;
159
171
this . HostName = hostName ;
@@ -278,6 +290,20 @@ public RedisResource()
278
290
[ Newtonsoft . Json . JsonProperty ( PropertyName = "properties.disableAccessKeyAuthentication" ) ]
279
291
public bool ? DisableAccessKeyAuthentication { get ; set ; }
280
292
293
+ /// <summary>
294
+ /// Gets or sets optional: Specifies how availability zones are allocated to
295
+ /// the Redis cache. 'Automatic' enables zone redundancy and Azure will
296
+ /// automatically select zones based on regional availability and capacity.
297
+ /// 'UserDefined' will select availability zones passed in by you using the
298
+ /// 'zones' parameter. 'NoZones' will produce a non-zonal cache. If
299
+ /// 'zonalAllocationPolicy' is not passed, it will be set to 'UserDefined' when
300
+ /// zones are passed in, otherwise, it will be set to 'Automatic' in regions
301
+ /// where zones are supported and 'NoZones' in regions where zones are not
302
+ /// supported. Possible values include: 'Automatic', 'UserDefined', 'NoZones'
303
+ /// </summary>
304
+ [ Newtonsoft . Json . JsonProperty ( PropertyName = "properties.zonalAllocationPolicy" ) ]
305
+ public string ZonalAllocationPolicy { get ; set ; }
306
+
281
307
/// <summary>
282
308
/// Gets or sets the full resource ID of a subnet in a virtual network to
283
309
/// deploy the Redis cache in. Example format:
@@ -366,6 +392,7 @@ public override void Validate()
366
392
367
393
368
394
395
+
369
396
if ( this . SubnetId != null )
370
397
{
371
398
if ( ! System . Text . RegularExpressions . Regex . IsMatch ( this . SubnetId , "^/subscriptions/[^/]*/resourceGroups/[^/]*/providers/Microsoft.(ClassicNetwork|Network)/virtualNetworks/[^/]*/subnets/[^/]*$" ) )
0 commit comments