Skip to content

Commit 597b8f7

Browse files
committed
Merge pull request #594 from SiddharthChatrolaMs/dev
RedisCahe: Update NuGet dependency on management API
2 parents b1b4cd7 + 782af4d commit 597b8f7

File tree

10 files changed

+283
-13
lines changed

10 files changed

+283
-13
lines changed

ChangeLog.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
2015.07.16 version 0.9.5
2+
* Azure RedisCache cmdlets
3+
* Set-AzureRedisCache - Bug fix done in management API that fixes bug here as well
24
* Azure Network Resource Provider cmdlets
35
* Added Application Gateway cmdlets
46
* New-AzureApplicationGateway

src/ResourceManager/RedisCache/Commands.RedisCache.Test/Commands.RedisCache.Test.csproj

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,9 @@
5656
<Reference Include="Microsoft.Azure.Common.NetFramework">
5757
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
5858
</Reference>
59-
<Reference Include="Microsoft.Azure.Management.Redis, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
60-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Redis.1.0.0-preview\lib\net40\Microsoft.Azure.Management.Redis.dll</HintPath>
59+
<Reference Include="Microsoft.Azure.Management.Redis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
60+
<SpecificVersion>False</SpecificVersion>
61+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Redis.1.0.1-preview\lib\net40\Microsoft.Azure.Management.Redis.dll</HintPath>
6162
</Reference>
6263
<Reference Include="Microsoft.Azure.ResourceManager">
6364
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.1-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
@@ -162,13 +163,16 @@
162163
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
163164
</None>
164165
<None Include="SessionRecords\Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests.RedisCacheTests\TestRedisCache.json">
165-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
166+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
166167
</None>
167168
<None Include="SessionRecords\Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests.RedisCacheTests\TestRedisCachePipeline.json">
168-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
169+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
169170
</None>
170171
<None Include="SessionRecords\Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests.RedisCacheTests\TestSetNonExistingRedisCacheTest.json">
171-
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
172+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
173+
</None>
174+
<None Include="SessionRecords\Microsoft.Azure.Commands.RedisCache.Test.ScenarioTests.RedisCacheTests\TestSetRedisCacheBugFixTest.json">
175+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
172176
</None>
173177
</ItemGroup>
174178
<ItemGroup>

src/ResourceManager/RedisCache/Commands.RedisCache.Test/ScenarioTests/RedisCacheTests.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,12 @@ public void TestRedisCachePipeline()
4040
{
4141
RunPowerShellTest("Test-RedisCachePipeline");
4242
}
43+
44+
[Fact]
45+
[Trait(Category.AcceptanceType, Category.CheckIn)]
46+
public void TestSetRedisCacheBugFixTest()
47+
{
48+
RunPowerShellTest("Test-SetRedisCacheBugFixTest");
49+
}
4350
}
4451
}

src/ResourceManager/RedisCache/Commands.RedisCache.Test/ScenarioTests/RedisCacheTests.ps1

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ function Test-SetNonExistingRedisCacheTest
150150
$location = "North Central US"
151151

152152
# Creating Cache
153-
Assert-Throws {Set-AzureRedisCache -ResourceGroupName $resourceGroupName -Name $cacheName -MaxMemoryPolicy AllKeysLRU}
153+
Assert-Throws {Set-AzureRedisCache -ResourceGroupName $resourceGroupName -Name $cacheName -RedisConfiguration @{"maxmemory-policy" = "allkeys-random"} }
154154
}
155155

156156
<#
@@ -237,4 +237,25 @@ function Test-RedisCachePipeline
237237

