-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add privateLinkConnectionProperties to network interface. #7189
Add privateLinkConnectionProperties to network interface. #7189
Conversation
Automation for azure-sdk-for-pythonEncountered a Subprocess error: (azure-sdk-for-python)
Command: ['/usr/local/bin/autorest', '/tmp/tmpczu0297z/rest/specification/network/resource-manager/readme.md', '--keep-version-file', '--multiapi', '--no-async', '--python', '--python-mode=update', '--python-sdks-folder=/tmp/tmpczu0297z/sdk/sdk', '[email protected]/[email protected]', '--version=preview'] AutoRest code generation utility [version: 2.0.4283; node: v10.15.3]
(C) 2018 Microsoft Corporation.
https://aka.ms/autorest
Loading AutoRest core '/root/.autorest/@[email protected]/node_modules/@microsoft.azure/autorest-core/dist' (2.0.4399)
Loading AutoRest extension '@microsoft.azure/autorest.python' (4.0.70->4.0.70)
Loading AutoRest extension '@microsoft.azure/autorest.modeler' (2.3.44->2.3.44)
Processing batch task - {"tag":"package-2019-06"} .
<--- Last few GCs --->
[9424:0x2744cc0] 139457 ms: Mark-sweep 1378.7 (1426.7) -> 1378.7 (1427.2) MB, 3093.7 / 0.0 ms (average mu = 0.107, current mu = 0.000) allocation failure GC in old space requested
[9424:0x2744cc0] 142680 ms: Mark-sweep 1379.6 (1427.2) -> 1379.5 (1427.7) MB, 3219.5 / 0.0 ms (average mu = 0.053, current mu = 0.001) allocation failure GC in old space requested
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0x26015b95be1d]
Security context: 0x04753a59e6e9 <JSObject>
1: newScalar [0x2715bdbe42e1] [/node_modules/yaml-ast-parser/dist/src/yamlAST.js:~38] [pc=0x26015c04ded6](this=0x2ff0aeeff4a1 <Object map = 0x1eb258221b51>,v=0x2f03758826f1 <undefined>)
2: arguments adaptor frame: 0->1
3: readDoubleQuotedScalar(aka readDoubleQuotedScalar) [0x2715bdbe4949] [/node_modules/yaml-ast-parser/dist/src/loader.js:~530] [p...
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
1: 0x8dc510 node::Abort() [node]
2: 0x8dc55c [node]
3: 0xad9b5e v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, bool) [node]
4: 0xad9d94 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [node]
5: 0xec7bf2 [node]
6: 0xec7cf8 v8::internal::Heap::CheckIneffectiveMarkCompact(unsigned long, double) [node]
7: 0xed3dd2 v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::GCCallbackFlags) [node]
8: 0xed4704 v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollectionReason, v8::GCCallbackFlags) [node]
9: 0xed7371 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [node]
10: 0xea07f4 v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]
11: 0x11402db v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]
12: 0x26015b95be1d |
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.
Need to target 2019-07-01
82324c9
to
bb19311
Compare
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.
LGTM except a few nitpicks about descriptions
...ification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkInterface.json
Outdated
Show resolved
Hide resolved
...ification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkInterface.json
Outdated
Show resolved
Hide resolved
Can one of the admins verify this patch? |
Automation for azure-sdk-for-goA PR has been created for you: |
0cef02e
to
56cdcf4
Compare
@@ -897,10 +897,34 @@ | |||
"provisioningState": { | |||
"$ref": "./network.json#/definitions/ProvisioningState", | |||
"description": "The provisioning state of the network interface IP configuration." | |||
}, | |||
"privateLinkConnectionProperties": { |
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.
The "properties" suffix seems unnecessary. "publicIPAddress" and "subnet" aren't using the suffix and its not typical across other resources.
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.
Hi Pilor,
So regarding to your question, the property's name is 'privateLinkConnectionProperties' from the Networking RP server side, it's been public and we cannot change it. So I think we should keep the name as is. Thank you.
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.
Public how? If this is already public then what am I reviewing here?
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.
Hi Pilor,
My meaning is the NRP side has already released the REST api for this part. And the property is already there for a while which named 'privateLinkConnectionProperties'. So I don't think there is a reason to change the name.
I attached one of example of return json string for network interface for your reference:
{
"name": "PEVnet1.nic.b9414b57-e682-40b9-ada8-312e40e2c88b",
"id":
"/subscriptions/15aa9ba4-9bd3-499f-ba12-9a5736d0cd68/resourceGroups/PrivateEndpointRunnerTestToStaticRGRGWestcentralusSLBV2Dev/providers/Microsoft.Network/networkInterfaces/PEVnet1.nic.b9414b57-e682-40b9-ada8-312e40e2c88b",
"etag": "W/\"b2dd33b7-92d1-460a-baa6-d5f55960e4aa\"",
"properties": {
"provisioningState": "Succeeded",
"resourceGuid": "7e3a996f-09a0-41e2-9f6d-0841110f7823",
"ipConfigurations": [
{
"name": "sqlServer-sqlServer.privateEndpoint",
"id":
"/subscriptions/15aa9ba4-9bd3-499f-ba12-9a5736d0cd68/resourceGroups/PrivateEndpointRunnerTestToStaticRGRGWestcentralusSLBV2Dev/providers/Microsoft.Network/networkInterfaces/PEVnet1.nic.b9414b57-e682-40b9-ada8-312e40e2c88b/ipC
onfigurations/sqlServer-sqlServer.privateEndpoint",
"etag": "W/\"b2dd33b7-92d1-460a-baa6-d5f55960e4aa\"",
"type": "Microsoft.Network/networkInterfaces/ipConfigurations",
"properties": {
"provisioningState": "Succeeded",
"privateIPAddress": "10.0.0.4",
"privateIPAllocationMethod": "Dynamic",
"subnet": {
"id":
"/subscriptions/15aa9ba4-9bd3-499f-ba12-9a5736d0cd68/resourceGroups/PrivateEndpointRunnerTestToStaticRGRGWestcentralusSLBV2Dev/providers/Microsoft.Network/virtualNetworks/vNet1-nr3kriysgtcxk/subnets/subnet1"
},
"primary": true,
"privateIPAddressVersion": "IPv4",
"privateLinkConnectionProperties": {
"groupId": "sqlServer",
"requiredMemberName": "sqlServer",
"fqdns": [
"sql-for-test-4nuppzq4x37iq.database.windows.net"
]
}
}
}
],
"dnsSettings": {
"dnsServers": [],
"appliedDnsServers": [],
"internalDomainNameSuffix": "vji40krafe4ujcvrvvzyhdrltc.yx.internal.cloudapp.net"
},
"macAddress": "",
"enableAcceleratedNetworking": false,
"enableIPForwarding": false,
"hostedWorkloads": [],
"tapConfigurations": [],
"privateEndpoint": {
"id": "/subscriptions/15aa9ba4-9bd3-499f-ba12-9a5736d0cd68/resourceGroups/PrivateEndpointRunnerTestToStaticRGRGWestcentralusSLBV2Dev/providers/Microsoft.Network/privateEndpoints/PEVnet1"
}
},
"type": "Microsoft.Network/networkInterfaces"
}
...ification/network/resource-manager/Microsoft.Network/stable/2019-07-01/networkInterface.json
Show resolved
Hide resolved
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.
signing off for ARM
* Add privateLinkConnectionProperties to network interface on 2019-07-01. * Small changes for descriptions in the property. * make the new property to be read-only.
* Adds base for updating Microsoft.Network from version stable/2019-06-01 to version 2019-07-01 * Updates readme * Updates API version in new specs and examples * Update API version in VMSS' specs (#7008) * Add reference to existing base definition & fix errors in descriptions of Network's provisioningState property (#7026) * Improve Network's descriptions (#6974) * New Skus and Generations for VirtualNetworkVpnGateways (#7089) * New Skus and generations for VirtualNetwork VpnGateways * Minor Typo fix * update [email protected] (#7054) * Lock typescript version to fix compile error (#7068) * Fix description for vpnGatewayGeneration. * Add VirtualRouter top level resource Identity under Microsoft.Network/ExpressRoutePort and MacSecConfig under Microsoft.Network/ExpressRouteLink (#7005) * Fixed required properties in TrafficAnalyticsProperties: networkWatcehr.json (#7080) * Added traffic selector policy definition to virtualNetworkGateway.json (#7066) * Support for changes in ConnectionMonitor API (#7075) * Updating Network Config Diagnostics API desc (#7117) * Added priority field in the request routing rule (#7131) * Added priority field in the request routing rule * Added min and max * Minor * Added new owner to Azure Networking (#7145) added number213 to Az NW * Add Mssql value to Application Rule Type enum (#7169) * Add privateLinkConnectionProperties to network interface. (#7189) * Add privateLinkConnectionProperties to network interface on 2019-07-01. * Small changes for descriptions in the property. * make the new property to be read-only. * Brooklyn Gateway Packet Capture feature (#7151) * PacketCaptureOperationforVPNGateways * Update virtualNetworkGateway.json * Update VirtualNetworkGatewayConnectionStopPacketCapture.json * Update VirtualNetworkGatewayStopPacketCapture.json * Update VirtualNetworkGatewayStopPacketCapture.json * Update VirtualNetworkGatewayConnectionStopPacketCapture.json * Update VirtualNetworkGatewayConnectionStartPacketCapture.json * Update VirtualNetworkGatewayStartPacketCapture.json * Update virtualNetworkGateway.json * fixing examples * fixing virtualNetworkGateway.json * fixing params * fixing path params * response body * example errors * example errors * example errors * filterdata * Update virtualNetworkGateway.json * fixing Comments * Fixing ARM Comments * Remove duplicate definition
Adding one property in network interface to display private link connection properties.
Contribution checklist:
ARM API Review Checklist
Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.
Please follow the link to find more details on API review process.