mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-16 20:08:09 +00:00
use managed identity reader access for scaleset configs (#1060)
This commit is contained in:
@ -217,6 +217,15 @@ def get_container_sas_url(
|
||||
)
|
||||
|
||||
|
||||
def get_file_url(container: Container, name: str, storage_type: StorageType) -> str:
|
||||
client = find_container(container, storage_type)
|
||||
if not client:
|
||||
raise Exception("unable to find container: %s - %s" % (container, storage_type))
|
||||
|
||||
# get_url has a trailing '/'
|
||||
return f"{get_url(client.account_name)}{container}/{name}"
|
||||
|
||||
|
||||
def get_file_sas_url(
|
||||
container: Container,
|
||||
name: str,
|
||||
|
@ -212,6 +212,7 @@ def update_extensions(name: UUID, extensions: List[Any]) -> None:
|
||||
str(name),
|
||||
{"virtual_machine_profile": {"extension_profile": {"extensions": extensions}}},
|
||||
)
|
||||
logging.info("VM extensions updated: %s", name)
|
||||
|
||||
|
||||
def create_vmss(
|
||||
|
Reference in New Issue
Block a user