Skip to content
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

'az iot du update import' requires url with SAS token and can't use the RBAC Identity of the DU to access the passed url #725

Open
ottovis opened this issue Dec 6, 2024 · 2 comments
Assignees
Labels

Comments

@ottovis
Copy link

ottovis commented Dec 6, 2024

The newer AzureFileCopy@6 uses RBAC to upload a file to a SA and no longer generates a SAS token as output. It is required to use version 6 if you use a Federated Identity (recommended by MS) in ADO Pipelines to interact with our infrastructure. This means that it is not possible to combine the recommended best practices in combination with the az iot du update import command in a pipeline, and thus it does not seem possible to have a ADO Pipeline that uploads some build artifact to a SA and then imports it into a DU.

It would be great if the az iot du update import could use the identity of the DU resource to access the file passed.

@ottovis ottovis changed the title 'az iot du update import' requires url with SAS token and cannot be used with RBAC based access 'az iot du update import' requires url with SAS token and can't use the RBAC Identity of the DU to access the passed url Dec 6, 2024
@vilit1
Copy link
Contributor

vilit1 commented Dec 6, 2024

Thank you for the feature request - I will look into this and let you know if this is feasible and when it can be released.

@vilit1 vilit1 added the feature label Dec 6, 2024
@vilit1 vilit1 self-assigned this Dec 6, 2024
@vilit1
Copy link
Contributor

vilit1 commented Dec 9, 2024

Unfortunately, ADU service does not support managed identities yet. There are talks of adding this to the ADU service and I will update the thread with the final decision.

For now, please use SAS tokens by following Create a user delegation SAS - Azure Storage | Microsoft Learn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants