Skip to content

Commit 25ea8f5

Browse files
author
Abhijeet Gaiha
authored
Fixed issue in SAS token expiry dates
1) The expiry date should contain seconds as well. 2) Current extension has a bug where dates > 2038 are rejected as invalid. The changes should allow customers to use the script to setup a working environment.
1 parent 7a5675b commit 25ea8f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/virtual-machines/extensions/diagnostics-linux.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ sed -i "s#__DIAGNOSTIC_STORAGE_ACCOUNT__#$my_diagnostic_storage_account#g" porta
7878
sed -i "s#__VM_RESOURCE_ID__#$my_vm_resource_id#g" portal_public_settings.json
7979

8080
# Build the protected settings (storage account SAS token)
81-
my_diagnostic_storage_account_sastoken=$(az storage account generate-sas --account-name $my_diagnostic_storage_account --expiry 9999-12-31T23:59Z --permissions wlacu --resource-types co --services bt -o tsv)
81+
my_diagnostic_storage_account_sastoken=$(az storage account generate-sas --account-name $my_diagnostic_storage_account --expiry 2037-12-31T23:59:00Z --permissions wlacu --resource-types co --services bt -o tsv)
8282
my_lad_protected_settings="{'storageAccountName': '$my_diagnostic_storage_account', 'storageAccountSasToken': '$my_diagnostic_storage_account_sastoken'}"
8383

8484
# Finallly tell Azure to install and enable the extension

0 commit comments

Comments
 (0)