Comments (18)
Summary:
- NRP will always return the
primary
fields on the NIC and on the IPConfigs on the NICs. These are here in the Swagger spec: - CRP will only return the
primary
flag for a NIC if the user specified it in a previous create/update of the VM
Thanks to @DeepakRajendranMsft for providing this information.
from azure-rest-api-specs.
@deepakswifty and @dihan0604 please respond with a fix or an explanation which could be used to make the correction to the spec.
from azure-rest-api-specs.
Ping?
from azure-rest-api-specs.
@markjbrown can you or someone else from networking comment on this?
from azure-rest-api-specs.
@deepakswifty, Hi Deepak, could you take a look? This is not express route cmdlets,I am not familiar with it.
from azure-rest-api-specs.
Ping?
from azure-rest-api-specs.
Hi @colemickens, sorry for the late reply.
we have just added the primary field for ipconfguration. It will be under a feature flag.
I would say the algo should be that (for nic and ipconfiguration), if the primary flag is not set, treat it as primary. If there are multiple nics and ipconfiguration then the primary flags for all nics and ipconfigurations will be set
from azure-rest-api-specs.
I would say the algo should be that (for nic and ipconfiguration), if the primary flag is not set, treat it as primary. If there are multiple nics and ipconfiguration then the primary flags for all nics and ipconfigurations will be set
Makes sense. Will this /always/ be behind a feature flag? How are feature-flagged portions of the API handled when it comes to the Swagger spec?
Is there anyone from the CRP side we can talk to so that they will add the same flag is supposed to be there for the NIC in the VM Instance response? Or is that added now as well?
from azure-rest-api-specs.
Makes sense. Will this /always/ be behind a feature flag?
- Multi-NIC feature is already public. Multi-CA/ Multi-Ipconfigurations per NIC is still behind a feature flag. Feature flags are not something we would like to keep forever, they should be removed once the feature goes public. Feature flags are subscription based meaning that we have to manually enable each subscription based on the request.
How are feature-flagged portions of the API handled when it comes to the Swagger spec?
- we dont have an explicit way of handling this right now, (@david, is there something we can do here?)
Is there anyone from the CRP side we can talk to so that they will add the same flag is supposed to be there for the NIC in the VM Instance response? Or is that added now as well?
- The flag from CRP side should be the users input. So if the user had specified the primary flags you should be seeing them. If it is a single nuc scenario then the primary flag is optional, so in this case you may or may not see the primary flag
from azure-rest-api-specs.
Thank you for the explanation @DeepakRajendranMsft.
This definitely gives me enough information to write a conformant implementation. That having been said, I would suggest that always returning the primary field in the single-nic or single-ipconfig scenario is preferred.
As is, I have to write more heuristic code-- (is there more than one nic, okay, then just take that, if not loop through the nics and look at the primary flag. then fetch that nic and check if there are more than one ipconfig, if not, just use the first one, if so, look through all of them and examine primary flag).
I can write the code much more generically if I just loop through them regardless of how many there are, looking for the primary
flag. More importantly, I'd argue that that is what the Swagger spec and MSDN REST documentation encourages people to do. I don't think the behavior you've described is documented anywhere... even for the GA feature of multi-NIC.
from azure-rest-api-specs.
@colemickens thanks for feedback.
we always want to maintain the customers input (even on the output). thats why its optional.
@markjbrown for documenation
from azure-rest-api-specs.
@DeepakRajendranMsft wouldn't a feature flag be part of a preview api-version? I wouldn't imagine they would be part of a non-preview api-version.
Beyond that, I think the only other thing we can do is to include a comment in the description of the operations or on the model calling out the fact that the feature is there, but not available in all subscriptions. Perhaps, also including some information on how to be an early adopter of the feature.
from azure-rest-api-specs.
Is there an estimate for when the ip-config primary flag will no longer be behind a feature flag?
from azure-rest-api-specs.
@DeepakRajendranMsft @devigned Can we re-sync on the new field that was exposed from NRP?
In particular, has it been added to any published Swagger specs? If not, when will it be? And when will it no longer be behind a "feature flag"?
from azure-rest-api-specs.
Ping @DeepakRajendranMsft , @devigned for the above questions. Is this stuff actually consistent between the services are returning, documented to return, and what is actually in the Swagger spec? Both the CRP field and the NRP field?
from azure-rest-api-specs.
@colemickens thank you for adding the summary of the discussion!
from azure-rest-api-specs.
So I am looking to fix hashicorp/terraform#6514 Reading through the code I justed realize there are two Primary flags. It is not clear to me. Can I choose to set either? Give the choice I rather put it on the interface and not the ip config.
from azure-rest-api-specs.
Looks like I am reading this wrong. We need to set the primary doing the CRP.
from azure-rest-api-specs.
Related Issues (20)
- [Azure Search - Azure AI Search] API Review
- [BUG] Microsoft.Billing provider missing documentation for the vast majority of it's endpoints HOT 1
- [Azure Quantum (Service) - Azure Quantum] API Review HOT 1
- [BUG] Support diacritical marks for resource group names HOT 2
- [TypeSpecRequirement] Data-plane specs should emit warning instead of error
- [BUG] HOT 2
- [BUG] VirtualMachineRunCommands_Update PATCH method will update whole resource HOT 2
- [IC3 ACS Calling ] API Review
- [BUG] - Updating an Scoped Resource on Private Link Scope Fails HOT 2
- Force refresh of TypeSpec PRs when version is updated in main HOT 2
- AI Search Client Swagger Import into APIM URL Formatting HOT 2
- Migrate check "Swagger LintDiff" from openapi-alps to azure-rest-api-specs
- [FEATURE REQ] Postgresql flexible server connectionstring
- Filtering by name
- [BUG] Microsoft.CognitiveServices/accounts: failed to update tags HOT 1
- [FEATURE REQ] Adding the principal_name to RoleAssignment class
- [BUG]Description for filter parameter among Role Assignments List Operations is incorrect HOT 1
- [BUG] Bad unicode in object description HOT 5
- [BUG] Microsoft.AzureStackHCI/clusters does not support user assigned identity as specified HOT 2
- [Azure AI Content Safety - Azure AI Content Safety] API Review HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-rest-api-specs.