Using Azure Managed identities

แชร์
ฝัง
  • เผยแพร่เมื่อ 3 ม.ค. 2025

ความคิดเห็น • 18

  • @BobWeberJr
    @BobWeberJr 3 ปีที่แล้ว +2

    Great episode! Every minute was worth it, thanks!

  • @WARL0CK
    @WARL0CK 5 หลายเดือนก่อน

    Thank you for this video. Fixed my issues!

  • @krzysztofabram6512
    @krzysztofabram6512 2 ปีที่แล้ว

    Have an issue with "The request is not authorized to perform the operation." on 15:27. I tried all identity / permission possible variations to make it work and no success

  • @redarismail5777
    @redarismail5777 3 ปีที่แล้ว +2

    I am using CosmosDB Mongo API can I use this approach to clean my code from keys and connection string

  • @shamshad3971
    @shamshad3971 2 ปีที่แล้ว

    Hi need the code which you used in this demo.

  • @demikslanguages
    @demikslanguages 2 ปีที่แล้ว

    Followed every step but doesn't work. Exact same code. It would work if I use the connection string instead of Identity's clientID. Do I need to activate something on my azure portal?

    • @chinmayshetye3
      @chinmayshetye3 11 หลายเดือนก่อน

      He did a step Behind the scenes
      Where he assigned the managed identity to Target resource (Azure storage account)

    • @jayaraut
      @jayaraut 8 หลายเดือนก่อน

      @@chinmayshetye3 Okay, I did the same. I made an app config and assigned app config data reader role to user defined identity then added this user defined identity to my app service. Now since my login in AD has the rights to contribute , shouldn't the connect via DefaultAzureCredential via user assigned client id shouldn't work? but this is giving me forbidden error.

    • @chinmayshetye3
      @chinmayshetye3 8 หลายเดือนก่อน +1

      @@jayaraut Check if the DefaultAzureCredential is picking the credentials of the user you assigned role to

    • @jayaraut
      @jayaraut 8 หลายเดือนก่อน

      @chinmayshetye3 ok I figured the same yesterday. I have to assign same set of roles to my user too as the managed identity to get it working locally. That worked! Though I haven't deployed the code yet on app service to check managed identity which I hope will work but it was working locally.

    • @chinmayshetye3
      @chinmayshetye3 8 หลายเดือนก่อน

      @@jayaraut you can use your managed identity with DefaultAzureCredential object, you need to pass it as property while initialisation

  • @redarismail5777
    @redarismail5777 3 ปีที่แล้ว

    Can you please do a demo with Cosmos DB

  • @yaduwanshi
    @yaduwanshi 3 ปีที่แล้ว +3

    User Managed Identity doesnt work

    • @yaduwanshi
      @yaduwanshi 3 ปีที่แล้ว +1

      DefaultAzureCredential failed to retrieve a token from the included credentials.
      - EnvironmentCredential authentication unavailable. Environment variables are not fully configured.
      - ManagedIdentityCredential authentication unavailable. No Managed Identity endpoint found.
      - Process "C:\Program Files\Microsoft Visual Studio\2022\Preview\Common7\IDE\Extensions\3fhsnrhg.f0v\TokenService\Microsoft.Asal.TokenService.exe" has failed with unexpected error: TS003: Error, Could not load file or assembly 'Microsoft.VisualStudio.Validation, Version=16.8.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040).
      - Stored credentials not found. Need to authenticate user in VSCode Azure Account.
      - Azure CLI not installed
      - PowerShell is not installed.

  • @adsharad5052
    @adsharad5052 3 ปีที่แล้ว

    .net

  • @dotnet8925
    @dotnet8925 4 หลายเดือนก่อน +1

    so anyone can copy this code with userAssignedIdentity and be able to access the blob container .