def validate_storage_account_id(cmd, namespace):
    """Validate storage account name"""
    from azure.cli.core.commands.client_factory import get_subscription_id
    from msrestazure.tools import is_valid_resource_id, resource_id
    if namespace.storage_account:
        if not is_valid_resource_id(namespace.storage_account):
            namespace.storage_account = resource_id(subscription=
                get_subscription_id(cmd.cli_ctx), resource_group=namespace.
                resource_group_name, namespace='Microsoft.Storage', type=
                'storageAccounts', name=namespace.storage_account)
