Comments (16)
@abhi1509 what is the version of Microsoft.Azure.Management.ResourceManager.Fluent
package in your project?
from azure-libraries-for-net.
from azure-libraries-for-net.
@abhi1509 what is your dev box configuration? I'll need to have a repro locally to investigate. Did you check fiddler logs?
from azure-libraries-for-net.
from azure-libraries-for-net.
@abhi1509 Target framework? Do you install rollup package or just ResourceManager.Fluent?
from azure-libraries-for-net.
@abhi1509 I have a repro. Seems like nuget manager is broken on VS2015. I've opened the same project in VS2017 and was able to add v1.4 reference.
from azure-libraries-for-net.
great. thanks!
target framework is 4.5.2
What about the deadlock? is it fixed in 1.4?
from azure-libraries-for-net.
I'll need a repro for that as well. Could you post your code here (excluding sensitive data if any)?
from azure-libraries-for-net.
https://github.com/abhi1509/fluentSdkRmGenericResourceDeadlock/tree/master/WebApplicationRepro.Tests
run the test TestStuckGenericResourcesCheckExistence
from azure-libraries-for-net.
No repro.
On my dev box (win10, VS2015 update 3) Your solution actually checks in a loop that SimpleWinVM is created but constantly receives 404 back.
it does not hang here - https://github.com/abhi1509/fluentSdkRmGenericResourceDeadlock/blob/master/WebApplicationRepro/AzureResourceManager.cs#L110
but actually sends /resourcegroups/temp1234/providers/Microsoft.Compute//virtualMachines/SimpleWinVM?api-version=2016-04-30-preview HTTP/1.1
receives HTTP/1.1 404 Not Found
and never exits the while loop.
from azure-libraries-for-net.
given that we started a deployment, the VM should eventually exist and then we should exit the loop. once the VM is there, this gets stuck. I have noticed that it works fine if resource is not there.
from azure-libraries-for-net.
@hovsepm Please let me know if you can't repro it. Basically if you query for a resource which already exists, it gets deadlocked.
from azure-libraries-for-net.
@abhi1509 ok I got the repro and it is not a dead lock. SDK 3 times tries to query existence while Azure responds "503 Service Unavailable". Each retry has it's own wait time so that is why you see delays. This has nothing to do with the SDK but with the back end service.
from azure-libraries-for-net.
@abhi1509 I've contacted service team for clarification.
from azure-libraries-for-net.
Thanks. How long is the wait time. I modified the sample template so it now generates random dns names. otherwise the resource would never be created as there was a DNS conflict.
With the change, even when the VM is created, i still get TaskCancelledException after a long wait.
from azure-libraries-for-net.
@abhi1509 it seems to be not supported by Compute Service. Their suggested workaround for now is use Get instead of Head (CheckExistence) operation.
FYI, I've published v.1.4.1 with VS2015 issue fix.
from azure-libraries-for-net.
Related Issues (20)
- How to send arm templates via generic resources to ARM in Azure?
- [BUG] Exception when calling `KeyVaultManagementClient.Vaults.CheckNameAvailabilityAsync` HOT 2
- [QUERY] NetworkManagementClient.PublicIPAddresses.GetAsync() call throws TaskCanceledException. HOT 1
- Add subnetIds in Container group Instances instead of network profile id HOT 1
- [QUERY] Get Role Assignment for an ObjectId HOT 4
- [BUG] NullReferenceExpcetion when removing user assigned identity HOT 3
- [BUG] Fluent SDK can't delete flowlogs resources HOT 1
- [QUERY] How can I set the resource limit property for a container instance using the fluent SDK? HOT 1
- [QUERY] DTU-based model: How to set the DTU size and enable zone availability for a SQL database? HOT 1
- [BUG] Failed to get list of supported orchestrators HOT 5
- [FEATURE REQ] Support Custom Cloud in Microsoft.Azure.Management.ResourceManager.Fluent.AzureEnvironment
- [FEATURE REQ] Create a ContainerGroup with no wait option.
- [BUG] AzureCliCrededentials json format changed HOT 5
- [FEATURE REQ] add a clear deprecation warning to the README HOT 2
- [QUERY] How to build after updating swagger version in api-specs.json? HOT 2
- This repo is missing important files
- [FEATURE REQ] FunctionApp key management HOT 2
- [BUG] AzureEnvironment needs to move away from AAD Graph HOT 1
- [BUG] QueryResourceAsync causing error if used with TimeRange of QueryTimeRange(Datetime, Datetime) HOT 1
- Missing values in Region Enum HOT 1
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-libraries-for-net.