Skip to content

PolicyInsights RP GA version of cmdlets #6375

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 24 commits into from
Jun 7, 2018
Merged

Conversation

bulentelmaci
Copy link
Contributor

Description

PolicyInsights RP GA version of cmdlets:

  • Removed "preview"; update the version to 1.0.0.0
  • Update the .NET SDK to the GA version
  • Add the newly added attribute in the contract to the policy state summary model
  • Rerecord tests with changes to resource names
  • Fix a help text issue

Checklist

@bulentelmaci
Copy link
Contributor Author

@@ -19,6 +19,11 @@
-->
## Current Release

## Version 1.0.0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this... the version number will be added by the versioning tool, just leave the latest changes under Current Release

@praries880 praries880 requested a review from MiYanni June 5, 2018 16:59
@praries880 praries880 removed the request for review from MiYanni June 5, 2018 17:02
@praries880 praries880 assigned praries880 and unassigned MiYanni Jun 5, 2018
@praries880
Copy link
Contributor

praries880 commented Jun 5, 2018

@bulentelmaci can you add the policy insignts module as a required module in the AzureRM psd1.

We need this since the module is now going to be a BA module and needs to be packaged with AzureRM.

<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.10\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.11\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microsoft.Rest.ClientRuntime, Microsoft.Rest.ClientRuntime.Azure and Newtonsoft.Json shouldn't be in the .csproj or packages.config files since they are referenced elsewhere.

For example, every .csproj file should have a reference to the following file at the bottom of their file

Here's an example of a .csproj file referencing this file

@@ -13,8 +13,8 @@
<package id="Microsoft.Data.Services.Client" version="5.6.4" targetFramework="net45" />
<package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.3" targetFramework="net45" />
<package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net452" />
<package id="Microsoft.Rest.ClientRuntime" version="2.3.10" targetFramework="net452" />
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.10" targetFramework="net452" />
<package id="Microsoft.Rest.ClientRuntime" version="2.3.11" targetFramework="net452" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microsoft.Rest.ClientRuntime, Microsoft.Rest.ClientRuntime.Azure and Newtonsoft.Json shouldn't be in the .csproj or packages.config files since they are referenced elsewhere.

For example, every .csproj file should have a reference to the following file at the bottom of their file

Here's an example of a .csproj file referencing this file

<Private>True</Private>
</Reference>
<Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.10\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
<HintPath>..\..\..\packages\Microsoft.Rest.ClientRuntime.2.3.11\lib\net452\Microsoft.Rest.ClientRuntime.dll</HintPath>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microsoft.Rest.ClientRuntime, Microsoft.Rest.ClientRuntime.Azure and Newtonsoft.Json shouldn't be in the .csproj or packages.config files since they are referenced elsewhere.

For example, every .csproj file should have a reference to the following file at the bottom of their file

Here's an example of a .csproj file referencing this file

<package id="Microsoft.Rest.ClientRuntime" version="2.3.10" targetFramework="net452" />
<package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.10" targetFramework="net452" />
<package id="Microsoft.Azure.Management.PolicyInsights" version="1.0.0" targetFramework="net452" />
<package id="Microsoft.Rest.ClientRuntime" version="2.3.11" targetFramework="net452" />
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microsoft.Rest.ClientRuntime, Microsoft.Rest.ClientRuntime.Azure and Newtonsoft.Json shouldn't be in the .csproj or packages.config files since they are referenced elsewhere.

@praries880
Copy link
Contributor

@praries880
Copy link
Contributor

praries880 commented Jun 6, 2018

@bulentelmaci you need to fix the version of the SDK library for the netcore csproj as well

@@ -140,5 +252,5 @@ function Assert-NotNullOrEmpty
param([string]$value)

Assert-NotNull $value
Assert-AreNotEqual $value ""
Assert-True { $value -ne "" }
Copy link
Contributor

@praries880 praries880 Jun 6, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you use :

[string]::IsNullOrEmpty(...)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh much better. Will do

praries880
praries880 previously approved these changes Jun 6, 2018
Copy link
Contributor

@praries880 praries880 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bulentelmaci just a minor nitpick… otherwise LGTM

@bulentelmaci
Copy link
Contributor Author

@praries880 Good to go now?

@praries880
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants