[storage,tables] Update `signedExpiry` to computed value (#19614)

* [storage,tables] Update `signedExpiry` to computed value

instead of hard-coded one which has expired and failed test resource deployments

* Missed copying `baseTime`
This commit is contained in:
Jeremy Meng 2022-01-03 16:01:20 -08:00 коммит произвёл GitHub
Родитель 9905a97e2a
Коммит 241005ef7f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -43,6 +43,10 @@
"metadata": {
"description": "Storage endpoint suffix. The default value uses Azure Public Cloud (core.windows.net)"
}
},
"baseTime": {
"type": "string",
"defaultValue": "[utcNow('u')]"
}
},
"variables": {
@ -64,7 +68,7 @@
"signedPermission": "rwdlacup",
"signedResourceTypes": "sco",
"keyToSign": "key2",
"signedExpiry": "2022-01-01T23:59:00Z"
"signedExpiry": "[dateTimeAdd(parameters('baseTime'), 'PT2H')]"
},
"authorizationApiVersion": "2018-01-01-preview",
"blobDataContributorRoleId": "[concat('/subscriptions/', subscription().subscriptionId, '/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe')]",

Просмотреть файл

@ -27,6 +27,10 @@
"metadata": {
"description": "Storage endpoint suffix. The default value uses Azure Public Cloud (core.windows.net)"
}
},
"baseTime": {
"type": "string",
"defaultValue": "[utcNow('u')]"
}
},
"variables": {
@ -42,7 +46,7 @@
"signedPermission": "rwdlacup",
"signedResourceTypes": "sco",
"keyToSign": "key2",
"signedExpiry": "2022-01-01T23:59:00Z"
"signedExpiry": "[dateTimeAdd(parameters('baseTime'), 'PT2H')]"
}
},
"resources": [