238238
# Delete cache
239239
Assert-True {Get-AzureRedisCache -ResourceGroupName $resourceGroupName -Name $cacheName | Remove-AzureRedisCache -Force -PassThru} "Remove cache failed."
240+
}
241+
242+
<#
243+
.SYNOPSIS
244+
Tests bug fix in set redis cache.
245+
#>
246+
function Test-SetRedisCacheBugFixTest
247+
{
248+
# Setup
249+
# resource group should exists
250+
$resourceGroupName = "Siddharth"
251+
$cacheName = "siddharthchatrola"
252+
$location = "North Central US"
253+
254+
# Updating Cache
255+
$cacheUpdated = Set-AzureRedisCache -ResourceGroupName $resourceGroupName -Name $cacheName -EnableNonSslPort $true
256+
Assert-True { $cacheUpdated.EnableNonSslPort }
257+
258+
$cacheUpdated2 = Set-AzureRedisCache -ResourceGroupName $resourceGroupName -Name $cacheName -RedisConfiguration @{"maxmemory-policy" = "allkeys-lru"}
259+
Assert-AreEqual "allkeys-lru" $cacheUpdated2.RedisConfiguration.Item("maxmemory-policy")
260+
Assert-True { $cacheUpdated2.EnableNonSslPort }
240261
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,236 @@
1+
{
2+
"Entries": [
3+
{
4+
"RequestUri": "/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola?api-version=2015-03-01",
5+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDRkYjdlZDMtNmVkOS00ODYxLThiMjItN2MwYzBjOTg0OTBiL3Jlc291cmNlR3JvdXBzL1NpZGRoYXJ0aC9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL1JlZGlzL3NpZGRoYXJ0aGNoYXRyb2xhP2FwaS12ZXJzaW9uPTIwMTUtMDMtMDE=",
6+
"RequestMethod": "GET",
7+
"RequestBody": "",
8+
"RequestHeaders": {
9+
"User-Agent": [
10+
"Microsoft.Azure.Management.Redis.RedisManagementClient/1.0.0.0"
11+
]
12+
},
13+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola\",\r\n \"location\": \"North Central US\",\r\n \"name\": \"siddharthchatrola\",\r\n \"type\": \"Microsoft.Cache/Redis\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"redisVersion\": \"3.0\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"family\": \"C\",\r\n \"capacity\": 1\r\n },\r\n \"enableNonSslPort\": false,\r\n \"redisConfiguration\": {\r\n \"maxmemory-policy\": \"volatile-lru\"\r\n },\r\n \"accessKeys\": null,\r\n \"hostName\": \"siddharthchatrola.redis.cache.windows.net\",\r\n \"port\": 6379,\r\n \"sslPort\": 6380\r\n }\r\n}",
14+
"ResponseHeaders": {
15+
"Content-Length": [
16+
"535"
17+
],
18+
"Content-Type": [
19+
"application/json; charset=utf-8"
20+
],
21+
"Expires": [
22+
"-1"
23+
],
24+
"Pragma": [
25+
"no-cache"
26+
],
27+
"x-ms-request-id": [
28+
"d34afb29-3727-40f2-bd5e-1a93e08c60ea"
29+
],
30+
"x-rp-server-mvid": [
31+
"ab3b6d8f-58d8-4b26-88cf-56dfac613ddb"
32+
],
33+
"Strict-Transport-Security": [
34+
"max-age=31536000; includeSubDomains"
35+
],
36+
"x-ms-ratelimit-remaining-subscription-reads": [
37+
"14902"
38+
],
39+
"x-ms-correlation-request-id": [
40+
"dc991535-debb-470c-8fe6-4ec8e38ecefa"
41+
],
42+
"x-ms-routing-request-id": [
43+
"NORTHCENTRALUS:20150713T215524Z:dc991535-debb-470c-8fe6-4ec8e38ecefa"
44+
],
45+
"Cache-Control": [
46+
"no-cache"
47+
],
48+
"Date": [
49+
"Mon, 13 Jul 2015 21:55:23 GMT"
50+
],
51+
"Server": [
52+
"Microsoft-HTTPAPI/2.0"
53+
]
54+
},
55+
"StatusCode": 200
56+
},
57+
{
58+
"RequestUri": "/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola?api-version=2015-03-01",
59+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDRkYjdlZDMtNmVkOS00ODYxLThiMjItN2MwYzBjOTg0OTBiL3Jlc291cmNlR3JvdXBzL1NpZGRoYXJ0aC9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL1JlZGlzL3NpZGRoYXJ0aGNoYXRyb2xhP2FwaS12ZXJzaW9uPTIwMTUtMDMtMDE=",
60+
"RequestMethod": "GET",
61+
"RequestBody": "",
62+
"RequestHeaders": {
63+
"User-Agent": [
64+
"Microsoft.Azure.Management.Redis.RedisManagementClient/1.0.0.0"
65+
]
66+
},
67+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola\",\r\n \"location\": \"North Central US\",\r\n \"name\": \"siddharthchatrola\",\r\n \"type\": \"Microsoft.Cache/Redis\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"redisVersion\": \"3.0\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"family\": \"C\",\r\n \"capacity\": 1\r\n },\r\n \"enableNonSslPort\": true,\r\n \"redisConfiguration\": {},\r\n \"accessKeys\": null,\r\n \"hostName\": \"siddharthchatrola.redis.cache.windows.net\",\r\n \"port\": 6379,\r\n \"sslPort\": 6380\r\n }\r\n}",
68+
"ResponseHeaders": {
69+
"Content-Length": [
70+
"501"
71+
],
72+
"Content-Type": [
73+
"application/json; charset=utf-8"
74+
],
75+
"Expires": [
76+
"-1"
77+
],
78+
"Pragma": [
79+
"no-cache"
80+
],
81+
"x-ms-request-id": [
82+
"11090a79-684b-4dac-8dad-d686e7645e0b"
83+
],
84+
"x-rp-server-mvid": [
85+
"ab3b6d8f-58d8-4b26-88cf-56dfac613ddb"
86+
],
87+
"Strict-Transport-Security": [
88+
"max-age=31536000; includeSubDomains"
89+
],
90+
"x-ms-ratelimit-remaining-subscription-reads": [
91+
"14901"
92+
],
93+
"x-ms-correlation-request-id": [
94+
"3612d84f-91dd-4a30-a0c2-e7cd9fdf5211"
95+
],
96+
"x-ms-routing-request-id": [
97+
"NORTHCENTRALUS:20150713T215525Z:3612d84f-91dd-4a30-a0c2-e7cd9fdf5211"
98+
],
99+
"Cache-Control": [
100+
"no-cache"
101+
],
102+
"Date": [
103+
"Mon, 13 Jul 2015 21:55:25 GMT"
104+
],
105+
"Server": [
106+
"Microsoft-HTTPAPI/2.0"
107+
]
108+
},
109+
"StatusCode": 200
110+
},
111+
{
112+
"RequestUri": "/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola?api-version=2015-03-01",
113+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDRkYjdlZDMtNmVkOS00ODYxLThiMjItN2MwYzBjOTg0OTBiL3Jlc291cmNlR3JvdXBzL1NpZGRoYXJ0aC9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL1JlZGlzL3NpZGRoYXJ0aGNoYXRyb2xhP2FwaS12ZXJzaW9uPTIwMTUtMDMtMDE=",
114+
"RequestMethod": "PUT",
115+
"RequestBody": "{\r\n \"properties\": {\r\n \"redisVersion\": \"3.0\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"family\": \"C\",\r\n \"capacity\": 1\r\n },\r\n \"enableNonSslPort\": true\r\n },\r\n \"location\": \"North Central US\",\r\n \"tags\": {}\r\n}",
116+
"RequestHeaders": {
117+
"Content-Type": [
118+
"application/json"
119+
],
120+
"Content-Length": [
121+
"228"
122+
],
123+
"User-Agent": [
124+
"Microsoft.Azure.Management.Redis.RedisManagementClient/1.0.0.0"
125+
]
126+
},
127+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola\",\r\n \"location\": \"North Central US\",\r\n \"name\": \"siddharthchatrola\",\r\n \"type\": \"Microsoft.Cache/Redis\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"redisVersion\": \"3.0\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"family\": \"C\",\r\n \"capacity\": 1\r\n },\r\n \"enableNonSslPort\": true,\r\n \"redisConfiguration\": {},\r\n \"accessKeys\": {\r\n \"primaryKey\": \"82xerhg0P27QVoRKKEWb2XdLsemKyJ+Fe4BmlHhItS8=\",\r\n \"secondaryKey\": \"W9q9jLz3ICEys0a7ao7T673xQ+gxIhLZl0eBDO4YgG4=\"\r\n },\r\n \"hostName\": \"siddharthchatrola.redis.cache.windows.net\",\r\n \"port\": 6379,\r\n \"sslPort\": 6380\r\n }\r\n}",
128+
"ResponseHeaders": {
129+
"Content-Length": [
130+
"620"
131+
],
132+
"Content-Type": [
133+
"application/json; charset=utf-8"
134+
],
135+
"Expires": [
136+
"-1"
137+
],
138+
"Pragma": [
139+
"no-cache"
140+
],
141+
"x-ms-request-id": [
142+
"85dde2a3-eabd-4f95-ac46-f9fd973764e0"
143+
],
144+
"x-rp-server-mvid": [
145+
"ab3b6d8f-58d8-4b26-88cf-56dfac613ddb"
146+
],
147+
"Strict-Transport-Security": [
148+
"max-age=31536000; includeSubDomains"
149+
],
150+
"x-ms-ratelimit-remaining-subscription-writes": [
151+
"1199"
152+
],
153+
"x-ms-correlation-request-id": [
154+
"981c04ef-e83d-436a-bb27-d825eaa25bee"
155+
],
156+
"x-ms-routing-request-id": [
157+
"NORTHCENTRALUS:20150713T215525Z:981c04ef-e83d-436a-bb27-d825eaa25bee"
158+
],
159+
"Cache-Control": [
160+
"no-cache"
161+
],
162+
"Date": [
163+
"Mon, 13 Jul 2015 21:55:24 GMT"
164+
],
165+
"Server": [
166+
"Microsoft-HTTPAPI/2.0"
167+
]
168+
},
169+
"StatusCode": 200
170+
},
171+
{
172+
"RequestUri": "/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola?api-version=2015-03-01",
173+
"EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMDRkYjdlZDMtNmVkOS00ODYxLThiMjItN2MwYzBjOTg0OTBiL3Jlc291cmNlR3JvdXBzL1NpZGRoYXJ0aC9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL1JlZGlzL3NpZGRoYXJ0aGNoYXRyb2xhP2FwaS12ZXJzaW9uPTIwMTUtMDMtMDE=",
174+
"RequestMethod": "PUT",
175+
"RequestBody": "{\r\n \"properties\": {\r\n \"redisVersion\": \"3.0\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"family\": \"C\",\r\n \"capacity\": 1\r\n },\r\n \"redisConfiguration\": {\r\n \"maxmemory-policy\": \"allkeys-lru\"\r\n }\r\n },\r\n \"location\": \"North Central US\",\r\n \"tags\": {}\r\n}",
176+
"RequestHeaders": {
177+
"Content-Type": [
178+
"application/json"
179+
],
180+
"Content-Length": [
181+
"275"
182+
],
183+
"User-Agent": [
184+
"Microsoft.Azure.Management.Redis.RedisManagementClient/1.0.0.0"
185+
]
186+
},
187+
"ResponseBody": "{\r\n \"id\": \"/subscriptions/04db7ed3-6ed9-4861-8b22-7c0c0c98490b/resourceGroups/Siddharth/providers/Microsoft.Cache/Redis/siddharthchatrola\",\r\n \"location\": \"North Central US\",\r\n \"name\": \"siddharthchatrola\",\r\n \"type\": \"Microsoft.Cache/Redis\",\r\n \"tags\": {},\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"redisVersion\": \"3.0\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"family\": \"C\",\r\n \"capacity\": 1\r\n },\r\n \"enableNonSslPort\": true,\r\n \"redisConfiguration\": {\r\n \"maxmemory-policy\": \"allkeys-lru\"\r\n },\r\n \"accessKeys\": {\r\n \"primaryKey\": \"82xerhg0P27QVoRKKEWb2XdLsemKyJ+Fe4BmlHhItS8=\",\r\n \"secondaryKey\": \"W9q9jLz3ICEys0a7ao7T673xQ+gxIhLZl0eBDO4YgG4=\"\r\n },\r\n \"hostName\": \"siddharthchatrola.redis.cache.windows.net\",\r\n \"port\": 6379,\r\n \"sslPort\": 6380\r\n }\r\n}",
188+
"ResponseHeaders": {
189+
"Content-Length": [
190+
"652"
191+
],
192+
"Content-Type": [
193+
"application/json; charset=utf-8"
194+
],
195+
"Expires": [
196+
"-1"
197+
],
198+
"Pragma": [
199+
"no-cache"
200+
],
201+
"x-ms-request-id": [
202+
"eaeff665-e073-44b2-b9cc-bc49a209369c"
203+
],
204+
"x-rp-server-mvid": [
205+
"ab3b6d8f-58d8-4b26-88cf-56dfac613ddb"
206+
],
207+
"Strict-Transport-Security": [
208+
"max-age=31536000; includeSubDomains"
209+
],
210+
"x-ms-ratelimit-remaining-subscription-writes": [
211+
"1198"
212+
],
213+
"x-ms-correlation-request-id": [
214+
"cbc65150-86a3-4b48-9577-fa6f89bcf69d"
215+
],
216+
"x-ms-routing-request-id": [
217+
"NORTHCENTRALUS:20150713T215526Z:cbc65150-86a3-4b48-9577-fa6f89bcf69d"
218+
],
219+
"Cache-Control": [
220+
"no-cache"
221+
],
222+
"Date": [
223+
"Mon, 13 Jul 2015 21:55:25 GMT"
224+
],
225+
"Server": [
226+
"Microsoft-HTTPAPI/2.0"
227+
]
228+
},
229+
"StatusCode": 200
230+
}
231+
],
232+
"Names": {},
233+
"Variables": {
234+
"SubscriptionId": "04db7ed3-6ed9-4861-8b22-7c0c0c98490b"
235+
}
236+
}

src/ResourceManager/RedisCache/Commands.RedisCache.Test/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
55
<package id="Microsoft.Azure.Common.Authentication" version="1.0.27-preview" targetFramework="net45" />
66
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
7+
<package id="Microsoft.Azure.Management.Redis" version="1.0.1-preview" targetFramework="net45" />
78
<package id="Microsoft.Azure.Management.Resources" version="2.18.1-preview" targetFramework="net45" />
89
<package id="Microsoft.Azure.Test.Framework" version="1.0.5571.32271-prerelease" targetFramework="net45" />
910
<package id="Microsoft.Azure.Test.HttpRecorder" version="1.0.5571.32271-prerelease" targetFramework="net45" />
10-
<package id="Microsoft.Azure.Management.Redis" version="1.0.0-preview" targetFramework="net45" />
1111
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
1212
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
1313
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

src/ResourceManager/RedisCache/Commands.RedisCache/Commands.RedisCache.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@
5959
<Reference Include="Microsoft.Azure.Common.NetFramework">
6060
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
6161
</Reference>
62-
<Reference Include="Microsoft.Azure.Management.Redis, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
62+
<Reference Include="Microsoft.Azure.Management.Redis, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6363
<SpecificVersion>False</SpecificVersion>
64-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Redis.1.0.0-preview\lib\net40\Microsoft.Azure.Management.Redis.dll</HintPath>
64+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Redis.1.0.1-preview\lib\net40\Microsoft.Azure.Management.Redis.dll</HintPath>
6565
</Reference>
6666
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
6767
<SpecificVersion>False</SpecificVersion>

src/ResourceManager/RedisCache/Commands.RedisCache/Models/RedisCacheAttributes.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public RedisCacheAttributes(RedisResource cache, string resourceGroupName)
3131
ProvisioningState = cache.Properties.ProvisioningState;
3232
SslPort = cache.Properties.SslPort;
3333
RedisConfiguration = cache.Properties.RedisConfiguration;
34-
EnableNonSslPort = cache.Properties.EnableNonSslPort;
34+
EnableNonSslPort = cache.Properties.EnableNonSslPort.Value;
3535
RedisVersion = cache.Properties.RedisVersion;
3636
Size = SizeConverter.GetSizeInUserSpecificFormat(cache.Properties.Sku.Family, cache.Properties.Sku.Capacity);
3737
Sku = cache.Properties.Sku.Name;
@@ -49,7 +49,7 @@ public RedisCacheAttributes(RedisGetResponse cache, string resourceGroupName)
4949
ProvisioningState = cache.Resource.Properties.ProvisioningState;
5050
SslPort = cache.Resource.Properties.SslPort;
5151
RedisConfiguration = cache.Resource.Properties.RedisConfiguration;
52-
EnableNonSslPort = cache.Resource.Properties.EnableNonSslPort;
52+
EnableNonSslPort = cache.Resource.Properties.EnableNonSslPort.Value;
5353
RedisVersion = cache.Resource.Properties.RedisVersion;
5454
Size = SizeConverter.GetSizeInUserSpecificFormat(cache.Resource.Properties.Sku.Family, cache.Resource.Properties.Sku.Capacity);
5555
Sku = cache.Resource.Properties.Sku.Name;

src/ResourceManager/RedisCache/Commands.RedisCache/Models/RedisCacheAttributesWithAccessKeys.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public RedisCacheAttributesWithAccessKeys(RedisCreateOrUpdateResponse cache, str
2929
ProvisioningState = cache.Resource.Properties.ProvisioningState;
3030
SslPort = cache.Resource.Properties.SslPort;
3131
RedisConfiguration = cache.Resource.Properties.RedisConfiguration;
32-
EnableNonSslPort = cache.Resource.Properties.EnableNonSslPort;
32+
EnableNonSslPort = cache.Resource.Properties.EnableNonSslPort.Value;
3333
RedisVersion = cache.Resource.Properties.RedisVersion;
3434
Size = SizeConverter.GetSizeInUserSpecificFormat(cache.Resource.Properties.Sku.Family, cache.Resource.Properties.Sku.Capacity);
3535
Sku = cache.Resource.Properties.Sku.Name;

0 commit comments

Comments
 (0)