-
Notifications
You must be signed in to change notification settings - Fork 5.1k
SQL server AD identity and data encryption support #3334
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
SQL server AD identity and data encryption support #3334
Conversation
Also several minor refactorings, removing redundant namespaces, etc.
…te client from latest swagger
…y operations. Updating the SDK to use a new Server API version (2015-05-01-preview).
|
@mihymel FYI |
|
@jaredmoo Thanks for the FYI. Looks good to me. |
|
@jaredmoo can you add swagger spec PR link to this PR |
| @@ -9,6 +9,13 @@ | |||
| <TargetFrameworks>netcoreapp1.1</TargetFrameworks> | |||
| </PropertyGroup> | |||
| <ItemGroup> | |||
| <PackageReference Include="Microsoft.Azure.KeyVault" Version="2.0.6" /> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaredmoo I was under the impression Nathan Fan updated all SQL Tests to use latest Resource Manager nuget.
I see you are using a really old resource manager to record your tests, please update to the latest (>=1.6.0)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Nathan did that. Where are you seeing the old resource manager?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It look like all the json recordings have Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaredmoo So by default every test project get's 1.1.0 reference of Resource manager.
So unless you explicitly add 1.6.0 to the test project you are still using 1.1.0 resource manager nuget
Here is the link for the change
https://github.com/Azure/azure-sdk-for-net/pull/3272/files#diff-c8ac009921fcb73848451401f0d039f2R16
| // Add new Active Directory Admin | ||
| ServerAzureADAdministrator newAdmin = new ServerAzureADAdministrator("DSEngAll", new Guid("5e90ef3b-9b42-4777-819b-25c36961ea4d"), new Guid("72f988bf-86f1-41af-91ab-2d7cd011db47"), "sqlcrudtest-3421", "2c647056-bab2-4175-b172-493ff049eb29"); | ||
| ServerAzureADAdministrator createResult = sqlClient.ServerAzureADAdministrators.CreateOrUpdateAzureADAdministrator(resourceGroup.Name, server.Name, newAdmin); | ||
| ServerAzureADAdministrator createResult = sqlClient.ServerAzureADAdministrators.CreateOrUpdate(resourceGroup.Name, server.Name, newAdmin); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaredmoo why not use TestFramework to get all your custom key-value pairs injected in your tests.
https://github.com/Azure/azure-powershell/blob/preview/documentation/Using-Azure-TestFramework.md#environment--custom
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point, since we didn't get this feedback on the original PR (#3196) can we fix this as a separate issue?
|
Hi @shahabhijeet , thanks for the review so far. I don't think your comments require immediate action. I have updated again to latest swagger - the metrics changes just got merged earlier this afternoon ( Azure/azure-rest-api-specs#1284 ). I also reverted adding the new VNetFirewallRule SDK support for now; we have written tests but need to re-record them and are having temporary difficulties. |
| @@ -9,6 +9,13 @@ | |||
| <TargetFrameworks>netcoreapp1.1</TargetFrameworks> | |||
| </PropertyGroup> | |||
| <ItemGroup> | |||
| <PackageReference Include="Microsoft.Azure.KeyVault" Version="2.0.6" /> | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jaredmoo So by default every test project get's 1.1.0 reference of Resource manager.
So unless you explicitly add 1.6.0 to the test project you are still using 1.1.0 resource manager nuget
Here is the link for the change
https://github.com/Azure/azure-sdk-for-net/pull/3272/files#diff-c8ac009921fcb73848451401f0d039f2R16
Description
Serversapi version from 2014-04-01 to 2015-05-01-preview, which is SDK compatible and includes support for server managed identityNote: the server azure ad admin change looks like a breaking change, but the previous version was not yet shipped so it's not breaking.
This checklist is used to make sure that common guidelines for a pull request are followed.
General Guidelines
Testing Guidelines
SDK Generation Guidelines
*.csprojandAssemblyInfo.csfiles have been updated with the new version of the SDK.