def get_workspace_id()

in src/SentinelUtilities/SentinelAzure/azure_loganalytics_helper.py [0:0]


    def get_workspace_id(self, workspace_name):
        """ retrieve L.A. workspace id based on workspace name """
        workspace = next(ws for ws in self.la_client.workspaces.list() if ws.name == workspace_name)
        return workspace.customer_id