How to Setup Auth with Managed Identity - Build a CRUD API with Azure Functions and SQL server

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024
  • Use managed identity to connect to SQL server from Azure functions. We'll create a CRUD API in two languages: C# and python. The API will read and write from the database. This is a typical use case for microservice architectures and using managed identity saves a lot of configurations and is currently a recommended best practice to secure your workloads. This video also deep dives into explaining how to create data bindings in Azure functions. So this is a part 2 of the authenticate and data bindings videos and goes a lot deeper than the other videos. I'm still figuring out how best to make these videos so let me know if something doesn't make sense or work.

Комментарии • 12

  • @viktor_tindula
    @viktor_tindula Год назад

    Very good video. I like the schemas you made for architecture purposes. It gives a nice overview.

  • @MrBalajiuppala
    @MrBalajiuppala Год назад

    This video is really helpful. This saved my exploration time.

  • @racharacharam
    @racharacharam Год назад

    Crisp and clear 👍🏻👍🏻

  • @tadastadux
    @tadastadux 6 месяцев назад

    Amazing video. Please advise how to create tests for the app?

  • @YakubuAzure
    @YakubuAzure Год назад +2

    Where can we find the source code for this?

  • @diptanusaha6597
    @diptanusaha6597 4 месяца назад

    can you share the git repo - thanks for the video

  • @venkataramanapotluri1758
    @venkataramanapotluri1758 6 месяцев назад

    My SQL SERVERE MANAGED INSTANCE. is on a different resource group and different subscription that of Azure Functions and Data factory can you please tell me how to resolve this. Your help is highly appreciated

    • @azureappmodernization9036
      @azureappmodernization9036  6 месяцев назад

      You may be able to move your resources across subscriptions and resource groups. In order to find out, open up your group and select "move" on the overview screen. Select the target resource group and then the resources. The system will run a validation and let you know if a move is allowed. Finally select move to start the process.

    • @azureappmodernization9036
      @azureappmodernization9036  6 месяцев назад

      learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription#use-the-portal

  • @walkingdadjokes6099
    @walkingdadjokes6099 Год назад

    still in pre-release :(

  • @EngineersDrive
    @EngineersDrive Год назад

    Where was the authentication. Misleading title

    • @azureappmodernization9036
      @azureappmodernization9036  Год назад

      Sorry, I should have been clearer in the content. This video shows how to use AD for identity and then you use RBAC to authorize that identity. The first step is to give the function an identity. You can provide you own identity certificates, or you can let Azure manage the identity lifecycle for you. Once you assign the managed identity, you turn on AD authentication which will validate the identity for every connection. Then on the SQL side, you use RBAC to grant access to that identity. So, the combination of these statements: CREATE USER [FNName] FROM EXTERNAL PROVIDER and ALTER ROLE db_datareader ADD MEMBER [FNName] will grant the identity 'FNName' reader access.