-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Add DnsZonePartner Parameter for New-AzureRmSqlManagedInstance cmdlet #7458
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
Conversation
|
Link to .NetSDK: Azure/azure-sdk-for-net#4801 |
|
I added the references to new ClientRuntime packages per advice from Maddie. I was seeing local failures due to package mismatch and reached out for help. She mentioned that there is a ClientRuntime upgrade ongoing and I should add these references for now to unblock testing. |
| <Reference Include="Microsoft.Azure.Management.Network, Version=19.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
| <HintPath>..\..\..\packages\Microsoft.Azure.Management.Network.19.5.0-preview\lib\net452\Microsoft.Azure.Management.Network.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="Newtonsoft.Json, Version=6.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL" /> |
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.
I don't think that we should need to change Commands.Network or Commands.Profile . Were these changes intentional?
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 was auto-generated due to the new package version. reverting now.
| $managedInstanceLogin = "dummylogin" | ||
| $managedInstancePassword = "Un53cuRE!" | ||
| $subnetId = "/subscriptions/ee5ea899-0791-418f-9270-77cd8273794b/resourceGroups/cl_one/providers/Microsoft.Network/virtualNetworks/cl_initial/subnets/CooL" | ||
| $subnetId = "/subscriptions/a8c9a924-06c0-4bde-9788-e7b1370969e1/resourceGroups/mi-wcus-demo-rg/providers/Microsoft.Network/virtualNetworks/mi-wcus-vnet/subnets/mi-subnet-managed-instances" |
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.
Since MI is in GA now, can you please change this test to be fully automated? This includes creating the virtual network. Check out SQL virtual network firewall rules for an example.
cormacpayne
left a comment
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.
@ziwa-msft a few comments for you to take a look at
| <LastGenOutput>Resources.Designer.cs</LastGenOutput> | ||
| </EmbeddedResource> | ||
| </ItemGroup> | ||
| <ItemGroup> |
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.
@ziwa-msft please revert the change made in this file
| <package id="Microsoft.PowerShell.5.ReferenceAssemblies" version="1.1.0" targetFramework="net452" /> | ||
| <package id="Microsoft.Rest.ClientRuntime" version="2.3.13" targetFramework="net452" /> | ||
| <package id="Microsoft.Rest.ClientRuntime.Azure" version="3.3.15" targetFramework="net452" /> | ||
| <package id="Microsoft.Rest.ClientRuntime" version="2.3.14" targetFramework="net452" /> |
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.
@ziwa-msft please revert the change made in this file -- we have a separate PR open to update the version of ClientRuntime used throughout PowerShell
| <Reference Include="Microsoft.Azure.Management.Storage"> | ||
| <HintPath>..\..\..\packages\Microsoft.Azure.Management.Storage.2.4.0-preview\lib\net40\Microsoft.Azure.Management.Storage.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
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.
@ziwa-msft please remove these references to ClientRuntime added in this file
| <package id="Microsoft.Bcl.Build" version="1.0.14" targetFramework="net45" /> | ||
| <package id="Microsoft.IdentityModel.Clients.ActiveDirectory" version="2.28.3" targetFramework="net45" /> | ||
| <package id="Microsoft.Net.Http" version="2.2.28" targetFramework="net45" /> | ||
| <package id="Microsoft.Rest.ClientRuntime" version="2.3.14" targetFramework="net452" /> |
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.
@ziwa-msft same comment about removing the references to ClientRuntime in this file
| <Reference Include="Microsoft.Data.Services.Client, Version=5.8.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> | ||
| <HintPath>..\..\..\packages\Microsoft.Data.Services.Client.5.8.2\lib\net40\Microsoft.Data.Services.Client.dll</HintPath> | ||
| </Reference> | ||
| <Reference Include="Microsoft.Rest.ClientRuntime, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"> |
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.
@ziwa-msft same comment about removing the references to ClientRuntime in this file
| <package id="Microsoft.Data.Edm" version="5.8.2" targetFramework="net452" /> | ||
| <package id="Microsoft.Data.OData" version="5.8.2" targetFramework="net452" /> | ||
| <package id="Microsoft.Data.Services.Client" version="5.8.2" targetFramework="net452" /> | ||
| <package id="Microsoft.Rest.ClientRuntime" version="2.3.14" targetFramework="net452" /> |
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.
@ziwa-msft same comment about removing the references to ClientRuntime in this file
| <Name>Commands.Profile</Name> | ||
| </ProjectReference> | ||
| </ItemGroup> | ||
| <ItemGroup> |
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.
@ziwa-msft please revert the changes in this file -- you don't need to add a reference to ClientRuntime and I was under the impression since this was a generation of the old Sql SDK that you don't need a reference to the new Sql management SDK.
| <packages> | ||
| <package id="Hyak.Common" version="1.0.3" targetFramework="net45" /> | ||
| <package id="Microsoft.Azure.Common" version="2.1.0" targetFramework="net45" /> | ||
| <package id="Microsoft.Azure.Management.Sql" version="1.20.1-preview" targetFramework="net452" /> |
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.
@ziwa-msft same comment about reverting the changes made in this file
|
@jaredmoo @cormacpayne Please review and let me know if there is any other feedback |
|
PR to merge in the latest from preview: #7574 |
|
@ziwa-msft some build failures for you to look at: JenkinsThe TravisThe version of the |
|
@cormacpayne Hi Cormac. Looks like the default build failed because of CredScan issue. Any suggestion on how to proceed? |
|
@cormacpayne Looks like all checks have passed finally ;D |
|
|
||
| ## Version 4.11.5 | ||
| * Fixed issue where some backup cmdlets would not recognize the current azure subscription | ||
| * Add DnsZonePartner Parameter for New-AzureRmSqlManagedInstance cmdlet to support AutoDr for Managed Instance. |
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.
@ziwa-msft this should go under the ## Current Release header, but we can move it when we do the versioning for the next release of this preview module
Description
Add DnsZonePartner Parameter for New-AzureRmSqlManagedInstance cmdlet to support AutoDr for Managed Instance. Properties of the ManagedInstance model have also been updated to reflect new members DnsZone and DnsZonePartner
Checklist
CONTRIBUTING.mdplatyPSmodule