Describe the bug
I call the 'Applications.Create()' method for my app registration. This app registration is visible in Azure Portal.
A subsequent request to update application properties via Applications.Update() fails with error message "Resource '1639f4e8-77ac-41d4-9e90-8f206b5c6392' does not exist or one of its queried reference-property objects are not present."
When verifying in the Azure Portal, I do actually see my app registration with the idea mentioned in the error message being said to 'not exist'. => It does exist.
In another scenario, after doing the Applications.Create(), I did as next statement ServicePrincipals.Create(), and this also failed with "The appId \u0027dca53c17-f359-4bd0-a474-56b68d05bd41\u0027 of the service principal does not reference a valid application object."
Again, verifying in Azure Portal, I see this appId being filled in at the app registration.
Now for the weird thing: debugging locally, this does seem to work. It almost sounds like a 'timing' issue, being called to quickly when deployed in an Azure Function. But methods are all called with a proper await and according to documentation respond with the created object and are not asynchronous, where polling is needed for it to be created and then continue.
The exact same code has been running for over a year perfectly and started causing issues in the past week as far as we know. I already updated to the latest nuget package and the issues is the same in versions 5.105.0 as it was in 5.103.0
Expected behavior
It is expected to, when an application is created and the result object is returned, subsequent updates are not throwing an error about it not being found
How to reproduce
described above
SDK Version
5.105.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```
</details>
### Configuration
_No response_
### Other information
_No response_
Describe the bug
I call the 'Applications.Create()' method for my app registration. This app registration is visible in Azure Portal.
A subsequent request to update application properties via Applications.Update() fails with error message "Resource '1639f4e8-77ac-41d4-9e90-8f206b5c6392' does not exist or one of its queried reference-property objects are not present."
When verifying in the Azure Portal, I do actually see my app registration with the idea mentioned in the error message being said to 'not exist'. => It does exist.
In another scenario, after doing the Applications.Create(), I did as next statement ServicePrincipals.Create(), and this also failed with "The appId \u0027dca53c17-f359-4bd0-a474-56b68d05bd41\u0027 of the service principal does not reference a valid application object."
Again, verifying in Azure Portal, I see this appId being filled in at the app registration.
Now for the weird thing: debugging locally, this does seem to work. It almost sounds like a 'timing' issue, being called to quickly when deployed in an Azure Function. But methods are all called with a proper await and according to documentation respond with the created object and are not asynchronous, where polling is needed for it to be created and then continue.
The exact same code has been running for over a year perfectly and started causing issues in the past week as far as we know. I already updated to the latest nuget package and the issues is the same in versions 5.105.0 as it was in 5.103.0
Expected behavior
It is expected to, when an application is created and the result object is returned, subsequent updates are not throwing an error about it not being found
How to reproduce
described above
SDK Version
5.105.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```