Skip to content

Commit ecf4334

Browse files
author
Hovsep
committed
Merge pull request #1842 from vivsriaus/ChangeRMApiVersion
Update RM api version
2 parents 6237034 + 488a926 commit ecf4334

File tree

5 files changed

+18
-8
lines changed

5 files changed

+18
-8
lines changed

src/ResourceManager/Common/Commands.ResourceManager.Common/Commands.ResourceManager.Common.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<HintPath>..\..\..\packages\Microsoft.Azure.Common.2.1.0\lib\net45\Microsoft.Azure.Common.NetFramework.dll</HintPath>
6767
</Reference>
6868
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
69-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
69+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.16-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
7070
<Private>True</Private>
7171
</Reference>
7272
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory">

src/ResourceManager/Common/Commands.ResourceManager.Common/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.2" targetFramework="net45" />
66
<package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" />
77
<package id="Microsoft.Azure.Common.Dependencies" version="1.0.0" targetFramework="net45" />
8-
<package id="Microsoft.Azure.Management.Resources" version="2.18.14-preview" targetFramework="net45" />
8+
<package id="Microsoft.Azure.Management.Resources" version="2.18.16-preview" targetFramework="net45" />
99
<package id="Microsoft.Bcl" version="1.1.9" targetFramework="net45" />
1010
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
1111
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

src/ResourceManager/Resources/Commands.Resources/Commands.Resources.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</Reference>
7171
<Reference Include="Microsoft.Azure.ResourceManager, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7272
<SpecificVersion>False</SpecificVersion>
73-
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.14-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
73+
<HintPath>..\..\..\packages\Microsoft.Azure.Management.Resources.2.18.16-preview\lib\net40\Microsoft.Azure.ResourceManager.dll</HintPath>
7474
</Reference>
7575
<Reference Include="Microsoft.IdentityModel.Clients.ActiveDirectory, Version=2.18.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
7676
<HintPath>..\..\..\packages\Microsoft.IdentityModel.Clients.ActiveDirectory.2.18.206251556\lib\net45\Microsoft.IdentityModel.Clients.ActiveDirectory.dll</HintPath>

src/ResourceManager/Resources/Commands.Resources/Models.ResourceGroups/ResourceClient.cs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,23 +245,33 @@ private void WriteDeploymentProgress(string resourceGroup, string deploymentName
245245

246246
if (operation.Properties.ProvisioningState != ProvisioningState.Failed)
247247
{
248-
statusMessage = string.Format(normalStatusFormat,
248+
if (operation.Properties.TargetResource != null)
249+
{
250+
statusMessage = string.Format(normalStatusFormat,
249251
operation.Properties.TargetResource.ResourceType,
250252
operation.Properties.TargetResource.ResourceName,
251253
operation.Properties.ProvisioningState.ToLower());
252254

253-
WriteVerbose(statusMessage);
255+
WriteVerbose(statusMessage);
256+
}
254257
}
255258
else
256259
{
257260
string errorMessage = ParseErrorMessage(operation.Properties.StatusMessage);
258261

259-
statusMessage = string.Format(failureStatusFormat,
262+
if(operation.Properties.TargetResource != null)
263+
{
264+
statusMessage = string.Format(failureStatusFormat,
260265
operation.Properties.TargetResource.ResourceType,
261266
operation.Properties.TargetResource.ResourceName,
262267
errorMessage);
263268

264-
WriteError(statusMessage);
269+
WriteError(statusMessage);
270+
}
271+
else
272+
{
273+
WriteError(errorMessage);
274+
}
265275

266276
List<string> detailedMessage = ParseDetailErrorMessage(operation.Properties.StatusMessage);
267277

src/ResourceManager/Resources/Commands.Resources/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<package id="Microsoft.Azure.Gallery" version="2.6.2-preview" targetFramework="net45" />
77
<package id="Microsoft.Azure.Graph.RBAC" version="1.9.0-preview" targetFramework="net45" />
88
<package id="Microsoft.Azure.Management.Authorization" version="2.0.0" targetFramework="net45" />
9-
<package id="Microsoft.Azure.Management.Resources" version="2.18.14-preview" targetFramework="net45" />
9+
<package id="Microsoft.Azure.Management.Resources" version="2.18.16-preview" targetFramework="net45" />
1010
<package id="Microsoft.Bcl" version="1.1.10" targetFramework="net45" />
1111
<package id="Microsoft.Bcl.Async" version="1.0.168" targetFramework="net45" />
1212
<package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" />

0 commit comments

Comments
 (0)