mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-14 02:58:10 +00:00
force upgrade custom script extensions (#1059)
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
from uuid import UUID
|
from uuid import UUID, uuid4
|
||||||
|
|
||||||
from onefuzztypes.enums import OS, AgentMode
|
from onefuzztypes.enums import OS, AgentMode
|
||||||
from onefuzztypes.models import AgentConfig, Pool, ReproConfig, Scaleset
|
from onefuzztypes.models import AgentConfig, Pool, ReproConfig, Scaleset
|
||||||
@ -211,6 +211,7 @@ def agent_config(
|
|||||||
"type": "CustomScriptExtension",
|
"type": "CustomScriptExtension",
|
||||||
"publisher": "Microsoft.Compute",
|
"publisher": "Microsoft.Compute",
|
||||||
"location": region,
|
"location": region,
|
||||||
|
"force_update_tag": uuid4(),
|
||||||
"type_handler_version": "1.9",
|
"type_handler_version": "1.9",
|
||||||
"auto_upgrade_minor_version": True,
|
"auto_upgrade_minor_version": True,
|
||||||
"settings": {"commandToExecute": to_execute_cmd, "fileUris": urls},
|
"settings": {"commandToExecute": to_execute_cmd, "fileUris": urls},
|
||||||
@ -247,6 +248,7 @@ def agent_config(
|
|||||||
"typeHandlerVersion": "2.1",
|
"typeHandlerVersion": "2.1",
|
||||||
"location": region,
|
"location": region,
|
||||||
"autoUpgradeMinorVersion": True,
|
"autoUpgradeMinorVersion": True,
|
||||||
|
"force_update_tag": uuid4(),
|
||||||
"settings": {"commandToExecute": to_execute_cmd, "fileUris": urls},
|
"settings": {"commandToExecute": to_execute_cmd, "fileUris": urls},
|
||||||
"protectedSettings": {},
|
"protectedSettings": {},
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user