-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fluent SDK only allows username/password on WithPrivateImageRegistry #1291
Comments
For .NET, the development focus has shifted to the next generation of Azure SDKs which follows the new SDK guideline and introduces a set of important new features. Those new packages are currently in preview state and we are actively working on making it production ready. You can visit this link here to see the latest .NET packages: We have also published a few blog posts on why we are doing this: With this background, .NET Fluent is currently in a low maintenance mode, and we mostly do security and bug fixes. It is subject to deprecation in the future when the new set of .NET packages become Generally Available (GA). Please let us know if there are further questions, thanks! |
Hi @weidongxu-microsoft I've read the posts. Hi, am I to understand that Container Instances are not covered in those SDK's for .NET? I see them for Java and Python. Will they be covered? This page suggests that the old API's are the only ones available for Container Instances. |
It is to be covered. All service will be covered in these new SDKs. Though the new lib is not released yet. If you are urgent, you can use https://www.nuget.org/packages/Microsoft.Azure.Management.ContainerInstance/. But this will also be replaced by the new SDK in future. |
For new SDK, you can follow on https://azure.github.io/azure-sdk/releases/latest/mgmt/dotnet.html (ignore the preview ones) |
All right @weidongxu-microsoft . For now I will use the "old" non-fluent SDK that you mentioned since that appears to be more flexible (albeit more verbose). |
Describe the bug
WithPrivateImageRegistry does not accept identity as parameter.
It is only possible to use username/password. There is no overload for an identity.
When leaving username/password empty, an error occurs.
ARM indicates it expects username/pw or identity.
SDK only allows setting identity.
Exception or Stack Trace
Microsoft.Rest.Azure.CloudException: The registry credential type in the 'imageRegistryCredentials' of container group 'xxxxx' cannot be detected. Please set exactly one of username or identity
To Reproduce
Code Snippet
Expected behavior
Should have an overload allowing a
user assigned identity
on theWithPrivateImageRegistry
methodScreenshots
Stacktrace says it all. ARM expects username or identity. SDK only allows username/password.
Setup (please complete the following information):
Additional context
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: