Giter Site home page Giter Site logo

azure-data-share-automation's People

Contributors

nunoms avatar quickns avatar

Watchers

 avatar

azure-data-share-automation's Issues

Data share sample review (excluding Azure function)

After going through the setup process (excluding the Azure Function), here is some feedback you might want to consider:

  1. Add the following instruction after az login, to set the account to point to the right subscription: az account set -s <SUBSCRIPTION_ID>
  2. Could we use also env variables for the subscription id and object id, instead of adding them directly to the py file?
  3. Customize with an env variable or instruct to replace xyz on the suffixes, because it complains that a DataShare already exists with that name.
  4. Add clarity on the name of the .env file that each script is expecting: source.env for the source script and dest.env to the destination script.
  5. On the following sentence in the destination instructions: "After the invitation is accepted, the script can't be run again. If you need to re-run it, please create a new invitation using the dest.py python script." I think is source.py instead of dest.py.
  6. azure-mgmt-datashare was missing from requirements.txt
  7. I think also the Role Assignments could be automated for the Data Share account and Storage account

Other than that, the sample worked perfectly e2e. Will review the Azure function now and add another issue if necessary!

Data share sample review (Azure function)

  1. When running the function with the service principal, it seems to point to the wrong destination share: "System.Private.CoreLib: Exception while executing function: Functions.AcceptDataShareInvitations. System.Private.CoreLib: Result: Failure
    Exception: HttpResponseError: (1002) properties.storageAccountName:dest-data-shareys is not a valid name.
    ". and it creates the shared subscription in the same Source Data Share instead of in the destination Data Share. I can reproduce this if you want to see it.
  2. As the code seems to run with the logged in azure identity (my user in this case), I've created manually a data share with my user and trigger the function again. I receive an email, but seems that the invitation is sent to another tenant and subscription. But all the settings, the azure login and account set are pointing to the right subscription configuration. I can reproduce it as well.

Let me know if you recognize something off on the code or if you want to have a session so I can reproduce the behaviour. Thanks!

Adding a .devcontainer

I would recommend adding a dev container that builds the pre-requisites in advance, so testing is smoother for any person no matter what their local configurations and settings are.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.