You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
azure_create_storage_account(handle: object, name: str, resource_group: str, location: str)
handle: Object of type unSkript Azure Connector.
name: Name of the storage account to be created.
resource_group: Resource Group of the Azure Storage Account.
location: Azure Location of the storage account.
Lego Input
This Lego takes four inputs: handle, name, resource_group, and location.
Lego Output
Here is a sample output.
See it in Action
You can see this Lego in action following this link unSkript Live
from pydantic import BaseModel, Field
from typing import Optional, Dict
from azure.storage.blob import BlobServiceClient
import pprint
class InputSchema(BaseModel):
name: str = Field(
title='Storage Account Name',
description='Name of the storage account to be created.')
resource_group: str = Field(
title='Resource Group',
description='Resource Group of the Azure Storage Account.')
location: Optional[str] = Field(
title='Location',
description='Azure Location of the storage account.')
def azure_create_storage_account_printer(output):
if output is None:
return
pprint.pprint(output)
def azure_create_storage_account(handle: object, name: str, resource_group: str, location: str = None) -> Dict:
"""azure_create_storage_account Creates a new Azure Storage Account.
:rtype: Dict with the new storage account info.
"""
# Input param validation.
storage_mgmt_client = handle.storage_mgmt_client
Contact Details
No response
Action Name
Azure Create Azure Storage Account
Action Readme
Create Azure Storage Account
Description
This Lego creates a new Azure Storage Account.
Lego Details
Lego Input
This Lego takes four inputs: handle, name, resource_group, and location.
Lego Output
Here is a sample output.
See it in Action
You can see this Lego in action following this link unSkript Live
Action json
{
"action_title": "Create Azure Storage Account",
"action_description": "Create a new Azure Storage Account",
"action_type": "LEGO_TYPE_AZURE",
"action_entry_function": "azure_create_storage_account",
"action_needs_credential": true,
"action_supports_poll": true,
"action_output_type": "ACTION_OUTPUT_TYPE_DICT",
"action_supports_iteration": true
}
Action python
Copyright (c) 2023 unSkript, Inc
All rights reserved.
from pydantic import BaseModel, Field
from typing import Optional, Dict
from azure.storage.blob import BlobServiceClient
import pprint
class InputSchema(BaseModel):
name: str = Field(
title='Storage Account Name',
description='Name of the storage account to be created.')
resource_group: str = Field(
title='Resource Group',
description='Resource Group of the Azure Storage Account.')
location: Optional[str] = Field(
title='Location',
description='Azure Location of the storage account.')
def azure_create_storage_account_printer(output):
if output is None:
return
pprint.pprint(output)
def azure_create_storage_account(handle: object, name: str, resource_group: str, location: str = None) -> Dict:
"""azure_create_storage_account Creates a new Azure Storage Account.
:rtype: Dict with the new storage account info.
"""
# Input param validation.
storage_mgmt_client = handle.storage_mgmt_client
Action Outputs
na
Comments
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: