Get yourself a storageaccount and a website:
After deployment you have a website (+ hosting) and a storageaccount.
Managed Identity is already enabled on the website for you!
After deployment to to your storage account en select Access Control and select Add.
Select the role of "Owner", select App Service and then select the website you just deployed.
ALSO: do this step again and select "Storage Blob Data Owner"
After like 2/3 minutes the website has passwordless access to your storage account.
- Clone the github project into your local disk.
- Open the project in the Code folder with Visual Studio
- Open
TestControllerin the Controllers folder - Enter your storage account name in the
MyStorageAccountNamevariable. - Deploy to azure
- Visit your website.
- Read the code in the controller to get understanding how the passwordless SDK works.
If all the steps are followed correctly, your website will:
- Connect to the storage account in a passwordless manner
- Create a blob-container
- Create a blob
- Upload text
- Show text in browser
