Skip to content

Commit 4e8951f

Browse files
committed
Fixing managed cache creation issue
1 parent ab77a32 commit 4e8951f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceManagement/ManagedCache/Commands.ManagedCache/lib/ManagedCacheClient.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2571,6 +2571,7 @@ public async Task<AzureOperationResponse> BeginCreatingCacheServiceAsync(string
25712571
}
25722572

25732573
requestContent = requestDoc.ToString();
2574+
requestContent = System.Text.RegularExpressions.Regex.Replace(requestContent, "<IntrinsicSettings>\\s*<CacheServiceInput", "<IntrinsicSettings><CacheServiceInput");
25742575
httpRequest.Content = new StringContent(requestContent, Encoding.UTF8);
25752576
httpRequest.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/xml");
25762577

@@ -2953,6 +2954,7 @@ public async Task<CloudServiceOperationStatusResponse> CreateCacheServiceAsync(s
29532954
TracingAdapter.Enter(invocationId, this, "CreateCacheServiceAsync", tracingParameters);
29542955
}
29552956

2957+
29562958
cancellationToken.ThrowIfCancellationRequested();
29572959
AzureOperationResponse response = await client.CacheServices.BeginCreatingCacheServiceAsync(cloudServiceName, cacheServiceName, parameters, cancellationToken).ConfigureAwait(false);
29582960
cancellationToken.ThrowIfCancellationRequested();

0 commit comments

Comments
 (0)