Skip to content
Snippets Groups Projects
Commit df9c2cba authored by Yang Xia's avatar Yang Xia Committed by Vincent Jiang (LEI)
Browse files

Update samples for access token

parent f4092242
No related branches found
No related tags found
No related merge requests found
......@@ -135,6 +135,10 @@ client.delete_blob(container.name, 'image-blob')
<a name="token"></a>
## Access Token
Please refer to the below links for obtaining an access token:
* [Authenticate with Azure Active Directory](https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-azure-active-directory)
* [Getting a MSI access token](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/tutorial-linux-vm-access-storage#get-an-access-token-and-use-it-to-call-azure-storage)
```ruby
require "azure/storage/common"
......
......@@ -106,6 +106,10 @@ generator.generate_account_sas_token(my_account_sas_options)
<a name="token"></a>
## Access Token
Please refer to the below links for obtaining an access token:
* [Authenticate with Azure Active Directory](https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-azure-active-directory)
* [Getting a MSI access token](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/tutorial-linux-vm-access-storage#get-an-access-token-and-use-it-to-call-azure-storage)
```ruby
require "azure/storage/common"
......
......@@ -137,6 +137,11 @@ client.delete_queue('test-queue')
<a name="token"></a>
## Access Token
Please refer to the below links for obtaining an access token:
* [Authenticate with Azure Active Directory](https://docs.microsoft.com/en-us/rest/api/storageservices/authenticate-with-azure-active-directory)
* [Getting a MSI access token](https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/tutorial-linux-vm-access-storage#get-an-access-token-and-use-it-to-call-azure-storage)
```ruby
require "azure/storage/common"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment