home.social

#azuresdk — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #azuresdk, aggregated by home.social.

  1. For anyone interested, apparently #dotnet #azureSDK based on Microsoft.Rest does have a default exponential back off retry policy that is not obvious. It's part of ServiceClient and you can call `SetRetryPolicy(null)` to turn off retries.

  2. Look. I get it. You don't want to make an `enum` for your constrained string values collection so you make it a `struct` instead.

    But for the love of got, then, make it implicitly convertible to a string. (or, did you know there's an `EnumMember` attribute? even better!)

    I'm looking at you #AzureSDK folks.

    #azure #azureAI

  3. Prototyping test recording for for : github.com/heaths/recorded-tes

    Attribute sync or async tests using `#[recorded]` and can accept optional `TestContext` parameter. Full implementation should automatically set up HTTP transport to record or play back.

    Thoughts? Still early.

  4. TIL that the azure-mgmt-core library (#AzureSDK for #Python) actually contains some useful helper functions:
    - parse_resource_id(), which returns the parts of the id
    - resource_id(), which builds a resource id based on the parameters passed into the function
    - is_valid_resource_id(), to validate a resource id
    - is_valid_resource_name(), to validate a resource name against ARM guidelines
    - get_arm_endpoints(), to return ARM endpoint and ARM credential scopes

    github.com/Azure/azure-sdk-for

    #azure

  5. @vbfox @khalidabuhakmeh an RFC is already approved and partly implemented that accomplishes some of this. We’re hoping it’s stabilized before we GA our first for Rust crates.

  6. This may be enough for us to ditch our plans of using builders over ugly nested `..Default::default()` calls for nested client options in the for rust. It wasn’t the only reason, but a significant one.
    hachyderm.io/@ekuber/113369453

  7. We've been discussing internally and leaning toward transport-level mocking - fakes - like we do in our for : github.com/Azure/azure-sdk-for

    Basically, a struct which implements our `Policy` to be used as our transport in an already-pluggable pipeline and declares distinct `Arc<dyn Fn(..) -> impl Future<..>` fields that are mapped to endpoint calls.

    Seems the most flexible and requires no change to the client API since we already support replacing the transport.

  8. Would love feedback on mocking service clients for for : play.rust-lang.org/?version=st

    Our current design requires pulling a trait into scope, and while rust-analyzer or other LSPs makes that easy not everything uses them: azure.github.io/azure-sdk/rust

    A colleague came up with a better way I prototyped above to better demo our current public API. The only caveat seems no worse than what we have now and should affect few developers, we believe.

  9. @ekis @[email protected] I often work with monorepos like the for . That's when git worktrees and sparse checkouts can help reduce checkout time and drive space exhaustion. Check out heaths.dev/tips/2022/06/18/red for some tips. I should probably update that to mention worktrees too, though that really just helps reduce cloning time and minimizes disk space.

    One advantage is having different copies of dependencies in different states, though I wonder how often that's a problem.

  10. Great article with basic concepts to use Azure SDK 👉 devblogs.microsoft.com/azure-s Since Azure SDK follow the same guidelines, using them is much easier and nicer. Unfortunately, some SDK (Cosmos, Azure IoT) still go their own way, but globally the dev experience has improved.

    Yet, I still sometimes come across code that wraps Azure SDK. People, please stop that, it's useless and it prevents other developers to learn how to correctly use Azure SDK.

    #azure #azuresdk

  11. The `azd` has been available for a short while as a feature, which I recently used in github.com/heaths/azcrypto: github.com/heaths/azcrypto/pul

    It will not only install `azd`, but the dev extension for . It makes deploying resources and applications a breeze.

    I use it in azcrypto in lieu of the resource provisioning scripts I originally wrote for all of to deploy resources uniformly. This is a publicly available (near) equivalent.

  12. devblogs.microsoft.com/azure-s

    Azure Core for all our language SDKs plays a core part of our HTTP pipeline (and other protocols in some cases, like AMQP), serialization, and more. My colleague, Anne, does a great job explaining a lot of it here.

  13. Now that the for has released v1.0.0, I have updated to it and released v1 of pkg.go.dev/github.com/heaths/a : a cryptography client for Key Vault and that not only makes it easier to call crypto operations but tries to first cache the public key and do public key operations locally to improve performance and help mitigate throttling.

    We have this in our other languages' SDKs but doesn't fit our design goals for , so I wrote it as a separate module.

  14. Will today be the day I figure out how to migrate from Microsoft.Azure.Management.Fluent to Azure.ResourceManager? 🤞 Only time will tell. #azure #dotnet #azuresdk

  15. @larryosterman to clarify for others interested in or , we - including others from different departments at - have established guidelines for both service APIs (typically REST) as well as client libraries we write and generate. Our code generators follow those same guidelines.

    is designed to bridge those concepts. With the same expressive grammar, service teams have more central control (with guard rails) over both service and client code.

  16. Why does it seem so impossible to find real code examples for #Azure #azuresdk ? Microsoft.Azure.Management.AppService.Fluent is deprecated for Azure.ResourceManager.AppService, and all I want to see is an example of how to use the new package to restart one of my AppServices. This was easily done with the old package, and I can't find anything to help me migrate #csharp code. Would love if anyone could point me in the right direction!!

  17. Some of my colleagues put a lot of work into dynamic support for RESTful payloads for the for . I updated some of the samples I own and it feels idiomatic. As we convert more services to , we'll be generating model classes but Dynamic JSON will still be useful in more advanced scenarios.

    Read devblogs.microsoft.com/azure-s for more information.

  18. My github.com/heaths/azcrypto module for easy and crypto operations is now feature-complete and at parity with our other languages' crypto libraries. It now supports crypto operations locally using a JWK.

    Not likely to make it into our official azkeys SDK, but written to our same SDK guidelines.

    azkeys will GA soon, and once I upgrade my dependency I plan to GA this module.

  19. I've been working on a "business adjacent" project - as many of mine are - but for something that may one day be part of our for . Regardless of whether it gets included, I want it to feel like a first-party experience when used with our other client libraries. Given I'm part of the team, I'm coining(?) the phrase, "first-ex parte".

    See github.com/heaths/azcrypto for a cryptography client for or . It's basically the same as we have in other languages.

  20. Since the for 's philosophy is thin, mostly generated clients - which I don't disagree with - I built a client atop it much like I helped drive in our other SDK languages and wrote for the SDK for .NET: github.com/heaths/azcrypto

    It's very early in development right now - supporting only sign and verify - but is an MVP enough to get some feedback from my team or anyone else who may be interested.

  21. Huh, nice, it is possible to upload custom logs to #Azure #LogAnalytics workspaces through the #AzureSDK Client libraries.

    azure.microsoft.com/en-us/upda

    Details and examples on the Azure Monitor Ingestion client library for #Python are also available: github.com/Azure/azure-sdk-for

  22. The latest beta release of the Azure Text Analytics client libraries for Python (and other SDK's) has been announced. The blog post includes Python samples for these features:
    - Abstractive summarization
    - Named entity recognition (NER) resolutions
    - Dynamic classification
    - Healthcare FHIR bundles with document type
    - Automatic language and script detection

    #Azure #Python #AzureSDK #AI #TextAnalytics

    Reference: devblogs.microsoft.com/azure-s

  23. The latest beta release of the Azure Text Analytics client libraries for Python (and other SDK's) has been announced. The blog post includes Python samples for these features:
    - Abstractive summarization
    - Named entity recognition (NER) resolutions
    - Dynamic classification
    - Healthcare FHIR bundles with document type
    - Automatic language and script detection

    Reference: devblogs.microsoft.com/azure-s