Azure Cloud Discovery

Steve Stivers1
Tera Contributor

When doing Azure cloud discovery what Azure data is used to fill the State and Install Status fields on the Virtual Machine Instance CIs?

 

We have Virtual Machine Instance CIs being created with an install status of 100. This is defined as missing in our instance.

 

We are using Vancouver.

2 REPLIES 2

AJ-TechTrek
Giga Sage
Giga Sage

Hi @Steve Stivers1 ,

 

install_status field is listed as mandatory, either on your base CI class or as a dictionary override on some subclass.  And, if you are getting the error during discovery, that means that your install_status field does not have a Default value (or again, some dictionary override is setting that default to null).  Because you are trying to populate a CI via the IRE using Discovery, it is failing to create or update the CI because by default the IRE enforces the mandatory field, so that data has to be part of your incoming payload.  Typically install_status is not mandatory, and typically it is not part of the incoming payload.

Options:

  1. You could use the system-wide setting to tell IRE to ignore mandatory fields.  This might seem like a good approach, but it is not recommended.
  2. You could instead remove the mandatory flag (or the override for mandatory) so that install_status is no longer required.  Along with this, you could change the choice list so that it does not allow "None" and also change the Default value to an appropriate value.  Null status shouldn't be a thing.  That's like having no weather!

Option 2 is my recommendation.  It is best practice not to have any required fields on CIs.  Rather, if you need to enforce a field during data entry, enforce it through some process control like a catalog item, or through a UI Policy or Client Script on the CI form, but do not make it mandatory at the database level.

 

 

Please appreciate the efforts of community contributors by marking appropriate response as Mark my Answer Helpful or Accept Solution this may help other community users to follow correct solution in future.

 

Thanks

AJ

Linkedin Profile:- https://www.linkedin.com/in/ajay-kumar-66a91385/

what is the sync between state, install state and oprational state. It some time does not make sense.