def create_account_sas_definition(self, storage_account_name, vault_url):
from azure.storage.common import SharedAccessSignature, CloudStorageAccount<EOL>from azure.keyvault.models import SasTokenType, SasDefinitionAttributes<EOL>from azure.keyvault import SecretId<EOL>sas = SharedAccessSignature(account_name=storage_account_name,<EOL>account_key='<STR_LIT>')<EOL>account_sas_template = sas.generate_account(services='<STR_LIT>',  <EOL>resource_types='<STR_LIT>',  <EOL>permission='<STR_LIT>',<EOL>expiry='<STR_LIT>')  <EOL>attributes = SasDefinitionAttributes(enabled=True)<EOL>sas_def = self.client.set_sas_definition(vault_base_url=vault_url,<EOL>storage_account_name=storage_account_name,<EOL>sas_definition_name='<STR_LIT>',<EOL>template_uri=account_sas_template,<EOL>sas_type=SasTokenType.account,<EOL>validity_period='<STR_LIT>',<EOL>sas_definition_attributes=attributes)<EOL>sas_secret_id = SecretId(uri=sas_def.secret_id)<EOL>acct_sas_token = self.client.get_secret(vault_base_url=sas_secret_id.vault,<EOL>secret_name=sas_secret_id.name,<EOL>secret_version=sas_secret_id.version).value<EOL>cloud_storage_account = CloudStorageAccount(account_name=storage_account_name,<EOL>sas_token=acct_sas_token)<EOL>blob_service = cloud_storage_account.create_block_blob_service()<EOL>blob_service.create_container('<STR_LIT>')<EOL>blob_service.create_blob_from_text(container_name='<STR_LIT>',<EOL>blob_name='<STR_LIT>',<EOL>text=u'<STR_LIT>')<EOL>
Creates an account sas definition, to manage storage account and its entities.